/* Best IPTV Player — marketing site. App-matched dark theme, coral accent.
   Self-contained, no external fonts (system stack), 2026 mobile-app feel. */
:root {
  --bg: #0a0c10;
  --surface-1: #12151c;
  --surface-2: #1a1f29;
  --surface-3: #232a37;
  --outline: #2a3140;
  --text-1: #f4f6fb;
  --text-2: #aeb6c6;
  --text-3: #7b8598;
  --accent: #ff5a4e;
  --accent-2: #ff7d5a;
  --on-accent: #ffffff;
  --success: #3fcf8e;
  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------- ambient glow */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -10%, rgba(255, 90, 78, 0.18), transparent 60%),
    radial-gradient(50vw 50vw at 8% 10%, rgba(255, 125, 90, 0.10), transparent 60%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* -------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 12, 16, 0.7);
  border-bottom: 1px solid var(--outline);
}
.nav {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; margin-left: 24px; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text-1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2); color: var(--text-1);
  border: 1px solid var(--outline); border-radius: var(--radius-pill);
  padding: 8px 30px 8px 14px; font: inherit; font-size: 13.5px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23aeb6c6' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill); font: inherit; font-weight: 600;
  font-size: 14.5px; padding: 11px 20px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface-2); color: var(--text-1); border-color: var(--outline); }
.btn-ghost:hover { border-color: var(--text-3); }

.menu-toggle { display: none; background: none; border: 0; color: var(--text-1); cursor: pointer; padding: 6px; }

/* ---------------------------------------------------------------------- hero */
.hero { padding: clamp(56px, 9vw, 110px) 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--outline);
  color: var(--text-2); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 22px;
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--text-2); font-size: clamp(16px, 2.2vw, 19px); margin-top: 20px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { color: var(--text-3); font-size: 13px; margin-top: 16px; }

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--outline);
  border-radius: 14px; padding: 10px 18px; min-width: 190px; position: relative;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-top { font-size: 11px; color: var(--text-3); }
.store-badge .sb-main { font-size: 16px; font-weight: 700; }
.store-badge .soon {
  position: absolute; top: -9px; right: 10px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-accent);
  background: var(--accent); padding: 3px 8px; border-radius: var(--radius-pill);
}

/* ------------------------------------------------------------- phone mockup */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 19.5; position: relative;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #262c38, #0e1117);
  box-shadow: var(--shadow); border: 1px solid #2f3746;
  transform: rotateY(-14deg) rotateX(4deg); animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-11deg) rotateX(3deg) translateY(-12px); } }
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--bg); position: relative; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 20px; background: #05070a; border-radius: 12px; z-index: 3; }
.pm-status { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: 11px; color: var(--text-2); }
.pm-hero { height: 34%; margin: 4px 12px 8px; border-radius: 14px;
  background: linear-gradient(135deg, #3a2140, #7a2b3a 60%, #ff5a4e);
  position: relative; overflow: hidden; }
.pm-hero::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: rgba(255,255,255,0.85); }
.pm-row { padding: 4px 12px; }
.pm-row .pm-label { font-size: 10px; color: var(--text-3); margin-bottom: 6px; }
.pm-cards { display: flex; gap: 8px; }
.pm-card { flex: 1; aspect-ratio: 2/3; border-radius: 9px; background: var(--surface-2); position: relative; overflow: hidden; }
.pm-card::before { content:""; position:absolute; inset:0; background: linear-gradient(160deg, var(--surface-3), var(--surface-1)); }
.pm-card.a::before { background: linear-gradient(160deg, #24303f, #101722); }
.pm-card.b::before { background: linear-gradient(160deg, #3a2530, #141019); }
.pm-card.c::before { background: linear-gradient(160deg, #203a34, #0f1a17); }
.pm-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center;
  padding: 10px 8px 14px; background: var(--surface-1); border-top: 1px solid var(--outline); }
.pm-nav i { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); display: block; }
.pm-nav i.on { background: var(--accent); }

/* ------------------------------------------------------------------ section */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; margin-top: 12px; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 16.5px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface-1); border: 1px solid var(--outline);
  border-radius: var(--radius-card); padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--surface-3); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 90, 78, 0.13); color: var(--accent); margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface-1); border: 1px solid var(--outline); border-radius: var(--radius-card); padding: 28px 24px; position: relative; }
.step .num { counter-increment: step; font-size: 13px; font-weight: 800; color: var(--accent);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,90,78,0.13); margin-bottom: 16px; }
.step .num::before { content: counter(step); }
.step h3 { font-size: 17px; }
.step p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }

/* compliance banner */
.compliance {
  background: linear-gradient(120deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--outline); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px); text-align: center; max-width: 900px; margin: 0 auto;
}
.compliance .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(63,207,142,0.14); color: var(--success); margin: 0 auto 18px; }
.compliance h2 { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; }
.compliance p { color: var(--text-2); margin-top: 14px; font-size: 16px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--outline); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text-1);
  font: inherit; font-size: 17px; font-weight: 600; padding: 22px 40px 22px 0; cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--accent); transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; color: var(--text-2); }
.faq-a p { padding-bottom: 22px; font-size: 15px; }

/* cta band */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(120deg, rgba(255,90,78,0.16), rgba(255,125,90,0.08));
  border: 1px solid rgba(255,90,78,0.3); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 60px);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; }
.cta-band p { color: var(--text-2); margin-top: 12px; }

/* -------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--outline); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-3); font-size: 13.5px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text-1); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--outline);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  color: var(--text-3); font-size: 13px; }

/* ------------------------------------------------------------ cookie notice */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 520px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--outline);
  border-radius: var(--radius-card); padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center; transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: 13.5px; color: var(--text-2); }
.cookie a { color: var(--accent); }
.cookie .btn { padding: 9px 18px; }

/* ---------------------------------------------------------------- legal page */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal-wrap { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-top: 10px; }
.legal h2 { font-size: 21px; font-weight: 700; margin-top: 40px; }
.legal h3 { font-size: 17px; font-weight: 700; margin-top: 26px; }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal .lead { color: var(--text-1); font-size: 17px; }
.legal-toc { background: var(--surface-1); border: 1px solid var(--outline);
  border-radius: var(--radius-card); padding: 18px 22px; margin: 28px 0; }
.legal-toc a { display: block; color: var(--text-2); font-size: 14.5px; margin: 6px 0; }
.legal-note { background: var(--surface-1); border: 1px solid var(--outline);
  border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin-top: 20px; }
.legal-note p { color: var(--text-3); font-size: 13.5px; margin: 0; }

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

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 8px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right .btn-app-top { display: none; }
  .mobile-menu { display: none; padding: 8px 0 16px; border-top: 1px solid var(--outline); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 12px var(--gutter); color: var(--text-2); }
}
@media (max-width: 560px) {
  .features, .steps { grid-template-columns: 1fr; }
  .store-badge { flex: 1; }
}
