:root {
  color-scheme: dark;
  --bg: #07080b;
  --fg: #f2f4f8;
  --muted: #9aa3b2;
  --line: #262b34;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; background: var(--bg); color: var(--fg); min-height: 100%; min-height: 100dvh; }
body { display: flex; flex-direction: column; overflow-x: clip; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #bfd4f8; outline-offset: 4px; }

header {
  position: sticky; top: 0; z-index: 8;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) max(5%, env(safe-area-inset-right)) 12px max(5%, env(safe-area-inset-left));
  background: #07080be6;
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.3) blur(18px);
  -webkit-backdrop-filter: saturate(1.3) blur(18px);
}
body.scrolled header { border-color: #ffffff14; }
nav { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #b3bbc8; }
.wordmark { font-size: 20px; letter-spacing: -1px; font-weight: 600; }
.wordmark span { color: #8793a6; font-weight: 400; }
.nav-buy {
  min-width: 68px; padding: 8px 16px; border: 0; border-radius: 980px;
  background: #0071e3; color: #fff; font-size: 13px; font-weight: 560;
  opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.nav-buy:hover { background: #147ce5; }
body.buy-pinned .nav-buy,
body.inner .nav-buy { opacity: 1; transform: none; pointer-events: auto; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 72px; flex: 1; }
.hero {
  display: grid; grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr);
  gap: 40px; align-items: center; min-height: calc(100svh - 120px); padding: 24px 0 56px;
}
.hero-copy { max-width: 520px; }
.hero-copy > * { animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .16s; }
.hero-copy > :nth-child(5) { animation-delay: .2s; }
.hero-frame {
  position: relative; isolation: isolate; contain: layout paint;
  aspect-ratio: 16 / 10; width: 100%;
  border: 1px solid #2b313c; border-radius: 22px; overflow: hidden;
  background: #0b0d12; box-shadow: 0 24px 80px #0008;
}
.hero-frame canvas, .hero-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-frame canvas { z-index: 1; }
.hero-frame video { z-index: 0; }
.hero-frame.has-3d video { opacity: 0; pointer-events: none; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, #07080bcc);
}
.eyebrow { font: 10px ui-monospace, monospace; letter-spacing: 2px; color: #a0adc1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -2.6px; font-weight: 400; margin: 14px 0; }
h2 { font-size: 26px; font-weight: 400; letter-spacing: -.5px; margin: 8px 0 10px; }
h3 { font-size: 17px; font-weight: 550; margin: 6px 0; }
.lead { color: #a9b2c2; font-size: 16px; max-width: 480px; }
.price { font-size: 26px; letter-spacing: -.5px; margin: 18px 0 4px; }
.price span { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #d5e2f6; border-radius: 980px;
  padding: 12px 18px; background: #d5e2f6; color: #10141c; font-size: 13px; font-weight: 550;
}
.button:hover { background: #eff5ff; }
.button.ghost, .ghost { background: none; color: var(--fg); border-color: #465061; }
.button.ghost:hover { background: #1a1e26; }
#buy { background: #0071e3; border-color: #0071e3; color: #fff; }
#buy:hover { background: #147ce5; }
.mark { width: 14px; height: 14px; flex: none; }
.secondary { background: none; border: 0; padding: 10px 0; color: #c2d4ef; font-size: 13px; }
.muted { color: #8895aa; font-size: 13px; }
#checkoutMessage, #transferMessage, #successState { color: #c5d7f3; min-height: 1.3em; }
label { display: block; margin: 20px 0; color: #c8d4e8; font-size: 13px; }
input:not([type=checkbox]) {
  width: 100%; display: block; margin-top: 7px; padding: 13px;
  background: #101620; border: 1px solid #40506a; border-radius: 5px; color: #edf3fd;
  font-size: 16px;
}
.secret { position: relative; display: block; }
.secret input { padding-right: 74px; }
.reveal {
  position: absolute; right: 8px; top: 15px; border: 0; background: none;
  color: #c2d4ef; font-size: 12px; padding: 4px 8px;
}
.check { display: flex; align-items: start; gap: 10px; }
.check input { margin-top: 5px; accent-color: #c4d8f5; }
#licenseBox, #signedOut, #signedIn { max-width: 520px; }
#signedOut { display: flex; flex-direction: column; align-items: start; gap: 12px; }
.demo { margin: 8px 0 48px; }
#demo, #download, #how { scroll-margin-top: 88px; }
.stage {
  margin-top: 18px; border: 1px solid #2b313c; border-radius: 18px; overflow: hidden;
  background: #0b0d12;
}
.stage video { display: block; width: 100%; background: #000; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #101318; }
.grid p { color: var(--muted); margin: 0; }
.rise-in {
  transform: translate3d(0, 18px, 0);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.rise-in.in { transform: none; }
.grid .rise-in:nth-child(2) { transition-delay: .08s; }
.grid .rise-in:nth-child(3) { transition-delay: .16s; }
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}
.legal { max-width: 720px; padding-bottom: 24px; }
.legal p, .legal li { color: #a9b2c2; }
.legal h2 { font-size: 20px; font-weight: 500; letter-spacing: -.3px; margin: 32px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 550; margin: 20px 0 8px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: #c2d4ef; text-decoration: underline; text-underline-offset: 3px; }
.updated { color: #8895aa; font-size: 13px; margin-top: 0; }
.caps { font-size: 13px; line-height: 1.6; letter-spacing: .01em; color: #dbe4f2; }
dialog[open] { display: flex; flex-direction: column; align-items: start; gap: 12px; }
dialog {
  width: min(420px, calc(100vw - 24px)); background: #141923; color: var(--fg);
  border: 1px solid #495770; border-radius: 10px; padding: 24px;
}
dialog::backdrop { background: #000a; }
dialog .button, dialog .ghost { width: 100%; }
footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; padding: 22px 5%; border-top: 1px solid var(--line);
}
footer > div { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: #b3bbc8; }
#modeLabel { font: 9px ui-monospace, monospace; color: #8390a6; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 22px; padding: 8px 0 36px; }
  .hero-copy, .lead { max-width: none; }
  .hero-frame { aspect-ratio: 16 / 9; max-height: 280px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(34px, 9vw, 52px); letter-spacing: -1.8px; }
}

@media (max-width: 720px) {
  main { width: min(100% - 28px, 1180px); padding-bottom: 56px; }
  header {
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }
  nav { gap: 12px; }
  nav a[href="#download"] { display: none; }
  .wordmark { font-size: 17px; }
  .actions { flex-direction: column; align-items: stretch; }
  .button, .ghost { min-height: 44px; width: 100%; }
  nav .nav-buy { width: auto; min-width: 68px; }
  #signedOut, dialog .button, dialog .ghost { width: 100%; }
  #signedOut { align-items: stretch; }
  .legal h1 { font-size: clamp(32px, 9vw, 44px); letter-spacing: -1.4px; }
  footer {
    padding: 20px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .nav-buy { opacity: 1; transform: none; pointer-events: auto; }
  dialog { max-height: calc(100dvh - 24px); overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .rise-in { animation: none; transform: none; transition: none; }
}
