/* ============================================================
   ConveGenius Insights — Website shared styles
   Tokens come from ../styles.css (link it before this file).
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface-page);
  font-family: var(--font-sans); color: var(--text-body);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- Custom cursor (Cactus-style) ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; }
  .cursor-dot {
    width: 7px; height: 7px; background: #0D5A5A; transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 2px rgba(13, 90, 90, 0.9), 0 0 22px 7px rgba(13, 90, 90, 0.45);
  }
  .cursor-ring {
    width: 34px; height: 34px; border: 1.5px solid rgba(0, 200, 255, 0.55);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 14px rgba(0, 242, 255, 0.18), inset 0 0 10px rgba(0, 242, 255, 0.12);
    transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.22s, background 0.22s, box-shadow 0.22s;
  }
  body.cursor-hover .cursor-ring {
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(0, 242, 255, 0.9);
    background: rgba(0, 242, 255, 0.10);
    box-shadow: 0 0 22px rgba(0, 242, 255, 0.5);
  }
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF; border-bottom: 1px solid var(--border-card);
  transition: box-shadow 0.3s var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-nav); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 32px; max-width: 1180px; margin: 0 auto; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  font: 600 15px/1.2 var(--font-sans); color: var(--cgi-blue-600);
  text-decoration: none; padding: 10px 18px; background: none; border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: color 0.16s var(--ease-out);
}
.nav-item:hover > .nav-link, .nav-link.active { background: none; color: var(--cgi-blue-700); }
.nav-link .chev { transition: transform 0.22s var(--ease-out); }
.nav-item:hover .chev, .nav-item.dd-open .chev { transform: rotate(180deg); }
/* split control: label link + separate chevron toggle, sharing one pill */
.nav-link-split { padding: 0; gap: 0; }
.nav-link-split .nav-link-text { color: inherit; text-decoration: none; padding: 10px 6px 10px 18px; }
.nav-link-split .nav-chev-btn { background: none; border: none; color: inherit; cursor: pointer; padding: 10px 16px 10px 4px; display: flex; align-items: center; }
.dropdown {
  position: absolute; top: calc(100% - 2px); left: 0; min-width: 304px;
  background: var(--cgi-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown); padding: 10px;
  display: grid; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out), visibility 0.24s;
}
.nav-item:hover .dropdown, .nav-item.dd-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  font: 500 14.5px/1.3 var(--font-sans); color: var(--text-heading);
  text-decoration: none; padding: 11px 12px; border-radius: 8px; background: var(--cgi-mint);
  transition: background 0.16s, color 0.16s;
}
.dropdown a:hover { background: var(--cgi-blue-600); color: #fff; }
.dropdown a svg { width: 18px; height: 18px; color: var(--cgi-blue-600); flex-shrink: 0; transition: color 0.16s; }
.dropdown a:hover svg { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: var(--radius-pill); padding: 12px 26px;
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn .arr { display: inline-block; transition: transform 0.18s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--cgi-blue-600); color: #fff; }
.btn-primary:hover { background: var(--cgi-blue-700); box-shadow: 0 8px 24px rgba(58, 61, 152, 0.35); }
.btn-secondary { background: var(--cgi-white); color: var(--cgi-blue-600); border-color: var(--cgi-blue-600); }
.btn-secondary:hover { background: var(--surface-card-tint); }
.btn-ondark { background: var(--cgi-white); color: var(--cgi-blue-600); }
.btn-ondark:hover { background: var(--cgi-grey-50); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block; font: 700 13.5px/1.2 var(--font-sans);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--cgi-blue-600); margin: 0;
}
.eyebrow-capsule { border: 1px solid var(--cgi-lavender); border-radius: 999px; padding: 7px 16px; font-size: 12px; background: rgba(255,255,255,0.7); }
h1, h2, h3 { color: var(--text-heading); line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.h-hero { font-size: 54px; font-weight: 800; }
.h-section { font-size: 38px; font-weight: 700; }
.accent { color: var(--cgi-teal); }
.underbar { width: 42px; height: 4px; border-radius: 2px; background: var(--cgi-blue-600); }
.lead { font-size: 18px; color: var(--text-body); margin: 0; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.section-head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.bg-tint { background: var(--surface-tint); }
.bg-hero { background: var(--surface-hero); position: relative; overflow: hidden; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.card.lift:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-5px); }
.icon-circle {
  width: 58px; height: 58px; border-radius: 50%; background: var(--surface-icon-circle);
  color: var(--cgi-blue-600); display: inline-grid; place-items: center; flex-shrink: 0;
}
.icon-circle svg { width: 25px; height: 25px; }
.icon-circle.sm { width: 44px; height: 44px; }
.icon-circle.sm svg { width: 19px; height: 19px; }

/* ---------- Stat chips ---------- */
.stat-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--cgi-white); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 12px 22px 12px 12px;
  box-shadow: var(--shadow-card-hover);
}
.stat-chip b { font-size: 19px; font-weight: 800; color: var(--text-heading); line-height: 1.15; display: block; }
.stat-chip span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(96deg, var(--cgi-band-navy-1), var(--cgi-band-navy-2));
  border-radius: var(--radius-xl); color: #fff; position: relative; overflow: hidden;
  padding: 44px 52px; display: flex; align-items: center; justify-content: space-between; gap: 36px;
}
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 700; line-height: 1.3; }
.cta-band p { margin: 8px 0 0; font-size: 15px; opacity: 0.85; max-width: 54ch; }
.cta-dots {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(118, 121, 212, 0.55) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, black 60%, transparent 95%);
  mask-image: linear-gradient(100deg, transparent 30%, black 60%, transparent 95%);
}

