:root {
  --bg: #05080a;
  --bg2: #0a1013;
  --panel: rgba(12, 18, 20, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #eef3f1;
  --muted: #9aa7a3;
  --lime: #dcff3c;
  --teal: #5fe0c8;
  --gold: #f2c14e;
  --blue: #5fb4ff;
  --head: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.025em; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---- buttons ---- */
.btn { --h: 44px; display: inline-flex; align-items: center; gap: 8px; height: var(--h); padding: 0 20px; border-radius: 999px;
  background: var(--lime); color: #0b1200; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; box-shadow: 0 0 0 0 rgba(220, 255, 60, 0); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px rgba(220, 255, 60, .45); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line2); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.btn.sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { --h: 52px; padding: 0 26px; font-size: 16px; }

/* ---- nav ---- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(24px, env(safe-area-inset-left)); transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 8, 10, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; }

/* ---- story / hero ---- */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #05080a url(/assets/hero-poster.webp) center / cover no-repeat; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.ready canvas { opacity: 1; }
.stage.ready { background-image: none; }
.stage-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 70% 40%, transparent 40%, rgba(5, 8, 10, .55) 100%),
    linear-gradient(90deg, rgba(5, 8, 10, .82) 0%, rgba(5, 8, 10, .35) 42%, transparent 65%),
    linear-gradient(0deg, var(--bg) 0%, transparent 18%); }
.chapters { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; pointer-events: none; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 24px 64px; max-width: 1180px; margin: 0 auto; }
.chapter > * { pointer-events: auto; }
.chapter + .chapter { min-height: 110vh; }
.hero { flex-direction: column; align-items: flex-start; justify-content: center; position: relative; }
.hero-copy { max-width: 640px; }
.kick { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1 { font-size: clamp(42px, 7.2vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.grad { background: linear-gradient(92deg, #fff 0%, var(--lime) 45%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9d4d0; max-width: 560px; margin-top: 24px; line-height: 1.55; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.live { position: absolute; left: 24px; bottom: 34px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; max-width: min(720px, calc(100% - 100px)); }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.scroll-cue { position: absolute; right: 24px; bottom: 30px; width: 26px; height: 42px; border: 1.5px solid var(--line2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.card.glass { max-width: 440px; padding: 28px 30px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  opacity: .25; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.chapter.on .card.glass { opacity: 1; transform: none; }
.step { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.card h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.08; margin-bottom: 12px; }
.card p:not(.step) { color: #c3cdca; }
.text-link { display: inline-block; margin-top: 16px; color: var(--lime); text-decoration: none; font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.legend { position: absolute; right: 28px; bottom: 34px; width: 230px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted); opacity: 0; transform: translateY(10px); transition: .6s var(--ease); backdrop-filter: blur(10px); }
.legend.on { opacity: 1; transform: none; }
.legend i { display: block; height: 6px; border-radius: 4px; margin: 8px 8px 6px; background: linear-gradient(90deg, #0d4f5c, #1fa3a8 30%, #7fe3b0 55%, #dcff3c 78%, #fff6c8); }
.legend b { display: block; position: relative; height: 14px; font-weight: 400; margin: 0 8px; }
.legend em { font-style: normal; position: absolute; transform: translateX(-50%); }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; z-index: 3; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--lime)); box-shadow: 0 0 10px var(--lime); }

/* ---- stats ---- */
.stats { position: relative; z-index: 3; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 34px 8px; border-left: 1px solid var(--line); text-align: center; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---- sections ---- */
section.showcase, section.companies, section.method { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head h2, .method h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.03; }
.sub { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 620px; }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(70px, 10vw, 130px); }
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip .shot { order: 2; }
.feature-copy h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.feature-copy p:not(.step) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #c9d4d0; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }

.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #0a0f11;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 120px -40px rgba(95, 224, 200, .25);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)) scale(.96); transition: transform 1.1s var(--ease); will-change: transform; }
.feature.flip .shot { --ry: 8deg; }
.feature.in .shot { --ry: 0deg; --rx: 0deg; transform: perspective(1400px) rotateY(var(--ry)) rotateX(var(--rx)) scale(1); }
.chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #0e1517; border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #2a3336; }
.chrome span { margin-left: 12px; font-family: var(--mono); font-size: 11.5px; color: #6f7d79; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.companies { background: radial-gradient(70% 50% at 80% 0%, rgba(95, 224, 200, .07), transparent 70%), var(--bg2); border-top: 1px solid var(--line); }
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  transition: border-color .3s, transform .3s var(--ease), background .3s; }
.tile:hover { border-color: rgba(220, 255, 60, .35); transform: translateY(-3px); background: linear-gradient(180deg, rgba(220, 255, 60, .05), rgba(255, 255, 255, .01)); }
.tile svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 60px; right: calc(33.3% - 30px); top: 30px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 10px); opacity: .6; }
.steps li { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; position: relative; }
.steps b { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-size: 22px;
  background: var(--bg2); border: 1px solid var(--gold); color: var(--gold); box-shadow: 0 0 30px -8px rgba(242, 193, 78, .5); }
.steps h3 { font-size: 18px; margin: 0 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.method-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.rules li { padding: 22px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules h3 { font-size: 18px; margin-bottom: 4px; }
.rules p { color: var(--muted); font-size: 15px; }

.cta { padding: clamp(80px, 12vw, 140px) 0; background: radial-gradient(60% 70% at 50% 100%, rgba(220, 255, 60, .12), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; }
.cta .ctas { justify-content: center; }
.trail { width: min(520px, 90%); height: auto; margin-bottom: 26px; overflow: visible; }
.trail path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 10; }
.cta-inner.in .trail path { animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }

.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; justify-self: end; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { grid-column: 1 / -1; max-width: 900px; line-height: 1.6; color: #75827e; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.grid6 .tile:nth-child(3n+2) { transition-delay: .08s; }
.grid6 .tile:nth-child(3n) { transition-delay: .16s; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .grid6 { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 16px; }
  .nav .btn.ghost { display: none; }
  .chapter { padding: 88px 16px 40px; align-items: flex-end; }
  .hero { justify-content: flex-end; padding-bottom: 110px; }
  .stage-shade { background: linear-gradient(0deg, rgba(5, 8, 10, .92) 0%, rgba(5, 8, 10, .55) 45%, rgba(5, 8, 10, .15) 75%); }
  .card.glass { padding: 22px; }
  .live { left: 16px; bottom: 26px; font-size: 11px; max-width: calc(100% - 70px); }
  .scroll-cue { right: 16px; bottom: 24px; }
  .legend { right: 16px; left: 16px; width: auto; top: 70px; bottom: auto; }
  .grid6, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .steps li { flex-direction: row; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot nav { justify-self: start; }
  .shot { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .card.glass { opacity: 1; transform: none; }
  .shot { transform: none; }
}
