/* ============================================================
   Expand AI — Stripe-inspired redesign
   Aurora-australis gradient · navy/slate type · diagonal bands
   ============================================================ */

:root {
  /* Core */
  --ink: #0A2540;
  --slate: #425466;
  --muted: #6B7C93;
  --mist: #F6F9FC;
  --line: #E6EBF1;
  --line-strong: #D5DEE8;

  /* Accents */
  --violet: #655BF6;
  --violet-deep: #4F46D6;
  --blue: #1F6FEB;
  --teal: #00B8A9;
  --cyan: #3ECFFF;
  --magenta: #B44CF0;
  --green: #0F9D6E;

  /* Dark band */
  --navy: #0A2540;
  --dark-body: #A3B4C6;
  --dark-line: rgba(255,255,255,0.12);

  /* Fonts */
  --font-display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Compat aliases (used by mock visuals) */
  --a1: #1F6FEB;
  --a2: #00B8A9;
  --a3: #655BF6;
  --accent: #655BF6;
  --text: #0A2540;
  --text-muted: #6B7C93;
  --border: #E6EBF1;
  --border-strong: #D5DEE8;
  --paper: #F6F9FC;
  --paper-2: #F6F9FC;

  --shadow-card: 0 2px 5px -1px rgba(50,50,93,0.12), 0 1px 3px -1px rgba(0,0,0,0.12);
  --shadow-float: 0 13px 27px -5px rgba(50,50,93,0.25), 0 8px 16px -8px rgba(0,0,0,0.3);
  --shadow-deep: 0 30px 60px -12px rgba(50,50,93,0.25), 0 18px 36px -18px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(101,91,246,0.18); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
}

h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

h2 { text-wrap: balance; }

h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: clamp(24px, 2.6vw, 31px); letter-spacing: -0.025em; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--violet);
  margin-bottom: 14px;
}

.eyebrow.teal { color: var(--teal); }
.eyebrow.blue { color: var(--blue); }
.eyebrow.cyan { color: #23B8E8; }

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1D3A5F; }

.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: var(--violet-deep); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E3E9F1; }

.btn-lg { padding: 11px 22px; font-size: 16px; }

/* Stripe-style hover arrow: stem fades in, chevron nudges right */
.hover-arrow .ha-stem { opacity: 0; transition: opacity .18s ease; }
.hover-arrow .ha-chev { transition: transform .18s ease; }
.btn:hover .ha-stem, .arrow-link:hover .ha-stem { opacity: 1; }
.btn:hover .ha-chev, .arrow-link:hover .ha-chev { transform: translateX(3px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  color: var(--violet);
}
.arrow-link:hover { color: var(--violet-deep); }
.arrow-link.on-dark { color: var(--cyan); }
.arrow-link.on-dark:hover { color: #fff; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 2px 12px rgba(10,37,64,0.05);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity .15s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-cta .ghost-link { font-size: 15px; font-weight: 600; color: var(--ink); opacity: .82; }
.nav-cta .ghost-link:hover { opacity: 1; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 6px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 8px 0;
  color: var(--ink);
}
.mobile-close {
  position: absolute;
  top: 22px; right: 26px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--slate);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 158px 0 110px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%);
}

.aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* soften the top so nav + headline stay legible */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.3) 36%, rgba(255,255,255,0) 64%);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(10,37,64,0.1);
  border-radius: 999px;
  padding: 5px 14px 5px 6px;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-pill .chip {
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-sub {
  margin-top: 26px;
  max-width: 490px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Hero mock ---------- */

.hero-visual { position: relative; }

.mock-window {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  border: 1px solid rgba(10,37,64,0.06);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #FBFCFE;
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: #E3E9F1; }
.mock-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.mock-body { display: flex; }

.mock-side {
  width: 168px;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  background: #FBFCFE;
  flex-shrink: 0;
}
.mock-side .sb-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 8px 7px;
}
.mock-side .sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--slate);
}
.mock-side .sb-item.active { background: rgba(101,91,246,0.09); color: var(--violet-deep); }
.mock-side .sb-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.55; }

.mock-main { flex: 1; padding: 20px 22px; min-width: 0; }