/* ---------- Footer ---------- */
.footer { background: var(--cgi-blue-600); border-top: none; overflow: hidden; position: relative; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 44px 32px 24px;
  display: grid; grid-template-columns: 1.2fr 0.9fr 1.6fr 0.85fr 0.85fr 1fr; gap: 20px;
  position: relative;
}
.footer-col + .footer-col { border-left: 1px solid rgba(255,255,255,0.18); padding-left: 24px; }
.footer h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: #fff; }
.footer h4 a { color: inherit; text-decoration: none; transition: color 0.16s; }
.footer h4 a:hover { color: var(--cgi-teal); }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.16s; }
.footer-col a:hover { color: var(--cgi-teal); }
.footer-col a.footer-label { font-weight: 700; color: #fff; opacity: 0.85; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; cursor: default; margin-top: 4px; }
.footer-col a.footer-label:hover { color: #fff; }
.footer-blurb { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.65; max-width: 30ch; margin: 14px 0 0; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 8px; background: var(--cgi-teal);
  display: grid; place-items: center; color: #fff; transition: background 0.16s, color 0.16s;
}
.footer-social a:hover { background: #fff; color: var(--cgi-blue-600); }
.footer-social svg { width: 15px; height: 15px; }
.footer-legal {
  max-width: 1180px; margin: 0 auto; padding: 14px 32px; border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.72);
  position: relative;
}
.footer-legal a { color: inherit; text-decoration: none; }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal="left"] { transform: translateX(-30px); }
  [data-reveal="right"] { transform: translateX(30px); }
  [data-reveal="left"].in, [data-reveal="right"].in { transform: none; }
  .float-slow { animation: floatY 7s ease-in-out infinite; }
  @keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
}

/* ---------- Hero particle canvas ---------- */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 30s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner-name { font: 700 17px/1.2 var(--font-sans); color: var(--cgi-grey-500); white-space: nowrap; opacity: 0.85; }
.partner-logo { height: 46px; width: 140px; object-fit: contain; flex-shrink: 0; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--cgi-blue-600); }

/* ---------- FAQ ---------- */
.faq { border: none; border-radius: var(--radius-md); background: var(--cgi-mint); overflow: hidden; transition: background 0.22s var(--ease-out), box-shadow 0.28s var(--ease-out); }
.faq[open] { box-shadow: var(--shadow-card); background: var(--cgi-blue-600); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 600 15px/1.4 var(--font-sans); color: var(--text-heading); padding: 16px 20px; cursor: pointer;
  transition: color 0.22s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; transition: transform 0.28s var(--ease-out), color 0.22s var(--ease-out); color: var(--cgi-blue-600); }
