:root {
  --night: #0A1520;
  --panel: #0F1F2E;
  --line: #1E3346;
  --fog: #8EA2B4;
  --moon: #E8EEF2;
  --sodium: #F2B33D;
  --sodium-dim: rgba(242, 179, 61, .14);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--moon);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: "JetBrains Mono", monospace; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
@media (min-width: 700px) { .wrap { width: min(1200px, 100% - 96px); } }

/* nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--moon); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--sodium); }
.nav .soon { color: var(--fog); font-size: 15px; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(24px, 6vh, 72px) 0 clamp(64px, 11vh, 128px);
}
.product { color: var(--sodium); font-weight: 700; font-size: 16px; margin-bottom: 18px; }
h1 { font-weight: 800; font-size: clamp(42px, 5.6vw, 84px); line-height: .96; letter-spacing: -.035em; }
.lede { margin-top: 26px; max-width: 30em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--fog); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta {
  display: inline-block; background: var(--sodium); color: var(--night);
  font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px;
  text-decoration: none; border: 1px solid var(--sodium); transition: transform .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta.ghost { background: transparent; color: var(--moon); border-color: var(--line); }
.cta:focus-visible, .brand:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
.hero .soon { margin-top: 18px; color: var(--fog); font-size: 14px; }

/* demo panel */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.screen { position: relative; border-radius: 10px; overflow: hidden; background: #08121B; }
.screen canvas { display: block; width: 100%; aspect-ratio: 16 / 9; }
.hud {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  font: 500 12px/1 "JetBrains Mono", monospace; color: var(--fog); pointer-events: none;
}
.rec::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #E5534B; margin-right: 7px; vertical-align: 1px;
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.ask {
  margin-top: 10px; display: flex; align-items: center; gap: 12px;
  background: var(--night); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; min-height: 54px;
}
.ask-q { flex: 1; font-size: 17px; font-weight: 500; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--sodium); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2, start) infinite; }

/* sections */
.block { padding: clamp(64px, 10vh, 112px) 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.028em; line-height: 1.04; max-width: 18em; }
.block .intro { margin-top: 18px; max-width: 36em; color: var(--fog); font-size: 18px; line-height: 1.55; }

.problem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); margin-top: 48px; align-items: start; }
.bigstat .n { font-size: clamp(72px, 10vw, 140px); font-weight: 800; letter-spacing: -.045em; line-height: .88; color: var(--sodium); }
.bigstat p { margin-top: 18px; color: var(--fog); font-size: 18px; line-height: 1.5; max-width: 22em; }
.costs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.costs div { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.costs h3, .why h3, .fits h3 { font-size: 18px; font-weight: 700; }
.costs p, .why p, .fits p { color: var(--fog); font-size: 16px; line-height: 1.5; margin-top: 6px; }

.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--moon); padding-top: 18px; }
.steps .k { font-family: "JetBrains Mono", monospace; color: var(--sodium); font-size: 14px; }
.steps h3 { font-size: 23px; letter-spacing: -.01em; margin-top: 10px; }
.steps p { color: var(--fog); margin-top: 10px; line-height: 1.55; font-size: 16.5px; }

.why { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why div { padding-top: 18px; border-top: 1px solid var(--line); }

.proof { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.proof > div { background: var(--night); padding: 24px 20px 22px; display: flex; flex-direction: column; }
.proof .n { font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.proof .l { margin-top: 10px; font-size: 16px; line-height: 1.35; }
.proof .s { margin-top: 8px; font-size: 14px; color: var(--fog); line-height: 1.4; }
.proof .tag { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--fog); }
.proof .measured .tag { color: var(--sodium); }
.proof .measured .n { color: var(--sodium); }
.footnote { margin-top: 18px; color: var(--fog); font-size: 14px; max-width: 72em; line-height: 1.55; }

.fits { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.fits div { padding: 18px 0 20px; border-top: 1px solid var(--line); }

.partners { background: var(--sodium); color: var(--night); border-radius: 22px; padding: clamp(28px, 5vw, 64px); }
.partners h2 { max-width: 16em; }
.partners .cols { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.partners h3 { font-size: 20px; }
.partners p { margin-top: 8px; font-size: 17px; line-height: 1.5; max-width: 28em; }
.partners .cta { margin-top: 20px; background: var(--night); color: var(--moon); border-color: var(--night); }
.partners .cta.ghost { background: transparent; color: var(--night); border-color: rgba(10, 21, 32, .35); }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px 0 40px; color: var(--fog); font-size: 14px; }

@media (max-width: 960px) {
  .hero, .problem { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .costs, .steps, .why, .fits, .partners .cols { grid-template-columns: 1fr; }
  .hero { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec::before, .caret { animation: none; }
}

/* wide animation stage (options M1-M3) */
.hero-top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 4vw, 64px); align-items: end;
  padding: clamp(16px, 4vh, 48px) 0 clamp(28px, 4vh, 44px);
}
.hero-top .lede { margin-top: 0; }
.hero-top .actions { margin-top: 24px; }
.stage-wrap { padding-bottom: clamp(64px, 10vh, 112px); }
.stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  background: #08121B; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.stage.split { grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr); }
.stage-main { position: relative; min-width: 0; }
.stage-main > canvas { display: block; width: 100%; height: clamp(440px, 52vw, 640px); }
.stage-hud {
  position: absolute; top: 14px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none;
}
.phases { display: flex; flex-wrap: wrap; gap: 6px; }
.phases span {
  font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--fog); background: rgba(10, 21, 32, .75);
}
.phases span.on { background: var(--sodium); border-color: var(--sodium); color: var(--night); font-weight: 600; }
.meter { text-align: right; font: 500 12.5px "JetBrains Mono", monospace; color: var(--fog); }
.meter b { display: block; margin-top: 4px; font: 800 28px "Schibsted Grotesk", sans-serif; letter-spacing: -.02em; color: var(--moon); }
.meter.kept b { color: var(--sodium); }
.caption {
  position: absolute; left: 16px; bottom: 16px; max-width: min(560px, calc(100% - 32px));
  background: rgba(10, 21, 32, .85); border: 1px solid var(--line);
  padding: 12px 16px; border-radius: 12px; font-size: 17px; line-height: 1.4;
}
.stage-note { margin-top: 12px; font-size: 13.5px; color: var(--fog); max-width: 72em; line-height: 1.5; }
.side { border-left: 1px solid var(--line); padding: 20px; background: var(--panel); min-width: 0; }
@media (max-width: 960px) {
  .hero-top { grid-template-columns: 1fr; }
  .stage.split { grid-template-columns: 1fr; }
  .side { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stage-main > canvas { height: 440px; }
  .caption { font-size: 15px; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .phases span { padding: 4px 8px; font-size: 12px; }
  .meter b { font-size: 22px; }
  .stage-hud { top: 10px; left: 10px; right: 10px; }
}
