/* IPTV Player — marketing site styles (landing + legal pages) */
:root {
  --bg: #0b1020;
  --surface: #121a2e;
  --surface-2: #1a2440;
  --border: #26314f;
  --text: #e9eef8;
  --muted: #9aa6c3;
  --primary: #7c5cff;
  --accent: #22d3ee;
  --success: #2ecc8f;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 14px;
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px -6px rgba(124, 92, 255, .6); }
.btn-primary:hover { box-shadow: 0 10px 32px -6px rgba(34, 211, 238, .55); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: #3a4770; background: var(--surface); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(38, 49, 79, .7);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; }
.nav-links { display: flex; gap: 6px; margin: 0 auto 0 16px; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .signin { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 12px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu {
    display: none; padding: 8px 20px 20px; border-top: 1px solid var(--border); background: var(--bg);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; margin: 0 0 12px; padding: 0; }
  .mobile-menu li a { display: block; padding: 12px 4px; color: var(--text); font-weight: 600; border-bottom: 1px solid rgba(38,49,79,.6); }
  .mobile-menu .btn { margin-top: 10px; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: rgba(124, 92, 255, .35); top: -160px; left: -120px; }
.hero::after { width: 460px; height: 460px; background: rgba(34, 211, 238, .22); top: 120px; right: -140px; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; margin-bottom: 20px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); flex: none; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(18, 26, 46, .7); color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.pill-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* App mockup (pure CSS, decorative) */
.mockup {
  position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(124,92,255,.08), 0 0 80px -20px rgba(124,92,255,.45);
  overflow: hidden;
}
.mock-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #0f1628; }
.mock-top .dots { display: flex; gap: 6px; }
.mock-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3556; }
.mock-top .bar { flex: 1; height: 22px; border-radius: 999px; background: var(--surface-2); margin-left: 10px; max-width: 260px; }
.mock-body { padding: 16px; }
.mock-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mock-nav .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); flex: none; }
.mock-nav .tab { height: 8px; width: 42px; border-radius: 4px; background: #33406a; }
.mock-nav .tab.on { background: var(--text); opacity: .85; }
.mock-nav .search { margin-left: auto; height: 22px; width: 90px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-feature {
  position: relative; height: 150px; border-radius: 12px; margin-bottom: 14px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 20%, rgba(34,211,238,.55), transparent 55%),
    radial-gradient(90% 120% at 20% 100%, rgba(124,92,255,.75), transparent 60%),
    linear-gradient(135deg, #1d1648, #0e2a3f);
}
.mock-feature .meta { position: absolute; left: 16px; bottom: 16px; right: 16px; }
.mock-feature .t1 { height: 14px; width: 46%; border-radius: 4px; background: rgba(255,255,255,.92); margin-bottom: 8px; }
.mock-feature .t2 { height: 8px; width: 64%; border-radius: 4px; background: rgba(255,255,255,.45); margin-bottom: 12px; }
.mock-feature .btns { display: flex; gap: 8px; }
.mock-feature .btns i { height: 22px; width: 64px; border-radius: 999px; background: #fff; }
.mock-feature .btns i + i { background: rgba(255,255,255,.18); width: 54px; }
.mock-row-label { height: 8px; width: 110px; border-radius: 4px; background: #3a4770; margin: 4px 0 10px; }
.mock-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.tile { position: relative; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; }
.tile.wide { aspect-ratio: 16 / 10; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.tile .prog { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); z-index: 1; }
.tile .prog b { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.g1 { background: linear-gradient(150deg, #7c5cff, #3b2a8f); }
.g2 { background: linear-gradient(150deg, #22d3ee, #1b5d8f); }
.g3 { background: linear-gradient(160deg, #ff8a5c, #a43f8f); }
.g4 { background: linear-gradient(150deg, #2ecc8f, #1b6a7a); }
.g5 { background: linear-gradient(150deg, #f5c84b, #c65b3a); }
.g6 { background: linear-gradient(150deg, #5b8cff, #2b2f7f); }
.g7 { background: linear-gradient(150deg, #e05cff, #5a2a9f); }
.g8 { background: linear-gradient(150deg, #44e0c4, #335acc); }
.mock-player {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border);
  background: #0f1628;
}
.mock-player .thumb { width: 44px; height: 30px; border-radius: 6px; flex: none; }
.mock-player .play { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); flex: none; position: relative; }
.mock-player .play::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.mock-player .track { flex: 1; height: 4px; border-radius: 2px; background: #2a3556; position: relative; }
.mock-player .track b { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; border-radius: 2px; background: var(--grad); }
.mock-player .track b::after { content: ""; position: absolute; right: -5px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mock-player .chip { font-size: 10px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; flex: none; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(26, 36, 64, .92); border: 1px solid var(--border); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.float-card small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.float-card .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 16px; height: 16px; }
.fc-1 { left: -28px; bottom: 74px; }
.fc-2 { right: -22px; top: 70px; }
.mockup-wrap { position: relative; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 8px 22px -8px rgba(124,92,255,.8);
}
.step h3 { font-size: 20px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, transparent, rgba(18,26,46,.6) 20%, rgba(18,26,46,.6) 80%, transparent); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #3a4770; transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(124,92,255,.45); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(34,211,238,.18)); border: 1px solid rgba(124,92,255,.35);
  color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Devices ---------- */
.device-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.device { text-align: center; padding: 26px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.device .icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); color: var(--text); }
.device .icon svg { width: 28px; height: 28px; }
.device h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.device p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.tag-ok { color: var(--success); background: rgba(46, 204, 143, .12); border: 1px solid rgba(46, 204, 143, .35); }
.tag-soon { color: #c7b9ff; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .4); }

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative; max-width: 460px; margin: 0 auto; padding: 36px; border-radius: 20px;
  background: var(--surface); border: 1px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 30px 80px -30px rgba(124,92,255,.6);
}
.pricing-card .plan { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.pricing-card .price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; line-height: 1.1; }
.pricing-card .trial { color: var(--success); font-weight: 600; margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding: 7px 0 7px 32px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(46, 204, 143, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232ecc8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.pricing-card .fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; margin-bottom: 12px; }
.faq details[open] { border-color: #3a4770; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 17px; position: relative; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center; padding: 56px 24px; border-radius: 22px;
  background: radial-gradient(80% 140% at 0% 0%, rgba(124,92,255,.45), transparent 60%), radial-gradient(80% 140% at 100% 100%, rgba(34,211,238,.32), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.cta-inner h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.cta-inner p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: #0a0e1c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.disclaimer { color: var(--muted); font-size: 14px; max-width: 520px; margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; list-style: none; margin: 6px 0 0; padding: 0; }
.footer-links a { color: var(--text); font-weight: 600; font-size: 15px; }
.copyright { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(38,49,79,.6); color: var(--muted); font-size: 13px; }

/* ---------- Legal article ---------- */
.legal { padding: 56px 0 88px; }
.article {
  max-width: 760px; margin: 0 auto; padding: 44px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
}
.article h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.article .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 21px; font-weight: 600; margin: 36px 0 12px; padding-top: 4px; }
.article h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.article p, .article li { color: #c9d2e6; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--text); }
.article .callout {
  padding: 16px 18px; border-radius: 12px; margin: 0 0 24px; font-size: 15px;
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .35); color: var(--text);
}
.article .toc { padding: 16px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 8px; }
.article .toc p { margin: 0 0 6px; font-weight: 600; color: var(--text); }
.article .toc ol { margin: 0; columns: 2; column-gap: 28px; }
.article .toc li { margin-bottom: 4px; font-size: 15px; break-inside: avoid; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: #c9d2e6; }
.article th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: 10px; border: 1px solid var(--border); }
.table-wrap table { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .device-grid { grid-template-columns: repeat(3, 1fr); }
  .fc-1 { left: -10px; }
  .fc-2 { right: -10px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .mockup-wrap { max-width: 620px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 44px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-content: flex-start; }
  .article { padding: 28px 20px; border-radius: 16px; }
  .article .toc ol { columns: 1; }
  .legal { padding: 28px 0 64px; }
  .pricing-card { padding: 28px 22px; }
  .float-card { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta .btn { width: 100%; }
  .mock-row { grid-template-columns: repeat(4, 1fr); }
  .mock-row .tile:nth-child(5) { display: none; }
  .mock-feature { height: 120px; }
  .device-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .device { padding: 20px 10px; }
  .faq summary { font-size: 16px; padding: 16px 48px 16px 18px; }
  .faq .answer { padding: 0 18px 18px; }
}
.price-alt:empty { display: none; }
