:root {
  --bg: #000;
  --card: #141414;
  --card-alt: #1a1a1a;
  --border: #262626;
  --text: #f5f5f5;
  --sub: #a3a3a3;
  --mute: #737373;
  --accent: #f97316;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #0068a5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #07080d; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(249, 115, 22, 0.34), transparent 58%),
    radial-gradient(ellipse 55% 42% at 108% 18%, rgba(0, 104, 165, 0.32), transparent 52%),
    radial-gradient(ellipse 48% 36% at -8% 88%, rgba(249, 115, 22, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(0, 104, 165, 0.16), transparent 50%),
    linear-gradient(165deg, #161922 0%, #0c0e14 42%, #07080d 100%);
}
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
header.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
header.top::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: rgba(8, 10, 16, 0.55);
  backdrop-filter: blur(16px);
}
header img { height: 38px; width: auto; display: block; }
.badge {
  font-size: 12px;
  color: var(--mute);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}
.hero { padding: 28px 0 20px; text-align: center; }
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 auto 14px;
  font-weight: 720;
  max-width: 14ch;
}
h1 span { color: var(--accent); }
.lead { color: var(--sub); font-size: 18px; max-width: 42ch; margin: 0 auto 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pills span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--sub);
}
.mode {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.mode button {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--sub);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.mode button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.stage-hero {
  position: relative;
  height: 760px;
  margin: 28px auto 10px;
  max-width: 920px;
  overflow: hidden;
}
.glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(520px, 100%);
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(249,115,22,.22), transparent 68%);
  pointer-events: none;
}
.fan .phone { position: absolute; transition: transform .2s linear; }
.fan .back-l { left: 4%; top: 70px; z-index: 1; }
.fan .front { left: 50%; top: 8px; z-index: 3; margin-left: -150px; }
.fan .back-r { right: 4%; top: 86px; z-index: 2; }

