:root {
  --bg: #050507;
  --bg-2: #0d0d12;
  --surface: #14141b;
  --surface-2: #1b1b24;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f7;
  --muted: #a3a3b2;
  --faint: #6f6f7d;
  --amber: #f6b52e;
  --amber-2: #f0961f;
  --lime: #b9e05a;
  --slate: #8fb0c4;
  --grad: linear-gradient(135deg, #f8cc4a 0%, #f0961f 100%);
  --radius: 18px;
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent);
}
.nav.scrolled { background: rgba(5, 5, 7, 0.82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #111; box-shadow: 0 8px 30px -8px rgba(246, 181, 46, 0.55); }
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(246, 181, 46, 0.7); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.wall {
  position: absolute; inset: -20% -10%; z-index: -2;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px;
  transform: perspective(1400px) rotateX(18deg) rotateZ(-8deg) scale(1.15);
  opacity: 0.55;
}
.wall .col { display: flex; flex-direction: column; gap: 14px; animation: drift 60s linear infinite; }
.wall .col:nth-child(even) { animation-direction: reverse; margin-top: -120px; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.poster { aspect-ratio: 2 / 3; border-radius: 10px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 55%); }
.poster span { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font-weight: 800; font-size: 13px; letter-spacing: -0.01em; line-height: 1.15; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(5,5,7,0.55), rgba(5,5,7,0.92) 70%),
    linear-gradient(to bottom, rgba(5,5,7,0.65) 0%, rgba(5,5,7,0.2) 35%, rgba(5,5,7,0.85) 80%, var(--bg) 100%);
}
.hero-content { text-align: center; padding: 140px 0 100px; max-width: 920px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(246, 181, 46, 0.12); border: 1px solid rgba(246, 181, 46, 0.3); color: #ffd772;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 900; margin: 22px 0 20px; text-wrap: balance; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 21px); color: #cfcfd8; max-width: 680px; margin: 0 auto; text-wrap: pretty; }
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px;
  border-radius: 14px; background: #000; border: 1px solid rgba(255,255,255,0.28); text-decoration: none; color: #fff;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.6); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; opacity: 0.85; }
.store strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; border-color: rgba(255,255,255,0.28); }
.store .soon {
  position: absolute; top: -9px; right: -8px; padding: 3px 8px; border-radius: 999px;
  background: var(--lime); color: #111; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.kicker { color: var(--amber); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 850; margin: 12px 0 16px; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Showcase TV */
.showcase { padding-top: 40px; }
.tv { position: relative; max-width: 1080px; margin: 0 auto; }
.tv-screen {
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; position: relative;
  background: #0a0a0e; border: 10px solid #18181f;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 60px 120px -30px rgba(246, 181, 46, 0.25), 0 40px 80px rgba(0,0,0,0.6);
}
.tv::after { content: ""; display: block; width: 28%; height: 14px; margin: 0 auto; border-radius: 0 0 14px 14px; background: linear-gradient(#22222b, #121218); }
.ui { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; font-size: clamp(6px, 1.05vw, 12px); }
.ui-bar { display: flex; align-items: center; gap: 2.2em; padding: 1.6em 3em; }
.ui-bar .logo { display: flex; align-items: center; gap: 0.6em; font-weight: 800; font-size: 1.3em; }
.ui-bar .logo i { width: 1.6em; height: 1.6em; border-radius: 0.4em; background: var(--grad); }
.ui-bar a { color: var(--muted); text-decoration: none; font-weight: 600; }
.ui-bar a.on { color: #111; background: #fff; padding: 0.4em 1.1em; border-radius: 999px; }
.ui-hero {
  position: relative; flex: none; margin: 0 3em; height: 42%; border-radius: 1.2em; overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, rgba(240, 150, 31, 0.85), transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(143, 176, 196, 0.5), transparent 50%),
    linear-gradient(120deg, #101018 30%, #2a1b0c);
}
.ui-hero .copy { position: absolute; left: 2.6em; bottom: 2.2em; max-width: 46%; }
.ui-hero h4 { margin: 0 0 0.3em; font-size: 2.6em; line-height: 1; letter-spacing: -0.03em; font-weight: 900; }
.ui-hero p { margin: 0 0 1em; color: #d8d8e0; font-size: 1em; }
.ui-hero .pill { display: inline-block; background: #fff; color: #111; padding: 0.55em 1.4em; border-radius: 999px; font-weight: 700; }
.ui-rail { flex: none; padding: 1.6em 3em 0; }
.ui-rail h5 { margin: 0 0 0.8em; font-size: 1.15em; font-weight: 700; }
.ui-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1em; }
.ui-row .poster { border-radius: 0.6em; box-shadow: none; }
.ui-row .poster span { font-size: 0.95em; left: 0.7em; bottom: 0.6em; }
.ui-row .poster.focus { outline: 0.25em solid #fff; transform: scale(1.06); z-index: 1; }
.ui-wide { grid-template-columns: repeat(5, 1fr); }
.ui-wide .tile { aspect-ratio: 16 / 9; border-radius: 0.6em; position: relative; overflow: hidden; }
.ui-wide .tile b { position: absolute; left: 0.8em; bottom: 0.9em; font-size: 0.95em; }
.ui-wide .tile i { position: absolute; left: 0.8em; right: 0.8em; bottom: 0.45em; height: 0.25em; border-radius: 1em; background: rgba(255,255,255,0.25); }
.ui-wide .tile i::after { content: ""; display: block; height: 100%; width: var(--p, 40%); background: var(--amber); border-radius: inherit; }

/* Feature rows (Netflix style) */
.feature-row { border-top: 8px solid #16161d; padding: 96px 0; }
.feature-row .container { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row.flip .text { order: 2; }
.feature-row h3 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 850; margin: 10px 0 18px; }
.feature-row p { color: #c4c4ce; font-size: 19px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #dcdce4; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--lime); margin-top: 1px; }
.visual {
  position: relative; border-radius: 24px; padding: 28px; background: linear-gradient(160deg, #17171f, #0c0c11);
  border: 1px solid var(--border); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); overflow: hidden;
}
.visual::before { content: ""; position: absolute; inset: auto -30% -50% auto; width: 80%; height: 80%; background: radial-gradient(circle, rgba(246,181,46,0.18), transparent 60%); }

/* EPG mock */
.epg { position: relative; display: grid; gap: 10px; font-size: 13px; }
.epg-times { display: grid; grid-template-columns: 110px repeat(4, 1fr); color: var(--faint); font-weight: 600; font-size: 12px; }
.epg-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: stretch; }
.epg-ch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
.epg-ch i { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.epg-progs { display: flex; gap: 6px; }
.epg-progs div { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cfcfd8; }
.epg-progs .now { background: rgba(246,181,46,0.14); border-color: rgba(246,181,46,0.45); color: #fff; }
.epg-progs small { display: block; color: var(--faint); font-size: 11px; }

/* Genre chips mock */
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: #d4d4dc; }
.chip.on { background: #fff; color: #111; }
.mini-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Devices mock */
.devices { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 18px; min-height: 300px; }
.dev { border-radius: 14px; border: 6px solid #22222b; background: #0b0b10; overflow: hidden; position: relative; }
.dev .scr { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(240,150,31,0.7), transparent 50%), linear-gradient(140deg, #13131b, #2b1c0d); }
.dev .scr::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 12%; height: 18%; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 18%, transparent 18% 21%); border-radius: 4px; }
.dev.tvd { width: 62%; aspect-ratio: 16/10; }
.dev.tab { width: 26%; aspect-ratio: 3/4; border-radius: 16px; }
.dev.phone { width: 13%; aspect-ratio: 9/19; border-radius: 18px; border-width: 5px; }

/* Parental mock */
.pin { position: relative; text-align: center; padding: 18px 0 8px; }
.pin .lock { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(185,224,90,0.12); color: var(--lime); }
.pin .lock svg { width: 30px; height: 30px; }
.pin h4 { margin: 0 0 6px; font-size: 22px; }
.pin p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #3a3a46; }
.dots i.f { background: var(--amber); border-color: var(--amber); }
.keys { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; justify-content: center; }
.keys b { height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 20px; font-weight: 600; }
.keys b.f { background: #fff; color: #111; }

/* Feature grid (enterprise) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #101016);
  border: 1px solid var(--border); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: rgba(246,181,46,0.35); transform: translateY(-3px); }
.card .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(246,181,46,0.12); color: var(--amber); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(246,181,46,0.10), transparent 70%), var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.plan.best { background: linear-gradient(180deg, #1f1a10, #14120e); border: 1.5px solid rgba(246,181,46,0.6); box-shadow: 0 30px 80px -30px rgba(246,181,46,0.35); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--grad); color: #111; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 18px; color: var(--muted); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price b { font-size: 52px; font-weight: 900; letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.plan .sub { color: var(--faint); font-size: 14px; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; color: #d6d6de; font-size: 15px; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--lime); }
.plan .btn { width: 100%; }
.fine { text-align: center; color: var(--faint); font-size: 13px; max-width: 760px; margin: 28px auto 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: #1a1a22; border-radius: 6px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 28px; font-size: clamp(17px, 2vw, 22px); font-weight: 500; transition: background 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #24242e; }
.faq summary svg { width: 28px; height: 28px; flex: none; transition: transform 0.25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 28px 26px; border-top: 1px solid #000; padding-top: 22px; color: #d0d0d8; font-size: 18px; }
.faq .answer p { margin: 0 0 10px; }

/* CTA */
.cta { text-align: center; padding: 110px 0 120px; border-top: 8px solid #16161d; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 19px; margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); background: #08080b; padding: 64px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot h4 { color: var(--text); font-size: 14px; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .about p { margin: 14px 0 0; max-width: 340px; }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
.legal p { margin: 0; max-width: 720px; }

/* Doc pages */
.doc { padding: 140px 0 100px; }
.doc .container { max-width: 820px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin: 10px 0 8px; }
.doc .updated { color: var(--faint); margin: 0 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.doc p, .doc li { color: #cbcbd4; font-size: 17px; }
.doc a { color: var(--amber); }
.doc .callout { margin: 28px 0; padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--amber); }
.doc .callout p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .feature-row .container { grid-template-columns: 1fr; gap: 44px; }
  .feature-row.flip .text { order: 0; }
  .grid, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; gap: 28px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .wall { grid-template-columns: repeat(5, 1fr); }
  .wall .col:nth-child(n+6) { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 84px 0; }
  .feature-row { padding: 72px 0; }
  .nav-cta .btn { padding: 0 16px; min-height: 40px; font-size: 14px; }
  .epg-row, .epg-times { grid-template-columns: 84px 1fr; }
  .epg-times span:nth-child(n+3) { display: none; }
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-grid .poster:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall .col { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
