/* =========================================================
   Asthoria Verse — site stylesheet
   ========================================================= */
@property --n1 { syntax: '<color>'; inherits: true; initial-value: #3b1d8f; }
@property --n2 { syntax: '<color>'; inherits: true; initial-value: #0e5d7a; }

:root {
  --space: #05041a;
  --space-2: #0b0930;
  --ink: #eeecff;
  --mute: #a3a0cc;
  --dim: #6f6c9a;
  --violet: #8b5cf6;
  --magenta: #e23cf5;
  --cyan: #2bd9f0;
  --line: rgba(190, 180, 255, .14);
  --glass: rgba(20, 16, 58, .55);
  --grad: linear-gradient(100deg, #7c3aed 0%, #b43cf2 45%, #e23cf5 100%);
  --grad-cool: linear-gradient(100deg, #7c3aed 0%, #3aa0f5 60%, #2bd9f0 100%);
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --phone-ratio: 0.486;
  --n1: #3b1d8f;
  --n2: #0e5d7a;
  transition: --n1 1.4s ease, --n2 1.4s ease;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--space);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100svh;
}
img { max-width: 100%; display: block; }
main { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; }
::selection { background: rgba(226, 60, 245, .35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Cosmos background ---------- */
#cosmos { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.nebula {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 22%, color-mix(in srgb, var(--n1) 55%, transparent), transparent 70%),
    radial-gradient(38% 40% at 85% 70%, color-mix(in srgb, var(--n2) 45%, transparent), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(40, 20, 110, .35), transparent 70%),
    var(--space);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.open {
  background: rgba(8, 6, 32, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; height: 72px;
  padding: 0 var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .logo-img { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 14px rgba(255, 45, 140, .35)); }
.brand span { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--mute); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 15px; text-decoration: none;
  border: 0; cursor: pointer; color: #fff; white-space: nowrap;
}
.btn-glow { background: var(--grad); box-shadow: 0 8px 28px -8px rgba(226, 60, 245, .7), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, box-shadow .2s; }
.btn-glow:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(226, 60, 245, .85), inset 0 1px 0 rgba(255,255,255,.25); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink); cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: transform .25s, opacity .25s; }
.site-header.open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { gap: 12px; }
  .nav .btn-glow { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 20px;
    background: rgba(8, 6, 32, .94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - 72px - env(safe-area-inset-top, 0px)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-header.open .nav-links { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .mobile-cta { display: flex; margin-top: 14px; border: 0; color: #fff; justify-content: center; }
}
@media (min-width: 901px) { .nav-links .mobile-cta { display: none; } }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 58px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.015em; line-height: 1.2; }
.lede { color: var(--mute); font-size: clamp(17px, 1.5vw, 20px); max-width: 38em; margin: 22px 0 0; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, transform .2s;
}
.store:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; color: var(--mute); line-height: 1.2; font-weight: 600; }
.store b { display: block; font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Phone mockup ---------- */
.phone { position: relative; width: var(--pw, 300px); aspect-ratio: 640 / 1316; }
.phone img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(139, 92, 246, .22)); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(96px + env(safe-area-inset-top, 0px)) 0 60px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px); width: 100%; }
.hero h1 { font-size: clamp(36px, 5vw, 66px); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .line { display: block; }
.hero .lede { max-width: 32em; }
.hero-note { margin-top: 26px; color: var(--dim); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hero-note .pulse { width: 8px; height: 8px; border-radius: 50%; background: #34e39a; box-shadow: 0 0 0 0 rgba(52,227,154,.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,227,154,.55); } 70% { box-shadow: 0 0 0 10px rgba(52,227,154,0); } 100% { box-shadow: 0 0 0 0 rgba(52,227,154,0); } }

.stage { position: relative; width: 100%; aspect-ratio: 1 / 1.08; --s: min(560px, 100%); max-width: 580px; margin-inline: auto; }
.stage .planet {
  position: absolute; left: 50%; top: 54%; width: 100%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 22%),
    radial-gradient(circle at 35% 30%, #c77dff 0%, #7c3aed 28%, #3a1a9c 55%, #120a4a 78%, #05041a 100%);
  box-shadow: 0 0 80px 10px rgba(139, 92, 246, .35), inset -30px -40px 80px rgba(3, 2, 20, .8), inset 10px 10px 40px rgba(255, 180, 255, .15);
  overflow: hidden;
}
.stage .planet::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; opacity: .35; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(-18deg, rgba(255,255,255,.0) 0 14px, rgba(255,255,255,.35) 14px 18px, rgba(255,255,255,0) 18px 34px);
  animation: bands 60s linear infinite;
}
@keyframes bands { to { background-position: 0 600px; } }
.stage .ring {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1.5px solid rgba(190, 170, 255, .28);
  transform: rotateX(74deg) rotateZ(-14deg);
  pointer-events: none;
}
.stage .ring.r2 { width: 124%; border-color: rgba(43, 217, 240, .22); transform: rotateX(74deg) rotateZ(-14deg); }
.stage .phone { position: absolute; left: 50%; top: 50%; }
.stage .p-main { --pw: 46%; translate: -50% -50%; z-index: 3; }
.stage .p-left { --pw: 36%; translate: -128% -44%; rotate: -9deg; z-index: 2; opacity: .92; }
.stage .p-right { --pw: 36%; translate: 28% -40%; rotate: 9deg; z-index: 2; opacity: .92; }
.stage .p-left img, .stage .p-right img { filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)) brightness(.82); }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: rgba(14, 10, 48, .78); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  will-change: transform;
}
.chip i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; }