.mock-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock-h {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 5px;
}
.mock-live {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--green);
  background: rgba(15,157,110,0.09);
  padding: 4px 9px;
  border-radius: 6px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.mock-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.mock-kpi .k-label { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.mock-kpi .k-val {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.mock-kpi:nth-child(1) .k-val { color: var(--blue); }
.mock-kpi:nth-child(2) .k-val { color: var(--violet); }
.mock-kpi:nth-child(3) .k-val { color: var(--teal); }
.mock-kpi .k-delta { font-size: 10px; color: var(--muted); margin-top: 1px; }

.mock-chart { margin-top: 16px; }
.mock-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mock-chart-head .ct { font-size: 11.5px; font-weight: 600; color: var(--slate); }
.mock-legend { display: flex; gap: 12px; font-size: 10px; color: var(--muted); }
.mock-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mock-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.sparkline-svg { width: 100%; height: 110px; display: block; }

/* floating chat card over the mock */
.mock-chat {
  position: absolute;
  left: -44px;
  bottom: -66px;
  width: 292px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(10,37,64,0.06);
  padding: 14px;
}
.mock-chat .mc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.mc-avatar {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mc-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mc-sub { font-size: 10.5px; color: var(--muted); }
.mc-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  font-weight: 500;
}
.mc-user {
  font-size: 12px;
  line-height: 1.45;
  background: var(--ink);
  color: #fff;
  border-radius: 9px 9px 3px 9px;
  padding: 8px 11px;
  margin-left: 26px;
}
.mc-ai {
  font-size: 12px;
  line-height: 1.5;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 9px 9px 9px 3px;
  padding: 8px 11px;
  margin-top: 8px;
  margin-right: 18px;
  color: var(--slate);
}
.mc-cites { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.mc-cite {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 7px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
}

/* ---------- Trust bar ---------- */

.trustbar { padding: 72px 0 20px; }
.trustbar-label {
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 30px;
}
.trustbar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}
.tl img {
  height: 34px;
  width: auto;
  filter: grayscale(1) brightness(0.4);
  opacity: 0.55;
  transition: filter .2s ease, opacity .2s ease;
}
.tl:hover img { filter: grayscale(0) brightness(1); opacity: 1; }
.tl.inverted img { filter: grayscale(1) invert(1) brightness(0.4); opacity: 0.55; }
.tl.inverted:hover img { filter: grayscale(1) invert(1) brightness(0.2); opacity: 0.9; }
.tl-more { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }

/* Diagonal bands (Stripe technique: skewed background layer) */
.band { position: relative; padding: calc(72px + 6vw) 0; z-index: 0; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: skewY(-6deg);
  z-index: -1;
}
.band-mist::before { background: var(--mist); }
.band-navy::before { background: linear-gradient(160deg, #0E2A4E 0%, var(--navy) 55%, #081D33 100%); }

/* ---------- Feature rows ---------- */

.features { padding: 90px 0 40px; }

.features-intro { max-width: 660px; margin-bottom: 20px; }
.features-intro p { margin-top: 18px; }

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding: 64px 0;
}
.frow + .frow { border-top: 1px solid var(--line); }
.frow.flip .frow-copy { order: 2; }
.frow.flip .frow-visual { order: 1; }

.frow-copy h3 { max-width: 430px; }
.frow-copy > p { margin-top: 16px; font-size: 16.5px; line-height: 1.6; color: var(--slate); max-width: 460px; }

.fchecks { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.fcheck {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate);
}
.fcheck svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }
.fcheck b { color: var(--ink); font-weight: 600; }

.frow-copy .arrow-link { margin-top: 24px; }

.frow-visual { position: relative; }

/* floating card style shared by feature mocks */
.fcard {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,37,64,0.07);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.fcard-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.fcard-head .mc-status { margin-left: auto; }
.fcard-body { padding: 6px 16px; }
.fcard-body.pad { padding: 14px 16px; }

.fglow {
  position: absolute;
  inset: -8% -6%;
  border-radius: 24px;
  z-index: -1;
  opacity: 0.55;
  filter: blur(44px);
}
.fglow.violet { background: radial-gradient(closest-side, rgba(101,91,246,0.4), transparent 70%); }
.fglow.teal { background: radial-gradient(closest-side, rgba(0,184,169,0.32), transparent 70%); }
.fglow.blue { background: radial-gradient(closest-side, rgba(31,111,235,0.3), transparent 70%); }

/* doc-answer mock rows */
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.doc-row:last-child { border-bottom: none; }
.doc-row .dr-name { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); min-width: 0; }
.doc-row .dr-name svg { flex-shrink: 0; color: var(--muted); }
.doc-row .dr-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row .dr-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(31,111,235,0.08);
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
}

