/* NextIndication
   Design tokens, layout and components. */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #f5f5f7;
  --white: #fff;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --on-dark-3: #86868b;
  --card-dark: #161617;
  --card-dark-2: #1d1d1f;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(0, 0, 0, 0.08);

  --mint: #6ff2d4;
  --sky: #3fb4ff;
  --blue: #6c8cff;
  --amber: #ffb340;
  --grad: linear-gradient(92deg, #6ff2d4 0%, #3fb4ff 52%, #6c8cff 100%);
  --grad-ink: linear-gradient(92deg, #07917a 0%, #0a74d6 55%, #3f55d8 100%);
  --accent-ink: #0a74d6;
  --link-dark: #2997ff;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-card: 28px;
  --nav-h: 52px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
img, canvas { max-width: 100%; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- 3D canvas and labels ---------- */

#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
.no-webgl #scene { display: none; }
.no-webgl body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(63, 180, 255, 0.35), transparent 70%),
    radial-gradient(40% 40% at 30% 90%, rgba(111, 242, 212, 0.22), transparent 70%);
}

.scene-labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.scene-label {
  position: absolute; left: 0; top: 0; opacity: 0;
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  color: var(--on-dark-2);
  display: flex; align-items: center; gap: 8px;
  will-change: transform, opacity;
}
.scene-label::before { content: ""; width: 18px; height: 1px; background: rgba(255, 255, 255, 0.35); }
.scene-label.below { flex-direction: column; gap: 6px; }
.scene-label.below::before { width: 1px; height: 12px; }
.scene-label b { color: var(--on-dark); font-weight: 600; }

main, .footer { position: relative; z-index: 2; }

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

.eyebrow {
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 14px;
}
.eyebrow .num { opacity: 0.7; margin-right: 12px; font-variant-numeric: tabular-nums; }
.eyebrow.accent { color: var(--accent-ink); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-ink {
  background: var(--grad-ink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-title {
  font-size: clamp(46px, 9.4vw, 124px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
.display {
  font-size: clamp(36px, 5.8vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.display-2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--on-dark-3);
  text-wrap: pretty;
}
.lead strong { color: var(--on-dark); font-weight: 600; }
.light .lead { color: var(--ink-2); }
.light .lead strong { color: var(--ink); }

.fineprint { font-size: 13px; line-height: 1.4; color: var(--on-dark-3); margin-top: 22px; }
.light .fineprint { color: var(--ink-2); }
.center { text-align: center; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.012em; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: #e8e8ed; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 14px; background: var(--white); color: var(--black); }
.btn-small:hover { background: #e8e8ed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-size: 17px; font-weight: 500; color: var(--link-dark); cursor: pointer;
}
.link-arrow svg { width: 7px; height: 12px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

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

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
  color: var(--on-dark);
}
.nav.scrolled { border-bottom-color: var(--line-dark); }
.nav[data-theme="light"] { background: rgba(251, 251, 253, 0.78); color: var(--ink); }
.nav[data-theme="light"].scrolled { border-bottom-color: var(--line-light); }

.nav-inner {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.logo-mark { width: 22px; height: 22px; }
.logo-word { font-size: 18px; font-weight: 500; letter-spacing: -0.025em; }
.logo-word b { font-weight: 700; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: -0.005em; opacity: 0.82;
  padding: 14px 0; cursor: pointer; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav[data-theme="light"] .btn-small { background: var(--ink); color: var(--white); }
.nav[data-theme="light"] .btn-small:hover { background: #000; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

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

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + clamp(44px, 9.5vh, 120px)) var(--gutter) 120px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 100% at 50% 100%, rgba(63, 180, 255, 0.2), rgba(63, 180, 255, 0.05) 55%, transparent 75%);
}
.hero-inner { position: relative; width: min(1040px, 100%); will-change: transform, opacity; }
.hero-sub {
  font-size: clamp(18px, 1.9vw, 25px); line-height: 1.38; font-weight: 500; letter-spacing: -0.016em;
  color: var(--on-dark-2); max-width: 720px; margin: 26px auto 0; text-wrap: pretty;
}
.hero-sub strong { color: var(--on-dark); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; margin-top: 34px; }

.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 85ms); }
.js .hero-fade { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--white); animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Scroll story ---------- */

.story { position: relative; }
.js .story { height: 500vh; }
.js .story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-shade { display: none; }
.story-wrap { position: relative; height: 100%; }

.story-panel { padding: 60px 0; max-width: 520px; }
.js .story-panel {
  position: absolute; left: 0; top: 50%; width: min(480px, 44%); padding: 0;
  opacity: var(--o, 0);
  transform: translate3d(0, calc(-50% + var(--y, 0px)), 0);
  will-change: opacity, transform;
}
.story-panel .lead { margin-top: 22px; }

.story-dots { display: none; }
.js .story-dots {
  display: flex; flex-direction: column; gap: 12px;
  position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%);
}
.story-dots li { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.28); transition: height 0.5s var(--ease), background-color 0.5s; }
.story-dots li.on { height: 26px; background: var(--white); }

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

.section { padding: clamp(96px, 13vw, 168px) 0; position: relative; }
.section.light { background: var(--white); color: var(--ink); }
.section.light.alt { background: var(--paper); }
.section.dark { background: var(--black); color: var(--on-dark); }

.section-head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 24px; max-width: 720px; }
.section-head.center .lead { margin-inline: auto; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* reveal */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Experience ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { text-align: center; }
.stat-num {
  font-size: clamp(46px, 6.3vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.06em;
}
.stat p { margin: 14px auto 0; max-width: 230px; font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink-2); }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-light);
}
.pillar svg { width: 34px; height: 34px; color: var(--accent-ink); margin-bottom: 18px; }
.pillar h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.022em; font-weight: 600; }
.pillar p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-item { min-width: 0; display: flex; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

.card {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 28px;
  min-height: 300px; padding: clamp(28px, 3vw, 44px);
  background: var(--white); color: var(--ink);
  border-radius: var(--r-card); overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  transform-style: preserve-3d;
}
.card.tilting { transition: transform 0.08s linear, box-shadow 0.6s var(--ease); }
.card:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.28); }
.card-dark { background: var(--black); color: var(--on-dark); }
.card-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(63, 180, 255, 0.22), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(111, 242, 212, 0.14), transparent 70%);
}
.card-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.5), transparent 60%);
  mix-blend-mode: soft-light;
}
.card-dark .card-glare { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.16), transparent 60%); mix-blend-mode: normal; }
.card.tilting .card-glare { opacity: 1; }

