:root {
  --bg: #05070D;
  --bg-2: #0B0F1A;
  --ink: #eef2f8;
  --muted: #9aa3b5;
  --faint: #77819a;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .035);
  --accent: #5B95FF;
  --accent-hi: #A9C7FF;
  --glow: rgba(91, 149, 255, .45);
  --serif: "Instrument Serif", Cambria, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1200px 700px at 75% -10%, rgba(91, 149, 255, .14), transparent 60%),
              radial-gradient(900px 600px at -10% 110%, rgba(91, 149, 255, .07), transparent 60%);
}

/* ---------- logo ---------- */
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; color: var(--ink); flex: none; }
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark.has-img img { max-width: none; width: 140%; height: 140%; margin: -20%; } /* source PNGs carry ~17% padding; no transform (it left a seam line) */
.logo-xl { width: 128px; height: 128px; margin-bottom: 36px; filter: drop-shadow(0 0 24px rgba(91, 149, 255, .35)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad); transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font: 400 26px/1 var(--serif); letter-spacing: .01em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: 600 15px/1 var(--sans); color: var(--bg);
  background: var(--accent); padding: 0 22px; height: 52px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  text-decoration: none; transition: background .2s, transform .2s var(--ease), box-shadow .3s;
  box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 12px 40px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- type ---------- */
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 18px; }
.h2 { font: 400 clamp(44px, 7vw, 92px)/1 var(--serif); letter-spacing: -.01em; }
.h2 em, .hero-promise em, .tagline em { color: var(--accent-hi); }
.lede { color: var(--muted); font-size: 19px; margin-top: 18px; }