/* page-load orchestration */
.js .hero .h-anim { opacity: 0; transform: translateY(24px); }
.js .hero .stage { opacity: 0; transform: scale(.92); }
.loaded .hero .h-anim { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 110ms); }
.loaded .hero .stage { opacity: 1; transform: none; transition: opacity 1.4s ease .2s, transform 1.6s cubic-bezier(.2,.7,.2,1) .2s; }

.scroll-cue { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom, 0px)); translate: -50% 0; color: var(--dim); font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; letter-spacing: .04em; }
.scroll-cue::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--mute), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--line); background: rgba(8, 6, 32, .45); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: tick 48s linear infinite; }
.ticker span { font-family: var(--display); font-size: clamp(16px, 2vw, 22px); font-weight: 500; color: var(--mute); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(226,60,245,.8); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Worlds intro ---------- */
.intro { text-align: center; }
.intro h2 { max-width: 16em; margin: 0 auto; }
.intro .lede { margin-left: auto; margin-right: auto; }

/* ---------- World sections ---------- */
.world { position: relative; padding: clamp(60px, 10vw, 130px) 0; }
.world-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.world.flip .world-visual { order: 2; }
.world-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.world-visual .orb {
  position: absolute; left: 50%; top: 50%; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%;
  translate: -50% calc(-50% + var(--p, 0) * 60px);
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.45), transparent 20%),
    radial-gradient(circle at 34% 30%, var(--a) 0%, var(--b) 45%, #0a0830 80%, #05041a 100%);
  box-shadow: 0 0 90px 0 color-mix(in srgb, var(--a) 40%, transparent), inset -40px -50px 90px rgba(3, 2, 20, .85);
  opacity: .9;
}
.world-visual .orb::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--a) 45%, transparent);
  transform: rotateX(76deg) rotateZ(calc(-18deg + var(--p, 0) * 10deg));
}
.world-visual .moon {
  position: absolute; width: 38px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--a) 40%, #120a4a 100%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--a) 60%, transparent);
  left: calc(50% + 190px); top: calc(24% - var(--p, 0) * 70px);
}
.world-visual .phone { --pw: min(300px, 62vw); translate: 0 calc(var(--p, 0) * -34px); z-index: 2; }
.world-copy h2 { font-size: clamp(30px, 4vw, 52px); }
.world-copy .kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--a); margin-bottom: 18px; }
.world-copy .kicker svg { width: 20px; height: 20px; }
.points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.points li::before { content: ''; width: 10px; height: 10px; margin: 8px 0 0 6px; border-radius: 50%; background: var(--a); box-shadow: 0 0 14px var(--a); }
.points b { display: block; font-weight: 700; font-size: 17px; }
.points span { color: var(--mute); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); color: color-mix(in srgb, var(--a) 70%, white); background: color-mix(in srgb, var(--a) 10%, transparent); }