.faq[open] summary svg { transform: rotate(180deg); color: #fff; }
.faq[open] summary { color: #fff; }
.faq p { margin: 0; padding: 0 20px 16px; font-size: 14px; transition: color 0.22s var(--ease-out); }
.faq[open] p { color: rgba(255,255,255,0.92); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; font: 600 13.5px/1.3 var(--font-sans); color: var(--text-heading); }
.field input, .field select, .field textarea {
  font: 400 14.5px/1.4 var(--font-sans); color: var(--text-heading);
  background: var(--cgi-white); width: 100%;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; resize: vertical;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cgi-blue-600); box-shadow: var(--focus-ring); }
.req { color: var(--cgi-blue-600); }

/* ---------- Page fade-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn 0.5s var(--ease-out); }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Mobile menu (hamburger) ---------- */
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: none; background: none; cursor: pointer; padding: 9px; }
.nav-burger span { display: block; height: 2.5px; width: 100%; background: var(--cgi-blue-600); border-radius: 2px; transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out); }
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cgi-white); z-index: 99; padding: 92px 28px 40px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mm-group { border-bottom: 1px solid var(--border-card); padding: 16px 0; display: grid; gap: 10px; }
.mm-head { font: 700 13px/1.2 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cgi-blue-600); }
.mobile-menu a { font: 600 17px/1.3 var(--font-sans); color: var(--text-heading); text-decoration: none; }
.mm-group a { font-weight: 500; font-size: 16px; color: var(--text-body); padding-left: 2px; }
.mm-top { display: block; padding: 16px 0; border-bottom: 1px solid var(--border-card); }
.mm-cta { justify-content: center; margin-top: 24px; }

/* ============================================================
   RESPONSIVE — tablet + mobile (iOS & Android browsers)
   Inline grid-template-columns are overridden via [style*] !important.
   ============================================================ */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .h-hero { font-size: 40px; }
  .h-section { font-size: 30px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }
  .nav-inner { padding: 10px 20px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 52px 0; }
  /* generic: any 3/4/5/6-col inline grid → 2 cols on tablet */
  [style*="repeat(3"], [style*="repeat(4"], [style*="repeat(5"], [style*="repeat(6"],
  [style*="1fr 1fr 1fr"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* asymmetric 2/3-col hero grids (text+image splits) → single column on tablet */
  [style*="0.85fr"], [style*="0.92fr"], [style*="0.88fr"],
  [style*="0.9fr"], [style*="0.8fr"], [style*="0.62fr"] { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* class-based grids */
  .pillars, .caps, .ways, .metrics { grid-template-columns: repeat(2, 1fr) !important; }
  .pillar:nth-child(odd), .cap:nth-child(odd) { border-left: none; }
  .pillar, .cap, .ways > div, .metrics > div { border-left: none !important; border-top: 1px solid var(--border-card); }
  .pillars, .caps, .ways { border-radius: var(--radius-lg); }
  .journey { grid-template-columns: 1fr; gap: 22px; }
  .journey-line { display: none; }
  /* horizontal process chain → wrap */
  .steps { flex-wrap: wrap; justify-content: center; gap: 18px 8px; }
  .steps .step { flex: 0 0 28%; }
  .steps .step-arr { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .h-hero { font-size: 32px; }
  .h-section { font-size: 25px; }
  .lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  /* stack EVERY multi-column layout to a single column */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="display: grid"][style*="gap: 48px"], [style*="display: grid"][style*="gap: 56px"] { gap: 28px !important; }
  .pillars, .caps, .ways, .metrics, .footer-grid { grid-template-columns: 1fr !important; }
  .steps .step { flex: 0 0 45%; }
  /* CTA bands: stack vertically */
  .cta-band { flex-direction: column; align-items: flex-start; gap: 22px; padding: 32px 26px; text-align: left; }
  .cta-band h2 { font-size: 24px; }
  /* hero stat chips / floats: keep readable */
  .stat-chip { width: 100%; }
  /* dropdowns never show on touch (mobile menu replaces them) */
  .dropdown { display: none !important; }
  /* tame oversized inline hero images */
  .float-slow { max-width: 100%; }
  /* footer legal stacks */
  .footer-legal { flex-direction: column; gap: 8px; text-align: center; }
  .footer-grid { gap: 26px; text-align: left; }
  /* reduce big inline section padding */
  [style*="padding-top: 64px"], [style*="padding-top: 56px"] { padding-top: 40px !important; }
  [style*="padding-bottom: 56px"], [style*="padding-bottom: 48px"] { padding-bottom: 40px !important; }
}

/* Larger tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .nav-link, .dropdown a, .btn, .footer-col a, .tab { min-height: 44px; }
  .btn { padding: 13px 26px; }
}