/* ---------- layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--pad) 0; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; overflow-x: clip;
  padding: 112px max(var(--pad), calc(50% - var(--max) / 2 + var(--pad))) 64px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 96px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent-hi); animation: pulse 2.4s infinite; }
.hero-title { font: 400 clamp(96px, 15vw, 196px)/.9 var(--serif); letter-spacing: -.02em; margin: 26px 0 18px; }
.hero-promise { font: 400 clamp(30px, 3.4vw, 44px)/1.12 var(--serif); max-width: 15em; }
.hero-sub { color: var(--muted); margin-top: 16px; font-size: 18px; }
.hero .waitlist { margin-top: 40px; }

.hero-pod { position: relative; margin: 0; justify-self: center; width: min(100%, 540px); }
.hero-pod::before { content: ""; position: absolute; inset: 4% 6% 10%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 149, 255, .16), transparent 72%); filter: blur(24px); pointer-events: none; }
.hero-pod img { position: relative; z-index: 1; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .7)) drop-shadow(0 0 1px rgba(169, 199, 255, .25)); }
.pod-glow { position: absolute; left: 14%; right: 14%; bottom: -5%; height: 14%; z-index: 0; background: radial-gradient(closest-side, rgba(91, 149, 255, .5), transparent); filter: blur(26px); animation: breathe 5s ease-in-out infinite; }
.hero-constellation { position: absolute; z-index: 0; width: 160%; height: auto; aspect-ratio: 1; left: -30%; top: -14%; color: rgba(185, 205, 255, .16); pointer-events: none; }
.hero-constellation.has-img { opacity: .2; }

/* ---------- waitlist ---------- */
.waitlist { width: 100%; max-width: 480px; }
.wl-form {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  transition: border-color .2s, box-shadow .3s;
}
.wl-form:focus-within { border-color: rgba(91, 149, 255, .8); box-shadow: 0 0 0 4px rgba(91, 149, 255, .18); }
.wl-form input {
  flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: var(--ink);
  font: 400 16px var(--sans); padding: 0 8px 0 18px; outline: none;
}
.wl-form input::placeholder { color: var(--faint); }
.wl-form input:focus-visible { outline: none; }
.wl-form[aria-busy="true"] .btn { opacity: .7; pointer-events: none; }
.wl-msg { min-height: 1.5em; margin: 12px 0 0 20px; font-size: 14px; color: var(--muted); }
.wl-msg.error { color: #ff8a8a; }
.waitlist.invalid .wl-form { border-color: #ff6b6b; animation: shake .4s; }

.wl-done { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; border-radius: 999px; background: rgba(91, 149, 255, .1); border: 1px solid rgba(91, 149, 255, .45); animation: pop .6s var(--ease); }
.wl-done .star { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 30px var(--glow); }
.wl-done .star svg { width: 22px; height: 22px; fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .25s forwards; }
.wl-done b { display: block; font-weight: 600; }
.wl-done span { color: var(--muted); font-size: 14px; word-break: break-all; }
.spark { position: fixed; width: 4px; height: 4px; border-radius: 50%; background: #fff; pointer-events: none; z-index: 60; box-shadow: 0 0 8px #9fc0ff; }

/* ---------- demo ---------- */
.demo { text-align: center; }
.demo-stage { margin-top: 64px; position: relative; }
.demo-line { font: 400 clamp(28px, 4.2vw, 56px)/1.25 var(--serif); max-width: 22em; margin: 0 auto; }
.demo-line .w { display: inline-block; opacity: .14; transition: opacity .35s, color .35s, transform .35s var(--ease); }
.demo-line .w.on { opacity: 1; }
.seg { border-radius: 12px; padding: 0 .12em; transition: background .5s, box-shadow .5s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.demo.split .seg-a, .demo.split .seg-b { background: rgba(91, 149, 255, .16); box-shadow: inset 0 -2px 0 var(--accent); }
.demo.split .seg .w { color: var(--accent-hi); }
.demo-trans { color: var(--muted); margin-top: 18px; font-size: 16px; opacity: 0; transition: opacity .6s .2s; }
.demo.typed .demo-trans { opacity: 1; }
.demo-wires { display: block; width: min(560px, 70%); height: 60px; margin: 28px auto 0; overflow: visible; }
.demo-wires path { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 4px var(--accent)); }
.demo.split .demo-wires path { stroke-dashoffset: 0; }
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; text-align: left; }
.dcard {
  padding: 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); opacity: .25; transform: translateY(16px) scale(.98);
  transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .7s, box-shadow .7s;
}
.dcard-b { transition-delay: .15s; }
.demo.split .dcard { opacity: 1; transform: none; border-color: rgba(91, 149, 255, .5); box-shadow: 0 20px 60px -30px var(--glow); }
.dcard-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.dcard-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; display: block; }
.dcard-big { font: 400 clamp(56px, 7vw, 84px)/1 var(--serif); margin: 22px 0 18px; font-variant-numeric: tabular-nums; }
.dcard-big sup { font-size: .38em; vertical-align: top; margin-left: 4px; color: var(--muted); position: relative; top: .35em; }
.dcard-show { display: flex; align-items: center; gap: 16px; }
.play { width: 0; height: 0; border-left: 22px solid var(--accent-hi); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent-hi); }
.demo.split .progress span { animation: play 12s linear forwards; animation-delay: .6s; }
.dcard-foot { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pill { font-size: 12px; font-weight: 600; color: var(--accent-hi); background: rgba(91, 149, 255, .2); padding: 4px 10px; border-radius: 999px; }
.replay { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--muted); font: 500 14px var(--sans); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s; }
.replay:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- features ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.tile {
  padding: 32px 28px 30px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.tile:hover { border-color: rgba(91, 149, 255, .45); background: rgba(91, 149, 255, .05); transform: translateY(-3px); }
.tile svg { width: 30px; height: 30px; fill: none; stroke: var(--accent-hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; }
.tile h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 16px; }
.works { margin-top: 40px; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; letter-spacing: .04em; }
.works span { color: var(--muted); font-weight: 500; }

/* ---------- inside ---------- */
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.callouts { margin-top: 44px; counter-reset: c; }
.callouts li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); cursor: default; transition: opacity .3s; }
.callouts li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font: 500 13px/1.9 var(--sans); color: var(--accent-hi); }
.callouts b { font: 400 28px/1.1 var(--serif); }
.callouts span { color: var(--muted); font-size: 16px; margin-top: 4px; }
.callouts:hover li:not(.hot), .callouts.has-hot li:not(.hot) { opacity: .45; }
.teardown { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 120px -40px #000, 0 0 0 1px var(--line); }
.teardown img { filter: grayscale(1) invert(1) contrast(1.3) brightness(.78); }
.teardown::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, #3d86ff, #1846a8); mix-blend-mode: color; opacity: .5; }
.teardown::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 55%, rgba(5, 7, 13, .85)); }
.spot {
  position: absolute; z-index: 2; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  display: grid; place-items: center; font: 600 13px/1 var(--sans); color: var(--bg); background: var(--accent);
  box-shadow: 0 0 0 6px rgba(91, 149, 255, .25), 0 0 24px var(--accent); transition: transform .3s var(--ease);
}
.spot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent-hi); animation: ring 2.4s infinite; }
.spot.hot { transform: scale(1.25); }

