/* =========================================================
   Rabbit Media Player — marketing site
   Deep Velvet design system (mirrors apps/app/lib/theme.ts)
   ========================================================= */
:root {
  --void: #08111A;
  --depth: #0D1B2A;
  --surface: #112236;
  --elevated: #1A3048;
  --border: #1E3A52;
  --rabbit: #E8E0D0;
  --accent: #F0A500;
  --accent2: #E05C3A;
  --text: #E8E0D0;
  --text-2: #8FA8BF;
  --muted: #4A6B82;
  --success: #2ECC8A;

  --line-faint: rgba(255,255,255,.06);
  --line-soft: rgba(255,255,255,.10);
  --accent-line: rgba(240,165,0,.35);

  --font-display: "Playfair Display", Georgia, serif;
  --font-ui: "DM Sans", -apple-system, "Helvetica Neue", sans-serif;

  --maxw: 1160px;
  --r-card: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden): hidden on one axis promotes the other to `auto`,
     which would make <body> the scroll container and break window scroll. */
  overflow-x: clip;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); }

/* ---------- ambient atmosphere ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.aurora-a { width: 620px; height: 620px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(240,165,0,.22), transparent 70%); animation: drift 26s var(--ease) infinite alternate; }
.aurora-b { width: 540px; height: 540px; top: 240px; right: -160px;
  background: radial-gradient(circle, rgba(224,92,58,.18), transparent 70%); animation: drift 32s var(--ease) infinite alternate-reverse; }
.aurora-c { width: 700px; height: 700px; bottom: -260px; left: 30%;
  background: radial-gradient(circle, rgba(26,48,72,.7), transparent 70%); animation: drift 38s var(--ease) infinite alternate; }
@keyframes drift { to { transform: translate3d(60px, -40px, 0) scale(1.12); } }

.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  padding: 12px 24px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-primary { background: var(--accent); color: var(--void); box-shadow: 0 10px 30px -8px rgba(240,165,0,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(240,165,0,.6); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-soft); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.link-ghost { color: var(--text-2); font-weight: 500; transition: color .2s; }
.link-ghost:hover { color: var(--text); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8,17,26,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line-faint); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .2px; }
.brand-thin { font-weight: 500; color: var(--text-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 0 24px;
  max-height: 0; overflow: hidden; background: rgba(8,17,26,.96); backdrop-filter: blur(14px); transition: max-height .35s var(--ease), padding .35s; }
.nav-mobile.open { max-height: 380px; padding: 12px 24px 24px; }
.nav-mobile a { padding: 12px 0; color: var(--text-2); border-bottom: 1px solid var(--line-faint); }
.nav-mobile a.btn { color: var(--void); border: 0; margin-top: 12px; }

/* ---------- layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head h2, .compliance h2, .final h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.5px; }
.sec-sub { color: var(--text-2); margin-top: 16px; font-size: 18px; max-width: 620px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 168px 24px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -1.5px; margin: 18px 0 0; }
.hero-sub { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); margin-top: 22px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* hero device stage */
.hero-stage { position: relative; height: 420px; }
.device-tv { position: absolute; top: 10px; right: 0; width: 84%; }
.device-tv-screen { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft);
  background: var(--surface); box-shadow: 0 50px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(240,165,0,.08);
  position: relative; }
.device-tv-screen::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(240,165,0,.06); pointer-events: none; }
.device-tv-stand { width: 16%; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--elevated), var(--depth)); border-radius: 0 0 8px 8px; }
.device-phone { position: absolute; bottom: -28px; left: -6px; width: 132px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.85); animation: float 6s var(--ease) infinite alternate; }
@keyframes float { to { transform: translateY(-14px); } }

/* ---------- platform strip ---------- */
.strip { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px;
  border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); }
.strip-label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 16px 0; }
.strip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 32px; margin-left: auto; }
.strip-list li { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text-2); }
.strip-list small { color: var(--accent); font-family: var(--font-ui); font-size: 11px; letter-spacing: 1px; vertical-align: super; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cell { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface), var(--depth));
  border: 1px solid var(--line-faint); border-radius: var(--r-card); padding: 30px;
  transition: transform .3s var(--ease), border-color .3s; }
.cell:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.cell-wide { grid-column: span 2; }
.cell-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: rgba(240,165,0,.12); border: 1px solid var(--accent-line); margin-bottom: 18px; }
.cell h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.cell p { color: var(--text-2); font-size: 15.5px; }
.cell-glow { position: absolute; width: 240px; height: 240px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,.14), transparent 70%); pointer-events: none; }

