:root {
  --ground: #0a1224;
  --lift: #16294f;
  --accent: #2dd4a0;
  --accent-ink: #06251c;
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.14);
  --paper: #f5f7fa;
  --text: #15203a;
  --muted: #5d6879;
  --line: #e3e7ee;
  --navy: #1b2a4a;
  --soon: #b45309;
  --soon-bg: #fdf0dc;
  --radius: 28px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -8px rgba(45, 212, 160, 0.55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(45, 212, 160, 0.7); }
.btn-ghost { border-color: var(--faint); color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 18, 36, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--faint); }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; color: var(--dim); }
.links a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 70px; overflow: hidden; background:
  radial-gradient(1200px 700px at 50% -10%, var(--lift) 0%, rgba(10, 18, 36, 0) 70%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.orb-a { width: 460px; height: 460px; left: -120px; top: 120px; background: rgba(45, 212, 160, 0.18); }
.orb-b { width: 420px; height: 420px; right: -100px; top: 380px; background: rgba(59, 100, 200, 0.28); }
.orb-c { width: 560px; height: 560px; left: 50%; top: -80px; margin-left: -280px; background: rgba(45, 212, 160, 0.14); }
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: rgba(45, 212, 160, 0.1); border: 1px solid rgba(45, 212, 160, 0.28); }
h1 { font-size: clamp(46px, 8.4vw, 112px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; margin-top: 26px; }
.lead { font-size: clamp(18px, 2vw, 24px); color: var(--dim); max-width: 700px; margin-top: 26px; font-weight: 500; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 36px; }
.hero-copy .reveal:nth-child(2) { --d: 0.08s; }
.hero-copy .reveal:nth-child(3) { --d: 0.16s; }
.hero-copy .reveal:nth-child(4) { --d: 0.24s; }

.stage { position: relative; margin-top: 64px; perspective: 1600px; }
.glow { position: absolute; left: 8%; right: 8%; top: 20%; bottom: -6%; background: radial-gradient(closest-side, rgba(45, 212, 160, 0.28), rgba(45, 212, 160, 0)); filter: blur(30px); pointer-events: none; }
.video-card {
  position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #060b17;
  border: 1px solid var(--faint);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7), 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: rotateX(calc((1 - var(--p, 1)) * 14deg)) scale(calc(0.9 + var(--p, 1) * 0.1)) translateY(calc((1 - var(--p, 1)) * 36px));
  transform-origin: 50% 0%; will-change: transform;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.6s ease; }
.video-card.started .vposter { opacity: 0; }
.vbtn { position: absolute; left: 18px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 18, 36, 0.6); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.2s; }
.vbtn:hover { background: rgba(10, 18, 36, 0.85); }
.vbtn .i-play { display: none; }
.video-card.paused .i-pause { display: none; }
.video-card.paused .i-play { display: block; margin-left: 2px; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.12); }
.vbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.chapters { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-size: 14px; color: var(--dim); }
.chapters span { margin-right: 4px; font-weight: 600; }
.chapters button { font: inherit; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--faint); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.chapters button:hover { background: rgba(45, 212, 160, 0.16); border-color: rgba(45, 212, 160, 0.5); }