.card-copy { position: relative; }
.card-kicker { font-size: 15px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.card-kicker.accent { color: var(--accent-ink); }
.card h3 { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.card-copy p:not(.card-kicker) { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 520px; }
.card-dark .card-copy p:not(.card-kicker) { color: var(--on-dark-2); }
.card-icon { width: 36px; height: 36px; color: var(--accent-ink); margin-bottom: 22px; }

.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips li {
  font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--on-dark);
}

/* mini funnel */
.viz { position: relative; }
.viz-funnel { display: grid; gap: 7px; }
.vf-row { height: 30px; display: grid; grid-template-columns: 132px 1fr; align-items: center; }
.vf-row i {
  grid-column: 2; grid-row: 1; justify-self: center; display: block; height: 100%; width: var(--w); transform: scaleX(0);
  border-radius: 8px; background: var(--grad); opacity: 0.9;
  transition: transform 1.3s var(--ease); transition-delay: calc(var(--n, 0) * 110ms + 250ms);
}
.vf-row:nth-child(1) { --n: 0; } .vf-row:nth-child(2) { --n: 1; } .vf-row:nth-child(3) { --n: 2; } .vf-row:nth-child(4) { --n: 3; } .vf-row:nth-child(5) { --n: 4; }
.vf-row:nth-child(2) i { opacity: 0.74; } .vf-row:nth-child(3) i { opacity: 0.6; } .vf-row:nth-child(4) i { opacity: 0.48; } .vf-row:nth-child(5) i { opacity: 1; }
.vf-row span {
  grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 500; color: var(--on-dark-2);
  opacity: 0; transition: opacity 0.8s; transition-delay: calc(var(--n, 0) * 110ms + 500ms);
}
.in .vf-row i { transform: none; }
.in .vf-row span { opacity: 1; }

/* mini ranking */
.viz-rank { display: grid; gap: 12px; margin-top: auto; }
.vr-row { position: relative; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.vr-row i {
  display: block; height: 12px; width: var(--w); border-radius: 12px; background: #d2d2d7;
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--n, 0) * 100ms + 250ms);
}
.vr-row:nth-child(1) { --n: 0; } .vr-row:nth-child(2) { --n: 1; } .vr-row:nth-child(3) { --n: 2; } .vr-row:nth-child(4) { --n: 3; }
.vr-row.is-next { color: var(--ink); }
.vr-row.is-next i { background: var(--grad-ink); }
.vr-row em {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 980px; background: var(--ink); color: var(--white);
  opacity: 0; transition: opacity 0.6s 1.1s;
}
.in .vr-row i { transform: none; }
.in .vr-row em { opacity: 1; }

