:root {
  --cream: #eef6fb;
  --muted: rgba(232, 244, 250, 0.7);
  --faint: rgba(232, 244, 250, 0.5);
  --cyan: #53d5fd;
  --bg: #070b14;
  --surface: #0c1220;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --grad: linear-gradient(120deg, #53d5fd, #3db8c5 50%, #3f6ef5);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --shadow-shot: 0 4px 8px rgba(0, 0, 0, 0.25), 0 36px 90px -18px rgba(0, 0, 0, 0.65);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body:not(.snap-page) {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}

body.snap-page {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--surface);
  padding: 10px 16px;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.brand-hero {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.02em;
}

.kicker {
  font-weight: 650;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--cyan);
}

.g {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 8px 0 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 10px 0 12px;
}

.body, .lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 32ch;
}

.lede { margin: 16px 0 24px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 13px 22px 13px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), var(--highlight);
}
.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(83, 213, 253, 0.22);
}
.store svg { width: 26px; height: 26px; fill: #fff; }
.store .t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store .t small { font-size: 11px; opacity: 0.82; }
.store .t b { font-size: 18px; font-weight: 600; }
.store-sm { padding: 8px 14px 8px 12px; border-radius: var(--r-sm); box-shadow: none; }
.store-sm svg { width: 18px; height: 18px; }
.store-sm .t small { font-size: 8.5px; }
.store-sm .t b { font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pill:hover {
  transform: translateY(-2px);
  background: rgba(83, 213, 253, 0.1);
  border-color: rgba(83, 213, 253, 0.45);
}
.pill span { transition: transform 0.25s var(--ease); }
.pill:hover span { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-row.center { justify-content: center; }
.trust { margin-top: 22px; font-size: 13.5px; color: var(--faint); }

.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.aurora-hero {
  background:
    radial-gradient(46% 40% at 72% 20%, rgba(83, 213, 253, 0.2), transparent 62%),
    radial-gradient(40% 42% at 12% 70%, rgba(61, 184, 197, 0.12), transparent 60%);
  filter: blur(10px);
}
.aurora-final {
  background: radial-gradient(70% 70% at 50% 0%, rgba(26, 107, 138, 0.32), transparent 60%);
  filter: blur(12px);
}

/* Fixed nav over snap scroller */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 18px rgba(83, 213, 253, 0.3);
}

/* ========== One panel per focus ========== */
.snap-main {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.panel {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 16px) 0 48px;
  overflow: hidden;
}

.panel.is-active .from-left,
.panel.is-active .from-right,
.panel.is-active .final-inner {
  opacity: 1;
  transform: none;
}

.split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: 100%;
}

.panel.reverse .split-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}
.panel.reverse .split-copy { order: 2; }
.panel.reverse .split-shot { order: 1; }

.from-left,
.from-right,
.final-inner {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.from-left { transform: translate3d(-28px, 12px, 0); }
.from-right { transform: translate3d(28px, 12px, 0); }
.final-inner { transform: translate3d(0, 18px, 0); }
.panel.is-active .from-right { transition-delay: 0.07s; }
.panel.reverse.is-active .from-left { transition-delay: 0.07s; }
.panel.reverse.is-active .from-right { transition-delay: 0s; }

.rotate {
  display: inline-block;
  min-width: 7ch;
  color: var(--cyan);
  font-weight: 600;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.rotate.is-out { opacity: 0; transform: translateY(0.35em); }
.rotate.is-in { opacity: 1; transform: none; }

.split-shot {
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-shot);
  background: #0a0e18;
  line-height: 0;
  max-height: min(68vh, 640px);
}
.split-shot img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 640px);
  object-fit: contain;
  object-position: top center;
  border-radius: calc(var(--r-lg) - 1px);
}

.panel.aso {
  background: linear-gradient(180deg, rgba(83, 213, 253, 0.06), transparent 50%);
}
.panel.aso .split-shot {
  border-color: rgba(83, 213, 253, 0.3);
  box-shadow: var(--shadow-shot), 0 0 90px -28px rgba(83, 213, 253, 0.4);
}

.panel.final {
  text-align: center;
  justify-content: center;
}
.final-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.final h2 {
  font-size: clamp(40px, 5.5vw, 68px);
  margin: 8px 0 14px;
}
.final-lede {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Dots + hint */
.dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.dots button.on {
  background: var(--cream);
  transform: scale(1.25);
}
.dots button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 90;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  animation: hint-bob 1.8s ease-in-out infinite;
}
.hint.hide { opacity: 0; }
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 5px); }
}

.foot-snap {
  display: none;
}

@media (max-width: 940px) {
  .split-grid,
  .panel.reverse .split-grid {
    grid-template-columns: 1fr;
  }
  .panel.reverse .split-copy,
  .panel.reverse .split-shot { order: 0; }
  .split-shot { order: -1; }
  .panel.reverse .split-shot { order: -1; }
  .split-shot,
  .split-shot img {
    max-height: min(42vh, 360px);
  }
  .dots { display: none; }
  .body, .lede { max-width: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand { font-size: 24px; }
  .panel { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .snap-main { scroll-behavior: auto; }
  .from-left, .from-right, .final-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hint { animation: none; }
  .rotate { transition: none; }
}

/* ============================================================
   Legal / document pages
   ============================================================ */
.doc-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(70% 60% at 82% 0%, rgba(26, 107, 138, 0.26), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #070b14 60%);
  border-bottom: 1px solid var(--hairline);
}
.doc {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.doc .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.doc .back:hover {
  color: var(--cream);
}
.doc h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 14px;
}
.doc .updated {
  color: var(--faint);
  font-size: 14px;
}
.doc .lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 68ch;
  margin: 20px 0 8px;
}
.doc h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(21px, 2.2vw, 26px);
  margin: 48px 0 14px;
}
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 8px;
}
.doc p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 14px;
  max-width: 68ch;
}
.doc ul,
.doc ol {
  list-style: none;
  margin: 8px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 68ch;
}
.doc li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.doc ol {
  counter-reset: doc-ol;
}
.doc ol li {
  counter-increment: doc-ol;
  padding-left: 32px;
}
.doc ol li::before {
  content: counter(doc-ol);
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(83, 213, 253, 0.12);
  border: 1px solid rgba(83, 213, 253, 0.35);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(83, 213, 253, 0.35);
}
.doc strong {
  color: var(--cream);
  font-weight: 600;
}
.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1px 6px;
}
.doc .placeholder {
  color: #b8ecff;
  background: rgba(61, 184, 197, 0.14);
  border: 1px dashed rgba(61, 184, 197, 0.5);
  border-radius: 6px;
  padding: 1px 7px;
}
.doc .doc-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(83, 213, 253, 0.06);
}
.doc .doc-note p {
  margin: 0;
  font-size: 15px;
}

.doc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 10px;
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(83, 213, 253, 0.6);
  box-shadow: 0 0 0 3px rgba(83, 213, 253, 0.2);
}
.doc-form .submit {
  align-self: flex-start;
  padding: 13px 26px;
  border-radius: var(--r-md);
  border: none;
  background: var(--grad);
  color: #06111f;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.form-hint {
  font-size: 13px;
  color: var(--faint);
}
.fallback {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}
