/* =========================================================
   AMEXIS.AI - Design System
   Display: Space Grotesk | Body: Inter | Label: IBM Plex Mono
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* Brand core (from logo files) */
  --navy: #202545;
  --navy-deep: #12142A;
  --blue: #4377FF;
  --blue-deep: #2E5AE0;
  --blue-tint: #EEF2FF;
  --blue-tint-2: #E1E9FF;
  --amber: #FF9142;
  --amber-deep: #E87526;
  --white: #FFFFFF;
  --ink: #1C2039;
  --muted: #5B6178;
  --muted-2: #8A90A8;
  --line: #E4E7F2;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px -20px rgba(32, 37, 69, 0.25);
  --shadow-card: 0 4px 24px -8px rgba(32, 37, 69, 0.12);

  --max: 1280px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 700; }
h2{ font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }

p{ margin: 0; color: var(--muted); }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: '';
  width: 18px; height: 2px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.amber{ color: var(--amber-deep); }
.eyebrow.amber::before{ background: var(--amber); }
.eyebrow.on-dark{ color: #9DB4FF; }
.eyebrow.on-dark::before{ background: #9DB4FF; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(67,119,255,0.55);
}
.btn-primary:hover{ background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost{
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-ghost.on-dark{ color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-ghost.on-dark:hover{ border-color: var(--white); }
.btn-sm{ padding: 10px 20px; font-size: 0.88rem; }
.btn:focus-visible{ outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled{ box-shadow: 0 8px 30px -18px rgba(32,37,69,0.25); }
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--space-3);
  max-width: var(--max); margin: 0 auto;
  gap: var(--space-3);
}
.logo{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img{ height: 30px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 2px; }
.nav-item{ position: relative; }
.nav-link{
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
  padding: 10px 16px; border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-item:hover > .nav-link, .nav-link.active{ background: var(--blue-tint); color: var(--blue-deep); }
.nav-link .caret{ width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease; }
.nav-item:hover .caret{ transform: rotate(225deg); margin-top: 4px; }

.mega{
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px;
}
.nav-item:hover .mega{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-head{
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.mega a{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.mega a:hover{ background: var(--blue-tint); color: var(--blue-deep); }
.mega a .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.mega.ai a .dot{ background: var(--amber); }
.mega-viewall{ grid-column: 1 / -1; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600 !important; color: var(--blue) !important; }

.header-cta{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle{ display: none; background: none; border: none; padding: 8px; }
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

/* ---------- Mobile nav ---------- */
.mobile-nav{
  display: none;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.open{ max-height: 80vh; overflow-y: auto; }
.mobile-nav-item{ border-bottom: 1px solid var(--line); }
.mobile-nav-item > a{
  display: block; padding: 16px var(--space-3); font-weight: 600; color: var(--navy);
}
.mobile-nav-toggle{
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 16px var(--space-3);
  font-weight: 600; font-size: 1rem; color: var(--navy);
}
.mobile-nav-toggle .caret{ width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.mobile-nav-item.open .mobile-nav-toggle .caret{ transform: rotate(225deg); }
.mobile-submenu{
  display: none; flex-direction: column;
  padding: 0 var(--space-3) 14px;
}
.mobile-nav-item.open .mobile-submenu{ display: flex; }
.mobile-submenu a{ padding: 10px 8px; font-size: 0.94rem; color: var(--muted); }
.mobile-nav-item:last-child{ border-bottom: none; padding: 0 var(--space-3) var(--space-3); }
@media (max-width: 900px){ .mobile-nav{ display: block; } }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg-wrap{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg-wrap img{
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-bg-wrap::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,28,0.72) 0%, rgba(10,13,28,0.5) 38%, rgba(10,13,28,0.78) 100%);
}
.hero .container{
  position: relative; z-index: 1;
  padding: var(--space-7) var(--space-3);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-copy{
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-glass{
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.55);
}
.hero-glass h1{ color: var(--white); }
.hero-glass h1 .accent{ color: #9FB8FF; }
.hero-glass .hero-lede{ color: rgba(255,255,255,0.82); }
.hero-glass .fork-chip{ color: rgba(255,255,255,0.75); }
.hero-copy h1{ margin-top: var(--space-2); }
.hero-copy h1 .accent{ color: var(--blue); }
.hero-lede{
  margin: var(--space-3) auto 0;
  font-size: 1.18rem;
  max-width: 52ch;
  color: var(--muted);
}
.hero-actions{ display: flex; gap: 14px; margin-top: var(--space-4); flex-wrap: wrap; justify-content: center; }
.hero-fork-label{
  margin-top: var(--space-4);
  display: flex; gap: var(--space-4); flex-wrap: wrap;
  justify-content: center;
}
.fork-chip{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
}
.fork-chip .swatch{ width: 10px; height: 10px; border-radius: 3px; }
.fork-chip.dm .swatch{ background: var(--blue); }
.fork-chip.ai .swatch{ background: var(--amber); }

/* Mobile-only fallback visual (shown instead of the bg treatment - see media query) */
.hero-mobile-visual{
  display: none;
}

/* ---------- Image placeholder system ---------- */
.img-slot{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(67,119,255,0.55), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255,145,66,0.28), transparent 50%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #2A3163);
  display: flex; align-items: flex-end;
}
.img-slot.ai-tone{
  background:
    radial-gradient(circle at 70% 25%, rgba(255,145,66,0.4), transparent 50%),
    radial-gradient(circle at 25% 75%, rgba(67,119,255,0.5), transparent 55%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #2A3163);
}
.img-slot.dm-tone{
  background:
    radial-gradient(circle at 25% 20%, rgba(67,119,255,0.55), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(67,119,255,0.25), transparent 50%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #232A52);
}
.img-slot .slot-tag{
  position: relative; z-index: 2;
  margin: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.35);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.img-slot::after{
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.img-slot.short{ aspect-ratio: 16/7; }
.img-slot.square{ aspect-ratio: 1/1; }
.img-slot.card-visual{ aspect-ratio: 16/10; }

/* ---------- Real image frame (no gradient/dot overlay, for actual generated images) ---------- */
.visual-frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16/10;
}
.visual-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-frame.square{ aspect-ratio: 1/1; }
.visual-frame.short{ aspect-ratio: 16/7; }

/* ---------- Trust / stats strip ---------- */
.stats-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.stats-row{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.stat{ text-align: left; }
.stat .num{ font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.stat .label{ font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

/* ---------- Section shells ---------- */
.section{ padding: var(--space-6) 0; position: relative; }
.section.tint{ background: var(--blue-tint); }
.section-head{
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-5);
}
.section-head h2{ margin-top: var(--space-2); }
.section-head .desc{ font-size: 1.05rem; max-width: 46ch; }

/* Division fork marker */
.engine-mark{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-2);
}
.engine-mark .num{ color: var(--blue); font-weight: 600; }
.section.ai-section .engine-mark .num{ color: var(--amber-deep); }

/* ---------- Section mesh backdrop (for card-grid sections) ---------- */
.section-mesh{
  position: relative;
  background:
    radial-gradient(circle at 15% 15%, rgba(67,119,255,0.11), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(67,119,255,0.08), transparent 45%),
    var(--blue-tint);
  overflow: hidden;
}
.section-mesh::before{
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(67,119,255,0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}
.section-mesh > .container{ position: relative; z-index: 1; }
.section-mesh.amber-mesh{
  background:
    radial-gradient(circle at 15% 15%, rgba(255,145,66,0.12), transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(255,145,66,0.09), transparent 45%),
    #FFF4EC;
}
.section-mesh.amber-mesh::before{ background-image: radial-gradient(rgba(255,145,66,0.2) 1px, transparent 1px); }
.card-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
}
.card-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.card-icon{
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon svg{ width: 22px; height: 22px; stroke: var(--blue); }
.ai-section .card-icon{ background: #FFF1E6; }
.ai-section .card-icon svg{ stroke: var(--amber-deep); }

/* ---------- Card icon badges: soft gradient instead of flat tint (overrides above) ---------- */
.card-icon{
  background: linear-gradient(145deg, #F2F6FF, #DCE6FF);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 3px 10px -4px rgba(67,119,255,0.4);
}
.ai-section .card-icon{
  background: linear-gradient(145deg, #FFF3EA, #FFE1C8);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 3px 10px -4px rgba(255,145,66,0.4);
}
.service-card{ box-shadow: 0 8px 24px -16px rgba(32,37,69,0.18); }
.service-card h3{ font-size: 1.12rem; }
.service-card p{ font-size: 0.92rem; }
.card-link{
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.88rem; color: var(--blue);
}
.ai-section .card-link{ color: var(--amber-deep); }
.card-link .arrow{ transition: transform .18s ease; }
.service-card:hover .card-link .arrow{ transform: translateX(4px); }
.badge-beta{
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: .06em;
  background: var(--amber); color: var(--white);
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}

.division-intro{
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-5);
}
.division-intro .copy p{ font-size: 1.02rem; margin-top: var(--space-2); }
.division-intro .copy .btn{ margin-top: var(--space-3); }

/* ---------- Why Amexis (hybrid) ---------- */
.hybrid-grid{
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--space-5);
  align-items: center;
}
.pillars{ display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.pillar{ display: flex; gap: 16px; }
.pillar-index{
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--blue);
  border: 1px solid var(--line); border-radius: 50%;
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pillar h3{ font-size: 1.08rem; }
.pillar p{ font-size: 0.94rem; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #29306052);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--white);
}
.cta-band .cta-bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-band::before{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,14,28,0.55) 0%, rgba(11,14,28,0.72) 55%, rgba(11,14,28,0.55) 100%);
  z-index: 1;
}
.cta-band > *{ position: relative; z-index: 2; }
.cta-band h2{ color: var(--white); max-width: 18ch; margin: var(--space-2) auto 0; }
.cta-band p{ color: rgba(255,255,255,0.75); max-width: 50ch; margin: var(--space-2) auto 0; font-size: 1.05rem; }
.cta-actions{ display: flex; gap: 14px; justify-content: center; margin-top: var(--space-4); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: var(--space-6) 0 var(--space-3); }
.footer-grid{
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo img{ height: 26px; }
.footer-brand p{ color: rgba(255,255,255,0.55); font-size: 0.92rem; margin-top: var(--space-2); max-width: 32ch; }
.footer-col h4{ color: var(--white); font-size: 0.82rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-2); font-weight: 600; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col a{ font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color .15s ease; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-3); font-size: 0.82rem; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom .legal-links{ display: flex; gap: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Simple page hero (for sub pages) ---------- */
.page-hero{ padding: var(--space-5) 0 var(--space-4); }
.breadcrumb{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-2); margin-bottom: var(--space-2); }
.breadcrumb a{ color: var(--blue); }

/* ---------- About: statement hero ---------- */
.statement-hero{
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(67,119,255,0.08), transparent 55%),
    var(--white);
}
.statement-hero .eyebrow{ justify-content: center; }
.statement-hero h1{
  max-width: 18ch; margin: var(--space-2) auto 0;
}
.statement-hero .lede{
  max-width: 56ch; margin: var(--space-3) auto 0;
  font-size: 1.12rem;
}

/* ---------- Then vs Now comparison ---------- */
.compare-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.compare-col{ border-radius: var(--radius-lg); padding: var(--space-4); }
.compare-col.old{ background: #F3F4F8; border: 1px solid var(--line); }
.compare-col.new{ background: linear-gradient(160deg, var(--navy-deep), var(--navy) 120%); box-shadow: var(--shadow-card); }
.compare-col h3{ font-size: 1.05rem; margin-bottom: var(--space-3); }
.compare-col.old h3{ color: var(--muted-2); }
.compare-col.new h3{ color: #9FB8FF; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.compare-list{ display: flex; flex-direction: column; gap: 16px; }
.compare-item{ display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; line-height: 1.45; }
.compare-item .mark{
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; margin-top: 2px; font-weight: 700;
}
.compare-col.old .mark{ background: #E2E4ED; color: #9096AC; }
.compare-col.old .compare-item{ color: var(--muted); }
.compare-col.new .mark{ background: rgba(67,119,255,0.28); color: #B9CBFF; }
.compare-col.new .compare-item{ color: rgba(255,255,255,0.92); }

.compare-col.new.amber h3{ color: #FFB37A; }
.compare-col.new.amber .mark{ background: rgba(255,145,66,0.28); color: #FFCFA3; }

/* ---------- Evolution timeline ---------- */
.timeline{ position: relative; display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.timeline::before{
  content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 2px;
  background: var(--line); z-index: 0;
}
.timeline-step{ position: relative; z-index: 1; flex: 1; }
.timeline-dot{
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--muted-2);
  margin-bottom: 16px;
}
.timeline-step.final .timeline-dot{ border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.ai-section .timeline-step.final .timeline-dot{ border-color: var(--amber); color: var(--amber-deep); background: #FFF1E6; }
.timeline-step h3{ font-size: 1rem; margin-bottom: 6px; }
.timeline-step p{ font-size: 0.88rem; }

/* ---------- Capability cards ---------- */
.capability-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.capability-grid.cols-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px){
  .capability-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
}
.capability-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3); }
.capability-card h3{ font-size: 1.02rem; margin-top: 14px; }
.capability-card p{ font-size: 0.92rem; margin-top: 6px; }

@media (max-width: 760px){
  .compare-grid{ grid-template-columns: 1fr; }
  .capability-grid{ grid-template-columns: 1fr; }
  .timeline{ flex-direction: column; gap: var(--space-4); }
  .timeline::before{ top: 0; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; }
  .timeline-step{ padding-left: 60px; min-height: 44px; }
  .timeline-dot{ position: absolute; left: 0; top: 0; margin-bottom: 0; }
}

/* ---------- Contact page ---------- */
.contact-grid{ display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: start; margin-top: var(--space-5); }
.contact-form{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-card);
}
.form-row{ margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea{
  font-family: var(--font-body); font-size: 0.96rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(67,119,255,0.15);
}
.form-row textarea{ resize: vertical; min-height: 110px; font-family: inherit; }
.form-row .optional-tag{ font-weight: 400; color: var(--muted-2); font-size: 0.82rem; }
.form-row-pair{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* ---------- Checkbox pill group ---------- */
.check-group{ display: flex; flex-wrap: wrap; gap: 10px; }
.check-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  user-select: none;
}
.check-pill input{ position: absolute; opacity: 0; width: 0; height: 0; }
.check-pill .tick{
  width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.check-pill .tick::after{
  content: ''; width: 8px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px); opacity: 0;
}
.check-pill.checked{ background: var(--blue-tint); border-color: var(--blue); color: var(--blue-deep); }
.check-pill.checked .tick{ background: var(--blue); border-color: var(--blue); }
.check-pill.checked .tick::after{ opacity: 1; }

.contact-sidebar{ display: flex; flex-direction: column; gap: var(--space-3); }
.sidebar-card{ border-radius: var(--radius-lg); padding: var(--space-3); }
.sidebar-card.steps{ background: var(--blue-tint); }
.sidebar-card.direct{ background: var(--white); border: 1px solid var(--line); }
.sidebar-card h3{ font-size: 0.98rem; margin-bottom: var(--space-2); }
.next-steps{ display: flex; flex-direction: column; gap: 14px; }
.next-step{ display: flex; gap: 12px; align-items: flex-start; }
.next-step .idx{
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue);
  border: 1px solid var(--line); background: var(--white); border-radius: 50%;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.next-step p{ font-size: 0.9rem; margin: 0; color: var(--ink); }
.direct-contact-item{ margin-bottom: 14px; }
.direct-contact-item:last-child{ margin-bottom: 0; }
.direct-contact-item .dlabel{ font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); display: block; margin-bottom: 4px; }
.direct-contact-item a{ font-weight: 600; color: var(--blue); font-size: 0.96rem; }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
  .form-row-pair{ grid-template-columns: 1fr; }
}

/* ---------- Legal pages (Privacy Policy, Terms) ---------- */
.legal-content{ max-width: 760px; }
.legal-content h2{ font-size: 1.35rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-content h2:first-of-type{ margin-top: 0; }
.legal-content h3{ font-size: 1.02rem; margin-top: var(--space-3); margin-bottom: 8px; }
.legal-content p{ margin-bottom: var(--space-2); line-height: 1.7; color: var(--muted); }
.legal-content ul{ margin: var(--space-2) 0; padding-left: 22px; list-style: disc; }
.legal-content li{ margin-bottom: 8px; color: var(--muted); line-height: 1.6; }
.legal-content strong{ color: var(--ink); }
.legal-meta{ font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted-2); margin-top: 10px; }
.legal-placeholder{
  background: #FFF6E5; border: 1px dashed #E8B84B; padding: 1px 7px;
  border-radius: 5px; color: #8A6412; font-weight: 600; font-size: 0.94em;
}

/* ==========================================================
   Service page shared components
   ========================================================== */

/* ---------- FAQ accordion (native details/summary, zero JS) ---------- */
.faq-list{ display: flex; flex-direction: column; gap: 12px; margin-top: var(--space-4); max-width: 760px; }
.faq-item{
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 4px var(--space-3); overflow: hidden;
}
.faq-item summary{
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-weight: 600; color: var(--navy); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .plus{
  width: 22px; height: 22px; flex-shrink: 0; position: relative;
}
.faq-item summary .plus::before, .faq-item summary .plus::after{
  content: ''; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .2s ease;
}
.faq-item summary .plus::before{ width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-item summary .plus::after{ width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item[open] summary .plus::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item p{ padding: 0 0 18px; font-size: 0.95rem; }

/* ---------- Three-way comparison (SEO page: Traditional / DIY AI / AMEXIS) ---------- */
.compare3-grid{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.compare3-col{ border-radius: var(--radius-lg); padding: var(--space-3); }
.compare3-col.a, .compare3-col.b{ background: #F3F4F8; border: 1px solid var(--line); }
.compare3-col.c{ background: linear-gradient(160deg, var(--navy-deep), var(--navy) 120%); box-shadow: var(--shadow-card); }
.compare3-col h4{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted-2); }
.compare3-col.c h4{ color: #9FB8FF; }
.compare3-col .compare-item{ font-size: 0.9rem; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.compare3-col.c .compare-item{ color: rgba(255,255,255,0.9); }
.compare3-col .compare-item .mark{ flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: #E2E4ED; color: #9096AC; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.compare3-col.c .compare-item .mark{ background: rgba(67,119,255,0.28); color: #B9CBFF; }

/* ---------- Platform chip strip (GEO/AEO page) ---------- */
.platform-strip{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
.platform-chip{
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy);
}
.platform-chip.plus{ background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---------- Mini chat mockup (GEO/AEO page) ---------- */
.chat-mock{
  background: var(--navy-deep); border-radius: var(--radius-lg); padding: var(--space-4);
  max-width: 520px; box-shadow: var(--shadow-soft);
}
.chat-bubble{ border-radius: 16px; padding: 14px 18px; font-size: 0.94rem; line-height: 1.5; margin-bottom: 14px; max-width: 88%; }
.chat-bubble.user{ background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.ai{ background: rgba(67,119,255,0.18); color: #fff; border: 1px solid rgba(67,119,255,0.3); border-bottom-left-radius: 4px; }
.chat-bubble.ai .biz-mention{ color: #9FB8FF; font-weight: 700; }

/* ---------- Offering split (Website Development page) ---------- */
.offering-split{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.offering-card{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.offering-card.featured{ border-color: var(--blue); box-shadow: 0 0 0 3px rgba(67,119,255,0.1); }
.offering-card .tag{ font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 10px; display: block; }
.offering-card h3{ font-size: 1.2rem; }
.offering-card ul{ margin-top: var(--space-3); display: flex; flex-direction: column; gap: 10px; }
.offering-card li{ font-size: 0.92rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.offering-card li::before{ content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ---------- Audit CTA (shared lead-gen block, every DM service page) ---------- */
.audit-cta{
  background: linear-gradient(135deg, var(--blue-tint), #ffffff 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-5);
  align-items: center;
}
.audit-cta .pitch .eyebrow{ margin-bottom: var(--space-2); }
.audit-cta .pitch h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); }
.audit-cta .pitch p{ margin-top: 14px; font-size: 0.98rem; }
.audit-cta .pitch ul{ margin-top: var(--space-3); display: flex; flex-direction: column; gap: 10px; }
.audit-cta .pitch li{ font-size: 0.9rem; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.audit-cta .pitch li::before{ content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.audit-form{ background: var(--white); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-card); }
.audit-cta.amber-cta{ background: linear-gradient(135deg, #FFF1E6, #ffffff 65%); }
.audit-cta.amber-cta .pitch li::before{ color: var(--amber-deep); }

@media (max-width: 900px){
  .compare3-grid{ grid-template-columns: 1fr; }
  .offering-split{ grid-template-columns: 1fr; }
  .audit-cta{ grid-template-columns: 1fr; padding: var(--space-4); }
}

@media (max-width: 640px){
  /* The audit-form nests inside audit-cta, so their padding stacks (40px + 24px).
     On phones that leaves very little room for paired fields - tighten both. */
  .audit-cta{ padding: var(--space-3); }
  .audit-form{ padding: var(--space-2); box-shadow: none; }
}

.service-hero{ padding: var(--space-3) 0 var(--space-2); }
.service-hero h1{ max-width: 20ch; margin-top: 14px; }
.service-hero .lede{ max-width: 62ch; margin-top: var(--space-3); font-size: 1.1rem; }
.callout-note{
  background: var(--blue-tint); border-radius: var(--radius-md);
  padding: 18px 22px; font-size: 0.95rem; color: var(--navy); font-weight: 500;
  margin-top: var(--space-4); display: flex; gap: 12px; align-items: center; max-width: 640px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px){
  .card-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3{ grid-template-columns: repeat(2, 1fr); }
  .stats-row{ grid-template-columns: repeat(2,1fr); gap: var(--space-4); }
  .hero .container{ min-height: 480px; }
  .division-intro{ grid-template-columns: 1fr; }
  .division-intro .visual{ order: -1; }
  .hybrid-grid{ grid-template-columns: 1fr; }
  .section-head{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .main-nav, .header-cta .btn-ghost{ display: none; }
  .nav-toggle{ display: block; }

  /* Hero: drop the full-bleed background treatment on mobile, fall back to a
     plain light hero with the image as a normal stacked card below the copy */
  .hero-bg-wrap{ display: none; }
  .hero .container{ min-height: 0; padding: var(--space-6) var(--space-3); display: block; }
  .hero{ background: var(--white); }
  .hero-glass{
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: none; box-shadow: none; padding: 0;
  }
  .hero-glass h1{ color: var(--navy); }
  .hero-glass h1 .accent{ color: var(--blue); }
  .hero-glass .hero-lede{ color: var(--muted); }
  .hero-glass .fork-chip{ color: var(--muted); }
  .hero-glass .btn-ghost.on-dark{
    color: var(--navy); border-color: var(--line);
  }
  .hero-glass .btn-ghost.on-dark:hover{ border-color: var(--blue); color: var(--blue); }
  /* Hero image dropped entirely on mobile - it's decorative only, not
     worth the scroll length on a small screen */
  .hero-mobile-visual{ display: none; }
}
@media (max-width: 640px){
  .card-grid.cols-4{ grid-template-columns: 1fr; }
  .card-grid.cols-3{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  :root{ --space-6: 64px; --space-7: 88px; }
  .cta-band{ padding: var(--space-5) var(--space-3); }
}

/* ---------- Footer logo (real white-on-dark asset) ---------- */
.footer-brand .logo img{ height: 30px; width: auto; }

/* ==========================================================
   Mobile horizontal-scroll carousels
   Long card grids (services, capabilities) become a swipeable
   row on small screens instead of a tall vertical stack, with
   the next card peeking in at the edge as a scroll hint.
   ========================================================== */
@media (max-width: 760px){
  .card-grid,
  .capability-grid{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--space-2);
    margin: 0 calc(-1 * var(--space-3));
    padding: 4px var(--space-3) 22px;
  }
  .card-grid::-webkit-scrollbar,
  .capability-grid::-webkit-scrollbar{ display: none; }
  .card-grid > *,
  .capability-grid > *{
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-width: 0;
  }
  /* Opt out for single-card sections where a carousel makes no sense */
  .capability-grid.no-scroll{
    display: block;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}
