/* Orb landing — tokens mirror apps/Orb_binaural_beats_mvp/DESIGN.md */
:root {
  --bg: #04060f;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.07);
  --accent: #7fb2ff;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --sleep-top: #01030f; --sleep-bottom: #0a1fc8; --sleep-core: #e6ecff; --sleep-edge: #2f45ff; --sleep-glow: #3d5bff;
  --nap-top: #f6e7c8; --nap-bottom: #f29a3a; --nap-core: #f7a8cf; --nap-edge: #ffb21f; --nap-glow: #ffe39a;
  --drift-top: #1774d1; --drift-bottom: #5eb6f2; --drift-core: #2c8edc; --drift-edge: #ffffff; --drift-glow: #ff93da;
  --calm-top: #19bfdc; --calm-bottom: #bdf3fa; --calm-core: #e8fdff; --calm-edge: #37cfe7; --calm-glow: #ffffff;
  --focus-top: #010726; --focus-bottom: #0a2e8a; --focus-core: #0b2a8f; --focus-edge: #37d3ff; --focus-glow: #1e6bff;
  --gamma-top: #0a63ec; --gamma-bottom: #22bdf6; --gamma-core: #1c5fe6; --gamma-edge: #ffffff; --gamma-glow: #62e6ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(127, 178, 255, 0.35); color: #fff; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; padding: 18px 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* ---------- the orb (CSS twin of OrbShape) ---------- */
.orb {
  --core: var(--sleep-core); --edge: var(--sleep-edge); --glow: var(--sleep-glow);
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--core) 95%, transparent), transparent 58%),
    linear-gradient(180deg, var(--core), color-mix(in srgb, var(--core) 40%, var(--edge)) 34%, var(--edge) 70%, color-mix(in srgb, var(--edge) 55%, #000));
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, #fff 60%, var(--glow)),
    inset 0 0 28px 6px color-mix(in srgb, var(--glow) 70%, transparent),
    0 0 60px 10px color-mix(in srgb, var(--glow) 55%, transparent),
    0 0 180px 40px color-mix(in srgb, var(--glow) 30%, transparent);
}
.orb.breath { animation: breath 10s ease-in-out infinite; }
@keyframes breath { 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .orb.breath { animation: none; } }

.w-sleep { --top: var(--sleep-top); --bottom: var(--sleep-bottom); --core: var(--sleep-core); --edge: var(--sleep-edge); --glow: var(--sleep-glow); --w-ink: #fff; }
.w-nap   { --top: var(--nap-top); --bottom: var(--nap-bottom); --core: var(--nap-core); --edge: var(--nap-edge); --glow: var(--nap-glow); --w-ink: #3a1d0b; }
.w-drift { --top: var(--drift-top); --bottom: var(--drift-bottom); --core: var(--drift-core); --edge: var(--drift-edge); --glow: var(--drift-glow); --w-ink: #fff; }
.w-calm  { --top: var(--calm-top); --bottom: var(--calm-bottom); --core: var(--calm-core); --edge: var(--calm-edge); --glow: var(--calm-glow); --w-ink: #063a47; }
.w-focus { --top: var(--focus-top); --bottom: var(--focus-bottom); --core: var(--focus-core); --edge: var(--focus-edge); --glow: var(--focus-glow); --w-ink: #fff; }
.w-gamma { --top: var(--gamma-top); --bottom: var(--gamma-bottom); --core: var(--gamma-core); --edge: var(--gamma-edge); --glow: var(--gamma-glow); --w-ink: #fff; }
.w-drift .orb, .orb.w-drift { background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.35), transparent 50%), linear-gradient(180deg, #1e7fd6, #2c8edc 50%, #4ba6ea); box-shadow: inset 0 0 0 2px #fff, inset 0 -18px 40px -10px rgba(255,147,218,.8), 0 0 50px 8px rgba(255,147,218,.55), 0 30px 120px 30px rgba(255,241,184,.35); }
.w-focus .orb, .orb.w-focus { background: radial-gradient(circle at 50% 85%, rgba(55,211,255,.45), transparent 55%), linear-gradient(180deg, #020b3a, #0b2a8f 55%, #1450e0); }
.w-gamma .orb, .orb.w-gamma { background: linear-gradient(180deg, #2a73f0, #1c5fe6 55%, #1a55d8); box-shadow: inset 0 0 0 3px #fff, inset 0 0 30px 8px rgba(98,230,255,.7), 0 0 40px 12px rgba(255,255,255,.55), 0 0 160px 50px rgba(98,230,255,.45); }
.w-calm .orb, .orb.w-calm { background: radial-gradient(circle at 32% 26%, #fff, transparent 45%), linear-gradient(135deg, #e8fdff, #9deef8 55%, #37cfe7); }
.w-nap .orb, .orb.w-nap { background: linear-gradient(180deg, #f7a8cf, #fbc1a4 38%, #ffd36b 70%, #ffb21f); box-shadow: inset 0 0 0 2px #fff6d8, 0 0 60px 14px rgba(255,227,154,.7), 0 40px 140px 40px rgba(255,122,61,.35); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, var(--sleep-top) 0%, #030734 52%, #02041c 62%, var(--sleep-bottom) 130%);
  padding: 110px 0 70px;
}
.hero::before { /* glow above the horizon */
  content: ""; position: absolute; left: 50%; top: 38%; width: 900px; height: 900px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(61, 91, 255, .55), rgba(61, 91, 255, .12) 40%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 0; }
.hero .orb { width: min(360px, 72vw); }
.horizon { width: min(560px, 100vw); height: 2px; margin-top: 0;
  background: linear-gradient(90deg, transparent, var(--sleep-glow), #fff, var(--sleep-glow), transparent); filter: blur(1px); }
.reflection { width: min(360px, 72vw); aspect-ratio: 2 / 1; overflow: hidden; opacity: .5; filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.reflection .orb { width: 100%; transform: scaleY(-1); animation: none; }
h1 { font-size: clamp(44px, 8vw, 92px); line-height: .98; letter-spacing: -0.035em; font-weight: 500; margin: -40px 0 14px; text-wrap: balance; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 30ch; margin: 0 auto 30px; text-wrap: balance; }

.cta { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 20px; border-radius: 999px;
  background: #fff; color: #04060f; font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 10px 40px -10px rgba(61, 91, 255, .8); transition: transform .2s ease-out; }
.cta:hover { transform: translateY(-1px); }
.cta svg { width: 22px; height: 22px; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* ---------- six worlds ---------- */
section { position: relative; }
.worlds { padding: 110px 0 60px; background: var(--bg); }
.kicker-free-title { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; line-height: 1.02; font-weight: 500; margin: 0 0 14px; text-wrap: balance; }
.sub { color: var(--ink-2); font-size: 19px; max-width: 46ch; margin: 0 0 44px; }
.world-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.world-card {
  border-radius: 30px; aspect-ratio: 9 / 16; padding: 22px 14px 18px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, var(--top), var(--bottom)); color: var(--w-ink); overflow: hidden; position: relative;
}
.world-card .orb { width: 78%; margin-top: 18%; }
.world-card b { font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.world-card span { font-size: 14px; opacity: .8; font-variant-numeric: tabular-nums; }
.world-card .meta { text-align: center; display: grid; gap: 2px; }

/* ---------- screens ---------- */
.screens { padding: 40px 0 100px; }
.screen-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.screen-row figure { margin: 0; min-width: 0; }
.screen-row img { width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: 38px; border: 1px solid var(--line); background: #000; }
.screen-row figcaption { margin-top: 14px; color: var(--ink-2); font-size: 16px; text-align: center; }

/* ---------- glide ---------- */
.glide { padding: 100px 0; background: linear-gradient(180deg, var(--bg), #050b3a 60%, var(--bg)); }
.glide-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.glide svg { width: 100%; height: auto; overflow: visible; }
.glide .axis { stroke: var(--line); }
.glide .lbl { fill: var(--ink-3); font: 500 13px var(--font); }
.bands text { font: 600 13px var(--font); }

/* ---------- ears ---------- */
.ears { padding: 100px 0; }
.ears-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ear-pic { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 34px; border-radius: 34px; background: var(--surface); border: 1px solid var(--line); }
.ear-pic .hz { text-align: center; font-variant-numeric: tabular-nums; }
.ear-pic .hz b { display: block; font-size: 34px; font-weight: 400; }
.ear-pic .hz small { color: var(--ink-3); font-size: 14px; }
.ear-pic svg.wave { width: 100%; height: 40px; }

/* ---------- features ---------- */
.features { padding: 60px 0 110px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-list li { padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feature-list svg { width: 28px; height: 28px; color: var(--accent); }
.feature-list b { font-weight: 600; font-size: 17px; }
.feature-list span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }

/* ---------- closing ---------- */
.closing { padding: 120px 0 90px; text-align: center; background: linear-gradient(180deg, var(--bg), var(--gamma-top) 70%, var(--gamma-bottom)); overflow: hidden; }
.closing .orb { width: 200px; margin: 0 auto 36px; }
.closing .kicker-free-title { margin-inline: auto; max-width: 14ch; }
.fine { font-size: 14px; color: var(--ink-3); max-width: 60ch; margin: 30px auto 0; }
.closing .fine { color: rgba(255,255,255,.8); }

footer { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.doc { padding: 120px 0 80px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 8px; }
.doc .date { color: var(--ink-3); margin: 0 0 36px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .card { padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc-head { background: linear-gradient(180deg, var(--sleep-top), #030734); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .world-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  h1 { margin-top: -26px; }
  .world-rail { grid-template-columns: 1fr; gap: 14px; }
  .world-card { aspect-ratio: auto; flex-direction: row; padding: 16px 20px; min-height: 96px; }
  .world-card .orb { width: 62px; margin: 0; flex: none; }
  .world-card .meta { text-align: right; }
  .screen-row { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .glide-grid, .ears-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .ear-pic { padding: 22px; gap: 10px; }
}