/* ---------- statement ---------- */
.statement { padding: clamp(90px, 16vw, 220px) 0; }
.big { font-size: clamp(30px, 5.2vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 1040px; }
.big .w { color: rgba(255, 255, 255, 0.2); transition: color 0.25s ease; }
.big .w.on { color: #fff; }
.big .w.on.hl { color: var(--accent); }

/* ---------- roles ---------- */
.role { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.role.light { background: var(--paper); color: var(--text); }
.role.dark { background: linear-gradient(180deg, #0c1730 0%, var(--ground) 100%); color: var(--ink); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.role-grid.flip .role-copy { order: 2; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.role.light .eyebrow, .features .eyebrow { color: #0b8f6a; }
h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-top: 14px; }
.lead-d { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; margin-top: 18px; color: var(--muted); max-width: 520px; }
.role.dark .lead-d { color: var(--dim); }
.feat { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; }
.feat li { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.role.dark .feat li { border-color: var(--faint); }
.feat li:last-child { border-bottom: 1px solid var(--line); }
.role.dark .feat li:last-child { border-color: var(--faint); }
.feat b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.feat span { display: block; margin-top: 3px; font-size: 15.5px; color: var(--muted); max-width: 440px; }
.role.dark .feat span { color: var(--dim); }
.tag { flex: none; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-top: 2px; white-space: nowrap; }
.tag.live { background: #d9f5ea; color: #0b7a57; }
.tag.soon { background: var(--soon-bg); color: var(--soon); }
.role.dark .tag.live { background: rgba(45, 212, 160, 0.16); color: var(--accent); }
.role.dark .tag.soon { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }

.role-visual { position: relative; min-height: clamp(520px, 62vw, 760px); }
.blob { position: absolute; width: 78%; aspect-ratio: 1; left: 11%; top: 8%; border-radius: 50%; filter: blur(70px); transform: translate3d(0, var(--py, 0), 0); }
.blob-a { background: radial-gradient(closest-side, rgba(45, 212, 160, 0.38), rgba(45, 212, 160, 0)); }
.blob-b { background: radial-gradient(closest-side, rgba(59, 100, 200, 0.5), rgba(59, 100, 200, 0)); }

/* phone frames (screens are 390x844) */
.phone { --w: clamp(220px, 21vw, 288px); position: absolute; width: var(--w); padding: calc(var(--w) * 0.029); border-radius: calc(var(--w) * 0.14); background: linear-gradient(160deg, #1b2338, #090d17 55%, #131a2b); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 50px 90px -24px rgba(10, 18, 36, 0.55), 0 20px 40px rgba(10, 18, 36, 0.28); transform: translate3d(0, var(--py, 0), 0) rotate(var(--rot, 0deg)); will-change: transform; }
.phone img { width: 100%; height: auto; border-radius: calc(var(--w) * 0.11); }
.p-main { left: 4%; top: 2%; z-index: 2; }
.p-side { right: 2%; top: 22%; z-index: 1; --w: clamp(200px, 19vw, 262px); }
.role.dark .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), 0 60px 110px -30px rgba(0, 0, 0, 0.7), 0 20px 40px rgba(0, 0, 0, 0.4); }
.chip-float { position: absolute; z-index: 3; left: 0; bottom: 10%; padding: 14px 20px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 24px 50px -12px rgba(10, 18, 36, 0.35); transform: translate3d(0, var(--py, 0), 0); display: flex; flex-direction: column; line-height: 1.15; }
.chip-float b { font-size: 24px; letter-spacing: -0.02em; }
.chip-float span { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.c2 { left: auto; right: 0; bottom: 6%; }
.c3 { bottom: 14%; }

/* ---------- flow ---------- */
.flow { padding: clamp(90px, 12vw, 160px) 0; background: radial-gradient(900px 500px at 50% 0%, #112042 0%, var(--ground) 70%); }
.flow-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow-head .lead { max-width: 560px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 90px; }
.steps .line { position: absolute; left: 6%; right: 6%; top: 44px; height: 2px; background: var(--faint); }
.steps .line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #7ee8c8); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); box-shadow: 0 0 16px rgba(45, 212, 160, 0.7); }
.step { position: relative; padding-top: 0; }
.step .num { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--ground); border: 2px solid var(--faint); font-size: 34px; font-weight: 800; color: var(--accent); transform: translate3d(0, var(--py, 0), 0); }
.step h3 { margin-top: 28px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--dim); font-size: 16.5px; max-width: 260px; }
.steps .step:nth-child(2) { --d: 0.1s; } .steps .step:nth-child(3) { --d: 0.2s; } .steps .step:nth-child(4) { --d: 0.3s; }

/* ---------- features ---------- */
.features { padding: clamp(80px, 11vw, 150px) 0; background: var(--paper); color: var(--text); }
.section-head { max-width: 700px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 1px 2px rgba(21, 32, 58, 0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(21, 32, 58, 0.25); }
.ic { width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: var(--accent); display: grid; place-items: center; }
.card h3 { margin-top: 22px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16.5px; }
.grid .card:nth-child(3n+2) { --d: 0.08s; } .grid .card:nth-child(3n) { --d: 0.16s; }
.roadmap { margin-top: 56px; padding: 32px; border-radius: 24px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.roadmap h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { font-size: 14.5px; font-weight: 700; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }

/* ---------- final CTA ---------- */
.final { position: relative; padding: clamp(100px, 13vw, 180px) 0 0; overflow: hidden; background: radial-gradient(1100px 600px at 50% 0%, #14264a 0%, var(--ground) 72%); }
.final-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.04em; line-height: 1; margin: 0; }
.final .lead { max-width: 620px; }
.url { font-weight: 700; color: var(--dim); font-size: 17px; }
.peek { position: relative; height: clamp(300px, 36vw, 470px); margin-top: 70px; }
.pk { --w: clamp(190px, 21vw, 280px); bottom: calc(var(--w) * -1.2); }
.pk-c { left: 50%; margin-left: calc(var(--w) / -2); z-index: 2; --w: clamp(210px, 23vw, 310px); }
.pk-l { left: 50%; margin-left: calc(var(--w) * -1.35); }
.pk-r { left: 50%; margin-left: calc(var(--w) * 0.35); }

.foot { border-top: 1px solid var(--faint); background: var(--ground); position: relative; z-index: 2; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; font-size: 14.5px; color: var(--dim); flex-wrap: wrap; }
.foot .brand { font-size: 18px; color: var(--ink); }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .role-grid.flip .role-copy { order: 0; }
  .role-visual { min-height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .p-main { left: 6%; --w: clamp(190px, 46vw, 250px); }
  .p-side { right: 4%; top: 18%; --w: clamp(170px, 40vw, 220px); }
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 24px; }
  .steps .line { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .btn { height: 52px; padding: 0 24px; font-size: 16px; }
  .video-card { border-radius: 18px; }
  .vbtn { left: 10px; bottom: 14px; width: 38px; height: 38px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; }
  .step .num { width: 76px; height: 76px; grid-row: span 2; font-size: 28px; }
  .step h3 { margin-top: 6px; font-size: 21px; }
  .step p { margin-top: 4px; max-width: none; }
  .grid { grid-template-columns: 1fr; }
  .roadmap { padding: 24px; }
  .feat li { flex-direction: column; gap: 8px; }
  .pk-l { margin-left: calc(var(--w) * -1.05); }
  .pk-r { margin-left: calc(var(--w) * 0.05); }
  .foot-in { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .video-card { transform: none; }
  .orb, .blob, .phone, .chip-float, .step .num { transform: none !important; }
  .phone { transform: rotate(var(--rot, 0deg)) !important; }
}

.byline { text-decoration: underline; text-underline-offset: 3px; }
.byline:hover { color: var(--ink); }