/* pipeline mock rows */
.pipe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.pipe-row:last-child { border-bottom: none; }
.pipe-row .pr-k {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pipe-row .pr-v { font-size: 13.5px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.pipe-row .pr-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.pipe-row .pr-badge.ok { background: rgba(15,157,110,0.1); color: var(--green); }
.pipe-row .pr-badge.human { background: rgba(101,91,246,0.1); color: var(--violet); }

/* ---------- Microsoft band ---------- */

.ms-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.ms-lede { margin-top: 18px; font-size: 16.5px; line-height: 1.62; color: var(--slate); }
.ms-copy .arrow-link { margin-top: 22px; }

.ms-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ms-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ms-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.ms-card h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-top: 12px; color: var(--ink); }
.ms-card p { font-size: 13.5px; line-height: 1.5; color: var(--slate); margin-top: 5px; }
.ms-card-icon svg { width: 30px; height: 30px; }

.models-strip {
  margin-top: 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.models-strip h3 { font-size: 20px; letter-spacing: -0.02em; }
.models-strip p { font-size: 14.5px; color: var(--slate); margin-top: 6px; max-width: 560px; }
.model-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  max-width: 340px;
  flex-shrink: 0;
}
.model-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--slate);
  background: #fff;
}

/* ---------- Industries ---------- */