/* ---------- showcase ---------- */
.show-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.show-row:last-child { margin-bottom: 0; }
.show-reverse .show-art { order: 2; }
.show-art { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft);
  box-shadow: 0 40px 80px -32px rgba(0,0,0,.8); position: relative; }
.show-art::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: inset 0 0 80px rgba(240,165,0,.05); pointer-events: none; }
.show-copy h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 6px 0 14px; line-height: 1.15; }
.show-copy p { color: var(--text-2); font-size: 18px; }
.show-copy strong { color: var(--text); }

/* ---------- pairing ---------- */
.pair-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--accent);
  background: rgba(240,165,0,.12); border: 1px solid var(--accent-line); }
.steps h4 { font-size: 19px; font-weight: 600; margin-bottom: 3px; }
.steps p { color: var(--text-2); font-size: 15.5px; }
.pair-card { background: linear-gradient(160deg, var(--surface), var(--depth)); border: 1px solid var(--accent-line);
  border-radius: var(--r-lg); padding: 32px; text-align: center; }
.pair-code { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 4px; color: var(--accent); }
.qr { width: 150px; height: 150px; margin: 20px auto 14px; border-radius: 12px; background:
    repeating-conic-gradient(var(--void) 0% 25%, var(--rabbit) 0% 50%) 0 0 / 22px 22px,
    var(--rabbit); border: 8px solid var(--rabbit); box-shadow: 0 0 0 1px var(--border); }
.pair-card p { color: var(--text-2); font-size: 14px; }

/* ---------- stats band ---------- */
.band { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line-faint); border-bottom: 1px solid var(--line-faint); text-align: center; }
.band-item strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); color: var(--accent); }
.band-item span { color: var(--text-2); font-size: 14.5px; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-faint); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line-faint); font-size: 15px; }
.compare thead th { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-2);
  background: var(--depth); vertical-align: bottom; }
.compare thead th small { display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: .5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.compare .row-head { text-align: left; color: var(--text); font-weight: 500; background: rgba(255,255,255,.015); }
.compare thead .row-head { background: var(--depth); }
.compare .col-us { background: rgba(240,165,0,.06); color: var(--text); font-weight: 600; }
.compare thead .col-us { color: var(--accent); position: relative; }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--accent); font-weight: 600; }
.no { color: var(--muted); }
.compare-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; max-width: 760px; }
.plan { position: relative; background: linear-gradient(160deg, var(--surface), var(--depth)); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 32px; transition: transform .3s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan-best { border-color: var(--accent); box-shadow: 0 30px 70px -34px rgba(240,165,0,.4); }
.best-badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: rgba(240,165,0,.12); border: 1px solid var(--accent-line); padding: 5px 11px; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.plan-line { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 18px; }
.plan-price .amt { font-family: var(--font-display); font-size: 50px; font-weight: 700; color: var(--accent); line-height: 1; }
.plan-price .per { color: var(--text-2); font-size: 15px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.plan li { color: var(--text-2); font-size: 15.5px; padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan li strong { color: var(--text); }
.plan .btn { width: 100%; }
.secure { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line-faint); }
.faq details:last-child { border-bottom: 1px solid var(--line-faint); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 600; position: relative; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); transition: transform .25s var(--ease); font-weight: 400; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq p { color: var(--text-2); font-size: 16px; padding: 0 30px 22px 0; max-width: 680px; }

/* ---------- compliance + final ---------- */
.compliance { max-width: 820px; text-align: center; }
.compliance p { color: var(--text-2); font-size: 16.5px; margin-top: 16px; }
.final { max-width: var(--maxw); margin: 0 auto 40px; padding: 80px 24px; text-align: center;
  border-top: 1px solid var(--line-faint); }
.final p { color: var(--text-2); font-size: 18px; margin: 12px 0 28px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-faint); background: rgba(8,17,26,.6); padding: 44px 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-links a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--muted); font-size: 13.5px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora span, .device-phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 40px; }
  .hero-stage { height: 360px; max-width: 520px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-wide { grid-column: span 2; }
  .show-row, .show-reverse, .pair-grid { grid-template-columns: 1fr; gap: 28px; }
  .show-reverse .show-art { order: 0; }
  .band { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 20px; }
  .hero { padding: 116px 20px 56px; }
  .strip-list { margin-left: 0; }
  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .hero-stage { height: 320px; }
  .device-phone { width: 108px; }
}