/* ---------- build log ---------- */
.log { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.log li { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 14px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.log .tick { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center; box-shadow: 0 0 10px var(--glow); }
.log .progress-dot { background: transparent; border: 1.5px solid var(--accent-hi); animation: pulse 2s infinite; }
.log h3 { font: 500 17px/1.3 var(--sans); }
.log p { grid-column: 2 / 4; color: var(--muted); font-size: 15px; }
.log .status { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.log .is-progress .status { color: var(--accent-hi); }

/* ---------- cta + footer ---------- */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; padding-bottom: clamp(96px, 12vw, 160px); }
.cta-title { font: italic 400 clamp(64px, 11vw, 150px)/1 var(--serif); letter-spacing: -.01em; }
.tagline { font: 400 clamp(22px, 2.6vw, 32px)/1.3 var(--serif); color: var(--muted); margin: 20px 0 44px; }
.cta .wl-msg { margin-left: 0; }
.footer { max-width: var(--max); margin: 0 auto; padding: 32px var(--pad) 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 14px; }
.footer .brand-word { font-size: 22px; color: var(--ink); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 50% { opacity: .35; } }
@keyframes breathe { 50% { opacity: .6; transform: scaleX(.92); } }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes play { to { width: 100%; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 104px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; min-width: 0; }
  .hero-pod { width: min(88%, 440px); margin-top: 8px; }
  .inside { grid-template-columns: 1fr; }
  .teardown { max-width: 520px; width: 100%; justify-self: center; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tiles { gap: 10px; margin-top: 40px; }
  .tile { padding: 20px 18px; border-radius: 20px; }
  .tile svg { width: 26px; height: 26px; margin-bottom: 22px; }
  .tile h3 { font-size: 23px; margin-bottom: 6px; }
  .tile p { font-size: 14px; line-height: 1.45; }
  .log li { padding: 16px 0; }
  .log p { font-size: 14px; }
      .demo-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dcard { padding: 16px; border-radius: 18px; }
  .dcard-big { font-size: 44px; margin: 14px 0 12px; }
  .dcard-show { gap: 10px; }
  .play { border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
  .dcard-foot { flex-wrap: wrap; font-size: 12px; }
  .log { grid-template-columns: 1fr; }
  .section { padding-top: 88px; }
  .nav { height: 58px; gap: 12px; }
  .brand-word { font-size: 22px; }
  .nav .btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
  .hero { padding-top: 92px; padding-bottom: 40px; gap: 20px; }
  .eyebrow { font-size: 12.5px; padding: 6px 12px; gap: 8px; }
  .hero-title { font-size: clamp(76px, 25vw, 112px); margin: 20px 0 12px; }
  .hero-promise { font-size: clamp(26px, 7.4vw, 32px); }
  .hero-sub { font-size: 16px; margin-top: 12px; }
  .hero .waitlist { margin-top: 28px; }
  .hero-pod { width: min(92%, 380px); }
  .waitlist { max-width: 420px; }
  .wl-form { padding: 5px; gap: 4px; }
  .wl-form input { height: 46px; padding: 0 6px 0 16px; font-size: 16px; }
  .wl-form .btn { height: 46px; padding: 0 16px; font-size: 13px; flex: none; }
  .callouts b { font-size: 24px; }
  .logo-xl { width: 96px; height: 96px; margin-bottom: 28px; }
  .tagline { margin-bottom: 32px; }
  .wl-msg { margin-left: 0; text-align: center; }
  .wl-done { border-radius: 22px; text-align: left; }
  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