.industries-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.industries-head p { max-width: 400px; color: var(--slate); font-size: 16px; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ind-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ind-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: rgba(10,37,64,0.04);
}
.ind-card .ind-glyph { color: var(--muted); }
.ind-stat {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ind-card:nth-child(1) .ind-stat { color: var(--blue); }
.ind-card:nth-child(2) .ind-stat { color: var(--violet); }
.ind-card:nth-child(3) .ind-stat { color: var(--teal); }
.ind-card:nth-child(4) .ind-stat { color: #23B8E8; }
.ind-stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.ind-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.ind-desc { font-size: 13.5px; line-height: 1.55; color: var(--slate); margin-top: 7px; }
.ind-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.ind-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Dark band: security & numbers ---------- */

.band-navy { color: var(--dark-body); }
.band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }

.dark-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--dark-line);
}
.dstat-val {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dark-stats > div:nth-child(1) .dstat-val { color: var(--cyan); }
.dark-stats > div:nth-child(2) .dstat-val { color: #8F86FF; }
.dark-stats > div:nth-child(3) .dstat-val { color: #2EE6A8; }
.dark-stats > div:nth-child(4) .dstat-val { color: #6FB1FF; }
.dstat-lab { font-size: 13.5px; margin-top: 9px; line-height: 1.45; }

.sec-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.sec-intro .eyebrow { color: var(--cyan); }
.sec-intro p { margin-top: 16px; font-size: 16.5px; line-height: 1.62; }
.sec-intro .arrow-link { margin-top: 22px; }

.sec-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 30px;
}
.sec-pillar .sp-ic {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(62,207,255,0.1);
  border: 1px solid rgba(62,207,255,0.22);
  color: var(--cyan);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.sec-pillar h4 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.sec-pillar p { font-size: 13.5px; line-height: 1.55; margin-top: 6px; }

.compliance-strip {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.compliance-strip .clabel {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compliance-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.clogo {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  color: #C8D5E1;
}

/* ---------- Process ---------- */

.process-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.process-head p { max-width: 380px; color: var(--slate); font-size: 16px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--line-strong);
}
.step { position: relative; padding-top: 40px; }
.step::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--violet);
}
.step:nth-child(2)::before { border-color: var(--blue); }
.step:nth-child(3)::before { border-color: #23B8E8; }
.step:nth-child(4)::before { border-color: var(--teal); }
.step:nth-child(5)::before { border-color: var(--green); }
.step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.step h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; margin-top: 7px; color: var(--ink); }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--slate); margin-top: 7px; }
.step-duration {
  display: inline-block;
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 5px;
}

/* ---------- Case studies ---------- */

.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cases-head p { max-width: 380px; color: var(--slate); font-size: 16px; }

.cases-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 44px;
}
.case-tab {
  border: none;
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.case-tab:hover { color: var(--ink); }
.case-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.case-view {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.case-industry {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-logo-img { height: 36px; width: auto; margin-top: 14px; }
.case-logo-img.inverted-bg {
  background: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  height: 44px;
}

.case-quote {
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.case-strategy { font-size: 14.5px; line-height: 1.6; color: var(--slate); }
.case-strategy b { color: var(--ink); font-weight: 600; }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.case-metric .val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--violet);
}
.case-metric:nth-child(2) .val { color: var(--blue); }
.case-metric:nth-child(3) .val { color: var(--teal); }
.case-metric .lab { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

.case-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.case-stack-badge { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.case-stack-badge span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.about-photo img {
  border-radius: 14px;
  box-shadow: var(--shadow-float);
}
.about-body p { font-size: 16.5px; line-height: 1.65; color: var(--slate); margin-top: 16px; max-width: 560px; }
.about-body .signature { margin-top: 28px; }
.sig-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; color: var(--ink); }
.sig-role { font-size: 13px; color: var(--muted); margin-top: 1px; }

/* ---------- Contact (dark) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.contact-lead .eyebrow { color: var(--cyan); }
.contact-lead p { margin-top: 18px; font-size: 16.5px; line-height: 1.6; max-width: 440px; }
.contact-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 13px; }
.cm-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.cm-row b { color: #fff; font-weight: 600; }
.cm-ic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(62,207,255,0.1);
  border: 1px solid rgba(62,207,255,0.22);
  color: var(--cyan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-cta { margin-top: 30px; }

.contact-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA9BC; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(101,91,246,0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-error { font-size: 13px; color: #D64545; }

/* ---------- Footer ---------- */

.footer { padding: 72px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-tag { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--slate); max-width: 300px; }
.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 14px; color: var(--slate); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Legal modal ---------- */

.footer-legal-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-legal-link:hover { color: var(--ink); }

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,37,64,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  width: 100%;
  max-width: 680px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.legal-head h3 { font-size: 22px; }
.legal-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.legal-close {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--slate);
  flex-shrink: 0;
}
.legal-close:hover { background: #E3E9F1; color: var(--ink); }

.legal-body {
  padding: 8px 28px 28px;
  overflow-y: auto;
}
.legal-body h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 22px 0 6px;
}
.legal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  margin-top: 10px;
}
.legal-body ul {
  margin: 8px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal-body li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
}
.legal-body li b { color: var(--ink); font-weight: 600; }

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(0.2, 0.6, 0.2, 1), transform .6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 76px; }
  .hero-sub { max-width: 560px; }
  .hero-visual { max-width: 640px; }
  .mock-chat { left: 10px; bottom: -36px; }
  .ms-grid, .sec-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-stats { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 34px 30px; }
  .process-steps::before { display: none; }
  .case-view { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .ghost-link { display: none; }
  .nav-burger { display: block; }
  .hero { padding-top: 128px; }
  .frow { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .frow.flip .frow-copy { order: 1; }
  .frow.flip .frow-visual { order: 2; }
  .ms-cards { grid-template-columns: 1fr; }
  .models-strip { padding: 24px; }
  .model-chips { margin-left: 0; }
  .industries-grid { grid-template-columns: 1fr; }
  .sec-pillars { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock-side { display: none; }
  .mock-chat { position: static; width: 100%; margin-top: 16px; }
  .section { padding: 76px 0; }
  .band { padding: calc(56px + 8vw) 0; }
}

@media (max-width: 480px) {
  .cases-tabs { width: 100%; }
  .case-tab { flex: 1; padding: 8px 10px; font-size: 13px; }
  .dark-stats { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