.phone {
  width: 300px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.screen {
  background: #000;
  border-radius: 26px;
  overflow: hidden;
  min-height: 560px;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
}
.phone.shot { padding: 8px; }
.phone.shot .screen {
  padding: 0;
  min-height: 0;
  aspect-ratio: 1206 / 2622;
}
.phone.shot .screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.appbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.standby { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 11px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.word { font-weight: 800; letter-spacing: -0.04em; font-size: 18px; }
.word b { color: var(--blue); }
.screen h2 { color: var(--accent); font-size: 20px; margin: 0 0 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 10px 8px;
  margin-bottom: 8px;
}
.card-title {
  color: var(--mute);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.muted { color: var(--mute); }
.sub { color: var(--sub); }
.tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 9px;
  color: var(--mute);
  padding-top: 6px;
}
.tabs .on { color: var(--accent); }
.ex { font-size: 10px; color: var(--mute); letter-spacing: .04em; }

.flow { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 4px; }
.flow-ico {
  width: 36px; height: 36px; border-radius: 12px; margin: 0 auto 4px;
  display: grid; place-items: center; border: 1px solid;
  font-size: 16px;
}
.flow b { display: block; text-align: center; font-size: 13px; }
.flow small { display: block; text-align: center; color: var(--mute); font-size: 10px; }
.flow-mid { display: flex; flex-direction: column; gap: 7px; }
.track { position: relative; height: 2px; border-radius: 99px; overflow: hidden; }
.bead {
  position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  animation: bead 2.4s linear infinite;
}
@keyframes bead { from { left: -8px; } to { left: 100%; } }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.metric { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 4px; }
.metric span { display: block; color: var(--mute); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.metric strong { font-size: 18px; font-weight: 750; }
.metric strong em { font-style: normal; color: var(--mute); font-size: 11px; font-weight: 600; }
.metric svg { display: block; width: 100%; height: 36px; }

.bigval { font-size: 28px; font-weight: 760; letter-spacing: -0.03em; }
.bigval em { font-style: normal; color: var(--accent); font-size: 14px; }
.ranges { display: flex; gap: 6px; margin: 8px 0; }
.ranges span {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--mute); background: var(--card-alt);
}
.ranges .on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart { width: 100%; height: 168px; display: block; }
.chart.tall { height: 150px; }
.axis { display: flex; justify-content: space-between; color: var(--mute); font-size: 10px; font-variant-numeric: tabular-nums; margin-top: -2px; }

.draw {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
}
.draw.go, .frame.on .draw, .phone.live .draw { animation: draw 1.35s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fill {
  opacity: 0;
}
.fill.go, .frame.on .fill, .phone.live .fill { animation: fade .8s ease .35s forwards; }
@keyframes fade { to { opacity: 1; } }

.days { display: flex; flex-direction: column; gap: 6px; }
.day { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.day i { height: 7px; border-radius: 99px; background: var(--card-alt); overflow: hidden; display: block; }
.day i b {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #fdba74, var(--accent));
}
.frame.on .day i b, .phone.live .day i b { animation: grow 0.9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes grow { to { width: var(--w); } }
.day em { font-style: normal; color: var(--green); font-variant-numeric: tabular-nums; }

.split-chart { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; }
.donut { width: 92px; height: 92px; }
.donut circle.arc {
  fill: none; stroke-width: 10; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50px 50px;
  stroke-dasharray: 0 226;
}
.frame.on .donut .pv, .phone.live .donut .pv { animation: pv .9s ease forwards; }
.frame.on .donut .grid, .phone.live .donut .grid { animation: grid .9s ease .15s forwards; }
@keyframes pv { to { stroke-dasharray: 176 226; } }
@keyframes grid { to { stroke-dasharray: 50 226; stroke-dashoffset: -176; } }
.legend { font-size: 12px; color: var(--sub); }
.legend div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; white-space: nowrap; }
.sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding-top: 4px; }
.bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bars i {
  display: block; width: 100%; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(#fdba74, var(--accent));
  height: var(--h); transform: scaleY(0); transform-origin: bottom;
}
.frame.on .bars i, .phone.live .bars i { animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards; }
.bars div:nth-child(2) i { animation-delay: .05s; }
.bars div:nth-child(3) i { animation-delay: .1s; }
.bars div:nth-child(4) i { animation-delay: .15s; }
.bars div:nth-child(5) i { animation-delay: .2s; }
.bars div:nth-child(6) i { animation-delay: .25s; }
.bars div:nth-child(7) i { animation-delay: .3s; }
@keyframes rise { to { transform: scaleY(1); } }
.bars em { font-style: normal; color: var(--mute); font-size: 9px; }

.thead, .trow {
  display: grid;
  grid-template-columns: 46px 42px 36px 1fr;
  column-gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.thead { color: var(--mute); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.trow { color: var(--sub); }
.orange { color: var(--accent); }
.green { color: var(--green); text-align: right; }
.red { color: var(--red); }

.story { height: 520vh; position: relative; }
.story-sticky {
  position: sticky;
  top: 66px;
  height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
}
.kicker { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; }
.copy { position: relative; min-height: 220px; }
.step {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.step.on { opacity: 1; transform: none; }
.step h3 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1.05; }
.step p { color: var(--sub); font-size: 17px; max-width: 42ch; margin: 0; }
.rail { display: flex; gap: 8px; margin-top: 22px; }
.rail button {
  width: 28px; height: 4px; border: 0; border-radius: 99px; padding: 0;
  background: #2a2a2a; cursor: pointer;
}
.rail button.on { background: var(--accent); }
.phone-stage { position: relative; height: 660px; }
.frame {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.frame.on { opacity: 1; transform: none; }

.tech { padding: 88px 0 24px; }
.tech-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}
.tech h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 12ch;
}
.tech-lead {
  color: var(--sub);
  font-size: 17px;
  margin: 0 0 4px;
}
.path {
  display: grid;
  grid-template-columns: 1fr 72px 1.3fr 72px 1fr;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(10, 12, 18, .55);
}
.path-step { text-align: center; min-width: 0; }
.path-step strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.path-step span {
  display: block;
  margin-top: 3px;
  color: var(--mute);
  font-size: 13px;
}
.path-step.mid strong { color: var(--accent); }
.path-line {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(249,115,22,.15), var(--accent), var(--blue));
}
.sources {
  margin: 0 0 28px;
  padding: 32px 32px 26px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(10, 12, 18, .55);
}
.sources-lead {
  margin: 0 0 32px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
}
.sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
}
.sources-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.sources-grid p {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.6;
}
.sources-note {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tech-grid article {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 26px 24px 14px;
  background:
    linear-gradient(180deg, rgba(249,115,22,.14), transparent 46%),
    rgba(14, 16, 22, .82);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.tech-grid article:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(0,104,165,.22), transparent 48%),
    rgba(14, 16, 22, .82);
}
.tech-grid article:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 42%),
    rgba(14, 16, 22, .82);
}
.tech-when {
  margin: 0;
  color: var(--accent);
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 720;
  line-height: 1;
}
.tech-grid h3 {
  margin: 8px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.tech-grid ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.tech-grid li {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.5;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--mute);
  font-size: 13px;
  padding: 22px 0 40px;
}
footer p { margin: 0; line-height: 1.5; }
footer .contact {
  color: var(--sub);
  font-size: 15px;
  margin-bottom: 8px;
}
footer a { color: inherit; text-decoration: none; white-space: nowrap; }
footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .stage-hero { height: 640px; }
  .fan .back-l, .fan .back-r { display: none; }
  .fan .front { left: 50%; }
  .story { height: auto; }
  .story-sticky {
    position: static; height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0 40px;
  }
  .copy { min-height: 0; }
  .step { position: static; opacity: 1; transform: none; margin-bottom: 18px; }
  .phone-stage { height: auto; }
  .frame { position: static; opacity: 1; transform: none; margin: 0 auto 28px; width: 300px; }
  .rail { display: none; }
  .tech { padding-top: 48px; }
  .tech-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .tech h2 { max-width: 12ch; }
  .path { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; margin-bottom: 20px; }
  .path-line { width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(180deg, var(--accent), var(--blue)); }
  .sources { padding: 22px 18px 18px; margin-bottom: 20px; }
  .sources-lead { margin-bottom: 24px; }
  .sources-grid { grid-template-columns: 1fr; gap: 28px; }
  .sources-note { margin-top: 22px; padding-top: 18px; }
  .tech-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bead, .draw, .fill, .day i b, .bars i, .donut circle.arc { animation: none !important; }
  .draw { stroke-dashoffset: 0; }
  .fill { opacity: 1; }
  .day i b { width: var(--w); }
  .bars i { transform: none; }
  .donut .pv { stroke-dasharray: 176 226; }
  .donut .grid { stroke-dasharray: 50 226; stroke-dashoffset: -176; }
  .story { height: auto; }
  .story-sticky { position: static; height: auto; display: block; }
  .step, .frame { position: static; opacity: 1; transform: none; }
  .phone-stage { height: auto; }
  .frame { margin: 24px auto; }
}
