/* ============================================================
   Nebula TV - marketing site. Dark premium theme matching the app
   (bg #0a0e17, brand gradient #6c5ce7 -> #00d2ff, gold lifetime accent).
   ============================================================ */
:root {
  --bg: #0a0e17; --bg2: #121826; --bg3: #16203a; --line: #243049;
  --text: #eaf0fb; --muted: #8c9bb5; --muted2: #aab6cc;
  --brand: #6c5ce7; --brand2: #00d2ff; --gold: #f0c14b; --gold2: #c9a227;
  --ok: #41d97f; --warn: #ffcf5c; --no: #ff6b9d;
  --grad: linear-gradient(90deg, var(--brand), var(--brand2));
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
section { padding: 96px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.5px; }
.sec-head p { color: var(--muted2); font-size: 19px; margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; color: var(--brand2); }

/* glow backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 500px at 80% -5%, rgba(108,92,231,.20), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(0,210,255,.12), transparent 55%);
}

/* ---------------- nav ---------------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(10,14,23,.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
a.logo:hover { opacity: .85; }
.logo .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); box-shadow: 0 0 18px rgba(0,210,255,.5); }
.logo b { font-weight: 800; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.btn { display: inline-block; font-weight: 700; border-radius: 12px; padding: 13px 22px; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04121c; box-shadow: 0 10px 30px rgba(0,210,255,.25); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-gold { background: linear-gradient(90deg, var(--gold2), var(--gold)); color: #1a1400; }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------------- hero ---------------- */
.hero { padding: 84px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 850; letter-spacing: -1.5px; line-height: 1.04; }
.hero p.sub { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted2); max-width: 680px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-trust b { color: var(--text); }

/* ---------------- carousel ---------------- */
.carousel { margin-top: 64px; position: relative; }
.car-viewport { overflow: hidden; border-radius: 24px; }
.car-track { display: flex; transition: transform .5s cubic-bezier(.6,.05,.2,1); }
.car-slide { min-width: 100%; padding: 8px; }
.car-cap { text-align: center; margin-top: 22px; }
.car-cap h3 { font-size: 24px; font-weight: 800; }
.car-cap p { color: var(--muted2); margin-top: 6px; font-size: 16px; }
.car-arrows { position: absolute; top: 38%; width: 100%; display: flex; justify-content: space-between; pointer-events: none; }
.car-arrows button { pointer-events: auto; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(18,24,38,.85); color: var(--text); font-size: 22px; cursor: pointer; transition: background .15s; }
.car-arrows button:hover { background: var(--brand); }
.car-dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.car-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: all .2s; }
.car-dots button.on { background: var(--brand2); width: 28px; border-radius: 6px; }

/* TV frame + mock screens */
.tv { max-width: 880px; margin: 0 auto; }
.tv-bezel { background: #05070c; border: 1px solid #1c2436; border-radius: 18px; padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.03); }
.tv-screen { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg);
  position: relative; display: flex; font-size: 11px; }