/* mini path */
.viz-path svg { width: 100%; height: auto; overflow: visible; }
.viz-path circle { fill: var(--on-dark); }
.viz-path .vp-flag { fill: var(--amber); }
.viz-path .vp-ring { fill: none; stroke: var(--amber); stroke-width: 2; transform-origin: 340px 45px; animation: ping 2s var(--ease) infinite; }
.viz-path .vp-flow { stroke-dasharray: 60 640; stroke-dashoffset: 700; animation: flow 4.5s linear infinite; }
.paused, .paused * { animation-play-state: paused !important; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: 0; } }

/* ---------- Live model ---------- */

.model-card {
  display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 0;
  background: var(--card-dark); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line-dark);
}
.model-controls { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 30px; }
.model-controls legend { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 18px; }
.slider { display: block; margin-bottom: 20px; cursor: pointer; }
.slider:last-child { margin-bottom: 0; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--on-dark-2); margin-bottom: 4px; }
.slider-top output { font-size: 17px; font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; display: block;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sky) 0, var(--sky) var(--fill, 50%), rgba(255, 255, 255, 0.16) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--sky); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%;
  background: var(--white); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease);
}
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(63, 180, 255, 0.5); }

.segmented {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 3px; margin-top: auto;
}
.segmented button {
  position: relative; z-index: 1; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--on-dark-2);
  border-radius: 9px; transition: color 0.3s;
}
.segmented button[aria-checked="true"] { color: var(--black); }
.segmented-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 9px;
  background: var(--white); transform: translateX(calc(var(--i, 1) * 100%)); transition: transform 0.45s var(--ease);
}