/* Duo layout: two phones in one world */
.world-visual.duo .phone { --pw: min(250px, 44vw); }
.world-visual.duo .phone:first-of-type { translate: 18% calc(var(--p, 0) * -34px - 5%); rotate: -5deg; }
.world-visual.duo .phone:last-of-type { translate: -18% calc(var(--p, 0) * 30px + 7%); rotate: 5deg; }
.world-visual.duo { grid-template-columns: 1fr 1fr; justify-items: center; }
.world-visual.duo .orb { width: min(520px, 100%); }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.ai-orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.ai-orbit .core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3.2vw, 34px);
  background: radial-gradient(circle at 35% 30%, #ffd7ff 0%, #e23cf5 24%, #7c3aed 60%, #1a0d63 100%);
  box-shadow: 0 0 70px rgba(226, 60, 245, .55), inset -12px -16px 30px rgba(10, 4, 40, .6);
}
.ai-orbit .track { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(190, 180, 255, .22); }
.ai-orbit .track .sat {
  position: absolute; left: 50%; top: 0; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 700; background: rgba(12, 9, 44, .9); border: 1px solid var(--line);
}
.ai-orbit .track .sat i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.ai-orbit .t1 { width: 50%; animation: spin 26s linear infinite; }
.ai-orbit .t2 { width: 68%; animation: spin 38s linear infinite reverse; }
.ai-orbit .t3 { width: 84%; animation: spin 50s linear infinite; }
.ai-orbit .t4 { width: 100%; animation: spin 64s linear infinite reverse; }
.ai-orbit .t1 .sat { animation: spin 26s linear infinite reverse; }
.ai-orbit .t2 .sat { animation: spin 38s linear infinite; }
.ai-orbit .t3 .sat { animation: spin 50s linear infinite reverse; }
.ai-orbit .t4 .sat { animation: spin 64s linear infinite; }
.ai-orbit .t2 { rotate: 140deg; } .ai-orbit .t3 { rotate: 250deg; } .ai-orbit .t4 { rotate: 40deg; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-list { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.ai-list div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 14px 1fr; gap: 16px; }
.ai-list div::before { content: ''; width: 12px; height: 12px; border-radius: 50%; margin-top: 7px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.ai-list b { display: block; font-size: 18px; }
.ai-list span { color: var(--mute); }

/* ---------- Everything (constellation index) ---------- */
.everything-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.everything-head .lede { margin: 0; max-width: 28em; }
.constellation { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 40px); }
.constellation li { padding: 26px 0 28px; border-top: 1px solid var(--line); position: relative; }
.constellation li svg { width: 28px; height: 28px; color: var(--c, var(--violet)); margin-bottom: 14px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c, var(--violet)) 60%, transparent)); transition: transform .3s; }
.constellation li:hover svg { transform: scale(1.15) rotate(-6deg); }
.constellation h3 { font-size: 18px; font-family: var(--body); font-weight: 800; letter-spacing: -.01em; }
.constellation p { margin: 6px 0 0; color: var(--mute); font-size: 15px; line-height: 1.55; }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--dim); font-weight: 700; font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts a { color: var(--cyan); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.mission { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.02em; margin: 26px 0 0; color: var(--ink); max-width: 20em; }

/* ---------- Final CTA with planet horizon ---------- */
.finale { position: relative; text-align: center; padding: clamp(110px, 16vw, 200px) 0 clamp(170px, 22vw, 280px); overflow: hidden; }
.finale h2 { font-size: clamp(36px, 6.4vw, 86px); letter-spacing: -.035em; }
.finale .lede { margin-left: auto; margin-right: auto; }
.finale .stores { justify-content: center; }
.horizon {
  position: absolute; left: 50%; bottom: calc(-1 * clamp(900px, 150vw, 2200px) + clamp(110px, 16vw, 210px)); translate: -50% 0;
  width: clamp(900px, 150vw, 2200px); aspect-ratio: 1; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #b86cff 0%, #6d2fe0 6%, #2a1180 16%, #0c0736 32%, #05041a 52%);
  box-shadow: 0 -20px 120px 20px rgba(139, 92, 246, .45), 0 -2px 0 0 rgba(226, 180, 255, .7);
}

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: rgba(5, 4, 22, .82); padding: 56px 0 calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 14px; color: var(--dim); margin: 0 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--mute); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { color: var(--mute); margin: 16px 0 0; max-width: 30em; }
.legal-line { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Document pages (legal / about / support) ---------- */
.doc-hero { padding: calc(140px + env(safe-area-inset-top, 0px)) 0 40px; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.03em; }
.doc-hero p { color: var(--mute); margin: 16px 0 0; }
.doc { padding-bottom: 110px; }
.doc-card {
  max-width: 820px; background: rgba(10, 8, 38, .72); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 5vw, 60px);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.prose { font-size: 16.5px; line-height: 1.75; color: #d7d4f5; overflow-wrap: break-word; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 14px; color: var(--ink); line-height: 1.2; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; font-family: var(--body); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.prose h4 { font-size: 16.5px; margin: 24px 0 8px; font-weight: 800; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--cyan); }
.prose .caps { font-size: 15px; letter-spacing: .005em; }
.prose .meta { color: var(--mute); font-weight: 600; }
.prose address { font-style: normal; }
.kv { list-style: none !important; padding: 0 !important; border-top: 1px solid var(--line); }
.kv li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; margin: 0 !important; border-bottom: 1px solid var(--line); }
.kv li b { color: var(--mute); font-weight: 700; }

/* support */
.support-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; color: var(--dim); font-size: 14px; margin-bottom: 4px; }
.contact-list a { color: var(--cyan); text-decoration: none; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 14px; color: var(--mute); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); background: rgba(139,92,246,.08); }
.form .btn { justify-self: start; min-height: 52px; padding: 0 28px; font-size: 16px; }
.form-status { min-height: 24px; color: #7ff0c0; font-weight: 700; margin: 0; }
.form-hint { color: var(--dim); font-size: 14px; margin: 0; }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad) 60px; }
.notfound h1 { font-size: clamp(64px, 14vw, 160px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .constellation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .stores, .hero-note { justify-content: center; }
  .stage { width: min(520px, 100%); margin-top: 10px; }
  .world-grid, .ai-grid, .company-grid, .support-grid { grid-template-columns: 1fr; }
  .world.flip .world-visual { order: 0; }
  .world-visual { min-height: 0; padding: 30px 0; }
  .world-copy { max-width: 620px; }
  .constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stores { flex-wrap: nowrap; }
  .store { flex: 1 1 0; justify-content: center; padding: 8px 12px; gap: 10px; min-width: 0; }
  .store b { font-size: 15px; }
  .store svg { width: 22px; height: 22px; }
  .constellation { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .kv li { grid-template-columns: 1fr; gap: 2px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .world-visual .moon { left: auto; right: 4%; }
  .world-visual.duo .phone { --pw: min(200px, 44vw); }
  .footer-grid { grid-template-columns: 1fr; }
  .chip { font-size: 12px; padding: 6px 11px 6px 8px; }
  .chip i { width: 18px; height: 18px; font-size: 10px; }
}

/* Landscape phones & short screens: keep two-column layouts and cap phone heights */
@media (orientation: landscape) and (max-height: 560px) {
  .nav { height: 60px; }
  .hero { min-height: auto; padding: calc(80px + env(safe-area-inset-top, 0px)) 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); text-align: left; }
  .hero .lede { margin-left: 0; }
  .hero .stores, .hero-note { justify-content: flex-start; }
  .hero .stores { flex-direction: row; }
  .hero h1 { font-size: clamp(28px, 4.4vw, 44px); }
  .hero .lede { font-size: 15.5px; margin-top: 14px; }
  .hero .stores { margin-top: 20px; }
  .hero-note { display: none; }
  .stage { width: auto; height: min(84svh, 440px); aspect-ratio: 1 / 1.08; margin: 0 auto; }
  .world-grid, .ai-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .world.flip .world-visual { order: 2; }
  .world-visual { min-height: 0; padding: 10px 0; }
  .world-visual .phone { --pw: calc(80svh * var(--phone-ratio)); }
  .world-visual.duo .phone { --pw: calc(70svh * var(--phone-ratio)); }
  .world-visual .orb { width: min(80svh, 92%); }
  .world-visual .moon { display: none; }
  .ai-orbit { width: min(80svh, 100%); }
  .scroll-cue { display: none; }
  .nav-links { max-height: calc(100svh - 60px); }
}

/* Large desktops: let the hero stage breathe */
@media (min-width: 1400px) { .stage { max-width: 640px; } }

@media (max-width: 350px) {
  .stores { flex-direction: column; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Download: QR code + smart link ---------- */
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.qr-card {
  display: block; flex: none; background: #fff; border-radius: 22px; padding: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 18px 50px -12px rgba(139, 92, 246, .65), 0 0 60px -10px rgba(43, 217, 240, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.qr-card:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 24px 60px -12px rgba(226, 60, 245, .75), 0 0 70px -10px rgba(43, 217, 240, .45); }
.qr-card .qr { display: block; width: 100%; height: auto; border-radius: 12px; }
.get-hint { color: var(--mute); font-size: 14px; margin: 0; }

.get { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.get .qr-card { width: 148px; }
.get-actions { display: grid; gap: 12px; justify-items: start; }
.get-actions .stores { margin-top: 4px; }

.finale-get {
  display: inline-flex; align-items: center; gap: clamp(24px, 4vw, 44px); margin-top: 44px; text-align: left;
  padding: clamp(18px, 3vw, 28px); border-radius: 32px;
  background: rgba(10, 8, 38, .6); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.finale-get .qr-card { width: clamp(180px, 20vw, 230px); }
.finale-actions { display: grid; gap: 12px; justify-items: start; max-width: 380px; }
.finale-actions .stores { margin-top: 4px; justify-content: flex-start; }
.scan-title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }

.footer-get { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.footer-get .qr-card { width: 116px; padding: 6px; border-radius: 16px; }
.footer-get .qr-card .qr { border-radius: 8px; }
.footer-get b { display: block; color: var(--ink); }
.footer-get span { color: var(--mute); font-size: 14px; }
.footer-get a { color: var(--cyan); }

/* Sticky "Get the app" bar — phones only */
.get-bar { display: none; }
@media (max-width: 900px) {
  /* A QR code can't be scanned by the phone showing it, so phones get one-tap buttons instead */
  .get .qr-card, .footer-get .qr-card, .finale-get .qr-card, .get-hint, .scan-title { display: none; }
  .get { justify-content: center; margin-top: 28px; }
  .get-actions { justify-items: stretch; width: 100%; max-width: 440px; margin: 0 auto; }
  .finale-get { display: block; background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; margin-top: 30px; }
  .finale-actions { max-width: 440px; margin: 0 auto; justify-items: stretch; }
  .finale-actions .stores { justify-content: center; }
  .get-bar {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 10px 10px 10px 14px; border-radius: 20px;
    background: rgba(14, 10, 48, .88); border: 1px solid rgba(190, 180, 255, .22);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 30px -8px rgba(139,92,246,.5);
    transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  }
  .get-bar.show { transform: none; }
  .get-bar .logo-img { width: 40px; height: 40px; flex: none; }
  .get-bar span { flex: 1; min-width: 0; line-height: 1.25; }
  .get-bar b { display: block; font-size: 15px; }
  .get-bar small { display: block; font-size: 12px; color: var(--mute); }
  .get-bar em { font-style: normal; font-weight: 800; font-size: 14px; color: #fff; padding: 11px 16px; border-radius: 14px; background: var(--grad); white-space: nowrap; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
@media (orientation: landscape) and (max-height: 560px) {
  .get { justify-content: flex-start; }
  .get-actions { justify-items: start; margin: 0; }
  .get-bar { left: auto; right: max(12px, env(safe-area-inset-right, 0px)); width: 340px; }
}
@media (min-width: 901px) {
  /* Desktop hero: QR + one button is enough; store badges live in the finale & footer */
  .hero .get-actions .stores { display: none; }
}
.finale-actions .stores { flex-wrap: nowrap; }
@media (max-width: 350px) { .finale-actions .stores { flex-wrap: wrap; } }