/* real app screenshots fill the TV screen (1920x1080 -> 16:9, so no cropping) */
.tv-screen .shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-stand { width: 120px; height: 12px; background: #11161f; border-radius: 0 0 10px 10px; margin: 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.5); }

/* mock app chrome */
.m-side { width: 13%; background: #0b1018; border-right: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.m-side .ic { width: 60%; height: 0; padding-bottom: 28%; background: #1a2236; border-radius: 5px; }
.m-side .ic.on { background: var(--brand); }
.m-main { flex: 1; padding: 14px 16px; overflow: hidden; }
.m-h { font-size: 16px; font-weight: 800; }
.m-sub { color: var(--muted); font-size: 9px; margin-top: 2px; }
/* app header chrome (matches the real on-TV header button row) */
.m-top { display: flex; align-items: flex-start; justify-content: space-between; }
.m-topbtns { display: flex; align-items: center; gap: 6px; font-size: 7px; color: var(--muted2); }
.m-topbtns .b { background: #16203a; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; font-weight: 700; }
.m-topbtns .hint { color: var(--muted); }
.m-topbtns .clk { color: var(--text); font-weight: 800; font-size: 9px; }
.m-railtitle { font-size: 9px; color: var(--brand2); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 6px; }
.m-row { display: flex; gap: 8px; }
.m-card { flex: 0 0 16%; aspect-ratio: 16/10; border-radius: 6px; background: #131b2c; border: 1px solid #1f2a42;
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: #cfe; font-size: 13px; overflow: hidden; position: relative; }
.m-card.foc { outline: 3px solid #fff; transform: scale(1.05); z-index: 2; }
.m-card .lbl { position: absolute; bottom: 3px; left: 4px; right: 4px; font-size: 7px; font-weight: 700; color: #dbe6f7; text-align: left; }
.m-card .epgbar { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--grad); }
.m-pip { position: absolute; top: 12px; right: 12px; width: 26%; aspect-ratio: 16/9; border-radius: 8px; border: 2px solid rgba(255,255,255,.6);
  background: linear-gradient(135deg,#0b1a2e,#10243f); box-shadow: 0 12px 30px rgba(0,0,0,.6); overflow: hidden; }
.m-pip .cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 6px 4px; font-size: 7px; font-weight: 800;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.poster { background: linear-gradient(160deg,#1a2440,#0e1626); }

/* hues for mock logo tiles */
.h0{background:#2a3b6e}.h1{background:#6e2a4d}.h2{background:#2a6e57}.h3{background:#6e592a}.h4{background:#452a6e}.h5{background:#2a5d6e}

/* EPG mock */
.m-epg { flex: 1; padding: 10px 0 0 0; }
.m-epgrow { display: flex; align-items: center; gap: 4px; margin: 0 8px 4px; }
.m-epgrow .ch { flex: 0 0 22%; font-size: 8px; color: #cfe; font-weight: 700; padding-left: 4px; }
.m-prog { flex: 0 0 auto; height: 22px; border-radius: 4px; background: #14203a; border: 1px solid #20304f; font-size: 7px;
  color: #b9c6dc; padding: 3px 5px; overflow: hidden; white-space: nowrap; }
.m-prog.now { background: linear-gradient(90deg, rgba(108,92,231,.5), rgba(0,210,255,.25)); border-color: var(--brand2); color: #fff; }
.m-prog.cu { color: var(--gold); border-color: rgba(240,193,75,.4); }
.m-nowline { position: absolute; top: 40px; bottom: 8px; width: 2px; background: var(--brand2); box-shadow: 0 0 8px var(--brand2); }

/* player OSD mock */
.m-player { width: 100%; background: radial-gradient(120% 80% at 50% 40%, #0e1830, #05070c); position: relative; }
.m-osd { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px 12px; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.m-osd .ch { font-size: 17px; font-weight: 800; }
.m-osd .ch small { color: var(--brand2); font-weight: 700; }
.m-osd .meta { color: var(--muted); font-size: 9px; }
.m-osd .pbar { height: 4px; background: #243049; border-radius: 3px; margin: 8px 0; position: relative; }
.m-osd .pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 18%; background: var(--grad); border-radius: 3px; }
.m-ctrls { display: flex; gap: 6px; margin-top: 8px; }
.m-ctrls span { font-size: 8px; padding: 5px 9px; border-radius: 6px; background: #16203a; border: 1px solid var(--line); }
.m-ctrls span.on { background: #fff; color: #04121c; font-weight: 800; }

/* settings mock */
.m-set { flex: 1; padding: 14px 16px; }
.m-active { background: linear-gradient(90deg, rgba(65,217,127,.14), transparent); border: 1px solid rgba(65,217,127,.4);
  border-radius: 8px; padding: 8px 12px; font-size: 11px; }
.m-active b { color: var(--ok); }
.m-cols { display: flex; gap: 12px; margin-top: 12px; }
.m-col { flex: 1; }
.m-srow { background: #121a2b; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 8.5px;
  display: flex; justify-content: space-between; margin-bottom: 6px; color: #cdd9ec; }
.m-srow .v { color: var(--brand2); font-weight: 700; }

/* ---------------- lifestyle (real photos) ---------------- */
.life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.life-card { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg2); box-shadow: 0 26px 70px rgba(0,0,0,.5); transition: transform .25s ease; }
.life-card:hover { transform: translateY(-4px); }
.life-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.life-card figcaption { padding: 16px 22px 18px; color: var(--muted2); font-size: 15.5px; }
.life-card figcaption b { color: var(--text); }
@media (max-width: 760px) { .life-grid { grid-template-columns: 1fr; } }

/* ---------------- stats ---------------- */
.stats { background: linear-gradient(180deg, transparent, rgba(108,92,231,.06), transparent); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px; text-align: center; }
.stat .num { font-size: clamp(34px, 4vw, 48px); font-weight: 850; line-height: 1; }
.stat .lbl { color: var(--muted2); margin-top: 10px; font-size: 15px; }
.stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* ---------------- features ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--brand); transform: translateY(-3px); }
.feat .fi { width: 46px; height: 46px; border-radius: 12px; background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px; }
.feat h3 { font-size: 19px; font-weight: 800; }
.feat p { color: var(--muted2); font-size: 15px; margin-top: 8px; }

/* ---------------- comparison ---------------- */
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th { font-size: 14px; color: var(--muted2); font-weight: 700; }
.cmp td:first-child, .cmp th:first-child { text-align: left; font-weight: 600; color: var(--text); }
.cmp .us { background: linear-gradient(180deg, rgba(108,92,231,.14), rgba(0,210,255,.06)); }
.cmp thead .us { border-top-left-radius: 14px; border-top-right-radius: 14px; }
.cmp .us .brand { font-weight: 850; font-size: 17px; }
.cmp .yes { color: var(--ok); font-weight: 800; }
.cmp .no { color: var(--no); }
.cmp .mid { color: var(--warn); }
.cmp small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

/* ---------------- pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; }
.price.feat-plan { border-color: var(--gold2); box-shadow: 0 0 0 1px var(--gold2), 0 20px 50px rgba(201,162,39,.15); position: relative; }
.price .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,var(--gold2),var(--gold));
  color: #1a1400; font-weight: 800; font-size: 12px; padding: 5px 14px; border-radius: 20px; }
.price h3 { font-size: 20px; font-weight: 800; }
.price .amt { font-size: 52px; font-weight: 850; margin: 12px 0 2px; }
.price .amt span { font-size: 18px; color: var(--muted); font-weight: 600; }
.price .note { color: var(--muted); font-size: 14px; min-height: 20px; }
.price ul { list-style: none; margin: 20px 0; flex: 1; }
.price li { padding: 7px 0 7px 26px; position: relative; color: var(--muted2); font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--brand2); font-weight: 800; }
.price .btn { width: 100%; text-align: center; }
.disclaimer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------------- faq ---------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; max-width: 980px; margin: 0 auto; }
.faq h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.faq p { color: var(--muted2); font-size: 15px; }

/* ---------------- cta band + footer ---------------- */
.cta-band { text-align: center; background: linear-gradient(90deg, rgba(108,92,231,.16), rgba(0,210,255,.1));
  border: 1px solid var(--line); border-radius: 26px; padding: 56px 24px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 850; }
.cta-band p { color: var(--muted2); margin: 12px 0 26px; font-size: 18px; }
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted2); margin-left: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .tv-screen { font-size: 9px; }
  .car-arrows { display: none; }
}