.model-output { padding: clamp(24px, 3vw, 40px); min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-label { font-size: 13px; line-height: 1.25; color: var(--on-dark-3); min-height: 2.5em; }
.kpi-value { font-size: clamp(24px, 2.7vw, 38px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.chart .c-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.chart .c-line { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s, stroke-width 0.4s; }
.chart .c-line.on { stroke: url(#fcStroke); stroke-width: 3.5; }
.chart .c-area { fill: url(#fcFill); }
.chart .c-tag { font-size: 12px; font-weight: 600; fill: var(--on-dark-3); transition: fill 0.4s; }
.chart .c-tag.on { fill: var(--on-dark); }
.chart .c-peak { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .c-dot { fill: var(--white); }

.mfunnel { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.mf-row { display: grid; grid-template-columns: 150px 1fr 72px; align-items: center; gap: 14px; font-size: 14px; color: var(--on-dark-2); }
.mf-track { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.mf-track i { display: block; height: 100%; width: 0; min-width: 6px; border-radius: 10px; background: var(--grad); transition: width 0.7s var(--ease); }
.mf-val { text-align: right; font-weight: 600; color: var(--on-dark); font-variant-numeric: tabular-nums; }

/* ---------- Journey ---------- */

.journey-card {
  background: var(--black); color: var(--on-dark); border-radius: var(--r-card); overflow: hidden;
  padding: clamp(20px, 3vw, 40px);
}
.journey-stage { position: relative; width: 100%; height: clamp(230px, 26vw, 310px); }
#journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.journey-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 13px; color: var(--on-dark-2); margin-top: 6px; }
.journey-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-flow { background: #e8e8ed; } .dot-flag { background: var(--amber); } .dot-done { background: var(--mint); }
.journey-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.jk { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.jk-num { font-size: clamp(30px, 4vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.jk-num.warn { color: var(--amber); } .jk-num.good { color: var(--mint); }
.jk-label { font-size: 13px; color: var(--on-dark-3); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.features h3 { font-size: 24px; letter-spacing: -0.025em; font-weight: 700; }
.features p { margin-top: 10px; font-size: 17px; line-height: 1.47; color: var(--ink-2); }

/* ---------- Offers ---------- */

.carousel-nav { display: flex; gap: 12px; flex: none; }
.round {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
  display: grid; place-items: center; transition: background-color 0.25s, opacity 0.25s, transform 0.25s var(--ease);
}
.round svg { width: 9px; height: 15px; }
.round:hover { background: rgba(255, 255, 255, 0.2); }
.round:active { transform: scale(0.94); }
.round[disabled] { opacity: 0.35; cursor: default; }

.offers-track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.offers-track::-webkit-scrollbar { display: none; }
.offer {
  flex: none; width: min(380px, 82vw); min-height: 440px; scroll-snap-align: start;
  background: var(--card-dark); border-radius: var(--r-card); padding: 36px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  border: 1px solid transparent; transition: transform 0.5s var(--ease), border-color 0.4s;
}
.offer:hover { transform: translateY(-6px); border-color: var(--line-dark); }
.offer-q { font-size: 15px; font-weight: 600; color: var(--on-dark-3); }
.offer h3 { font-size: 32px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin-top: 12px; }
.offer ul { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.offer li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.4; color: var(--on-dark-2); }
.offer li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; border-radius: 2px; background: var(--sky); }
.offer-featured { background: linear-gradient(160deg, #0f2e3a 0%, #10224a 55%, #161617 100%); }
.offer-featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(111, 242, 212, 0.28), transparent 70%);
}
.offer-featured > * { position: relative; }
.offer-featured .offer-q { color: var(--mint); }
.offer-tag {
  align-self: flex-start; margin-top: 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 980px; background: rgba(255, 255, 255, 0.12); color: var(--on-dark);
}

/* ---------- Approach ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--r-card); padding: 34px 30px 38px; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: 17px; font-weight: 600; background: var(--paper); color: var(--ink); margin-bottom: 28px;
}
.steps h3 { font-size: 26px; letter-spacing: -0.028em; font-weight: 700; }
.steps p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ---------- CTA ---------- */

.cta {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 120px var(--gutter);
}
.cta-inner { width: min(920px, 100%); }
.cta-title { font-size: clamp(42px, 7.6vw, 104px); }

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

.footer { background: var(--black); border-top: 1px solid var(--line-dark); padding: 44px 0 36px; color: var(--on-dark-3); font-size: 13px; line-height: 1.5; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--on-dark); }
.footer-tag { color: var(--on-dark-2); font-size: 14px; }
.footer-notes { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; max-width: 820px; }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

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

@media (max-width: 1020px) {
  .nav-links { gap: 20px; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
  .bento-item:nth-child(1), .bento-item:nth-child(4) { grid-column: span 12; }
  .bento-item:nth-child(7) { grid-column: span 12; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .model-card { grid-template-columns: 1fr; }
  .model-controls { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .model-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
  .segmented { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links, .nav .btn-small { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-menu:not([hidden]) {
    display: grid; padding: 8px var(--gutter) 28px;
    border-top: 1px solid var(--line-dark);
  }
  .nav[data-theme="light"] .mobile-menu { border-top-color: var(--line-light); }
  .mobile-menu a { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; min-height: 44px; }
  .nav.open { background: rgba(0, 0, 0, 0.92); }
  .nav.open[data-theme="light"] { background: rgba(251, 251, 253, 0.96); }

  .scene-labels { display: none; }

  .js .story-panel { top: auto; bottom: 9vh; width: 100%; max-width: 560px; transform: translate3d(0, var(--y, 0px), 0); }
  .js .story-shade { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82) 45%, #000 100%); pointer-events: none; }
  .js .story-dots { flex-direction: row; top: auto; bottom: 4vh; right: 50%; transform: translateX(50%); }
  .story-dots li.on { height: 6px; width: 26px; }
  .story-dots li { transition: width 0.5s var(--ease), background-color 0.5s; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .pillars, .features { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
  .card { min-height: 0; }
  .section-head.row { align-items: flex-start; flex-direction: column; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .kpi-label { min-height: 0; }
  .journey-kpis { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .mf-row { grid-template-columns: 118px 1fr 60px; gap: 10px; font-size: 13px; }
}

@media (max-width: 560px) {
  .model-controls { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .offer { padding: 28px; min-height: 400px; }
  .offer h3 { font-size: 28px; }
  .hero-cta { flex-direction: column; gap: 6px; }
  .vf-row { grid-template-columns: 112px 1fr; }
  .vf-row span { font-size: 12px; }
}

@media (hover: none) {
  .card:hover { box-shadow: none; }
  .offer:hover { transform: none; }
}

@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; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-title .w > span { transform: none; }
  .js .hero-fade { opacity: 1; transform: none; }
  .hero-scroll { display: none; }
}
