:root {
  --bg: #050b16;
  --text: #f5f7fb;
  --muted: rgba(232, 238, 248, 0.68);
  --red: #e31d2f;
  --red-2: #ff3146;
  --line: rgba(255,255,255,.10);
  --container: 1380px;
  --shadow-lg: 0 30px 80px rgba(0,0,0,.48);
  --shadow-md: 0 18px 45px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(36,119,255,.22), transparent 30%),
    radial-gradient(circle at 8% 34%, rgba(227,29,47,.14), transparent 24%),
    linear-gradient(180deg,#040913 0%,#050b16 38%,#06101e 100%);
}
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4,10,20,.78);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.logo {
  display: inline-flex; font-size: 36px; font-weight: 900; letter-spacing: -.04em; white-space: nowrap;
}
.logo span:last-child { color: var(--red-2); }
.nav {
  display: flex; align-items: center; gap: 42px; margin-left: auto; margin-right: auto;
  color: rgba(255,255,255,.86); font-size: 17px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 0 32px; border-radius: 15px;
  font-weight: 800; font-size: 18px; border: 1px solid transparent;
  transition: .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg,var(--red),#f3263a);
  box-shadow: 0 18px 42px rgba(227,29,47,.28);
}
.btn-outline { border-color: rgba(255,255,255,.18); background: rgba(8,16,31,.58); }

.hero { padding: 74px 0 66px; min-height: calc(100vh - 92px); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(420px,.92fr) minmax(560px,1.18fr); gap: 64px; align-items: center; }
.eyebrow {
  margin-bottom: 24px; color: #ff4256; font-size: 14px; text-transform: uppercase;
  letter-spacing: .18em; font-weight: 900;
}
h1 {
  margin: 0 0 26px; font-size: clamp(48px,5vw,82px); line-height: 1.03;
  letter-spacing: -.055em; font-weight: 900;
}
.accent-dot { color: var(--red-2); }
.hero-text { max-width: 620px; margin: 0 0 40px; color: var(--muted); font-size: 21px; line-height: 1.55; }
.hero-actions, .hero-pills { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-actions { margin-bottom: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  background: rgba(10,19,35,.72); font-weight: 700;
}
.pill-icon {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
}
.hero-stage { min-height: 650px; display: flex; align-items: center; justify-content: center; }
.tv-shell {
  width: min(100%,850px); padding: 18px; border-radius: 28px;
  background: linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 45px 120px rgba(0,0,0,.56), 0 0 90px rgba(25,122,255,.18);
  transform: perspective(1400px) rotateY(-7deg) rotateX(1.2deg);
}
.tv-screen { overflow: hidden; border-radius: 20px; background: #06101e; border: 1px solid rgba(255,255,255,.10); }
.app-topbar {
  height: 74px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(2,8,18,.92);
}
.app-logo { font-size: 24px; font-weight: 900; }
.app-logo span:last-child { color: var(--red-2); }
.app-tools { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,.74); font-weight: 700; }
.app-dot {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.10); border-radius: 11px; background: rgba(255,255,255,.04);
}
.app-main { display: grid; grid-template-columns: 250px 1fr; min-height: 510px; background: linear-gradient(180deg,rgba(7,16,31,.98),rgba(4,10,20,.98)); }
.channel-panel { padding: 22px 16px 20px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(2,8,18,.72); }
.panel-title { margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.channel-list { display: grid; gap: 10px; }
.channel {
  min-height: 60px; padding: 11px 12px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px;
  border-radius: 15px; background: rgba(255,255,255,.035);
}
.channel.active { background: linear-gradient(135deg,rgba(227,29,47,.95),rgba(182,21,38,.92)); }
.channel-index {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 9px; background: rgba(255,255,255,.10); font-weight: 900; font-size: 13px;
}
.channel strong, .channel span { display: block; }
.channel strong { font-size: 14px; margin-bottom: 2px; }
.channel span { color: rgba(255,255,255,.68); font-size: 12px; }

.preview-panel { padding: 24px; }
.preview-card {
  position: relative; min-height: 294px; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(90deg,rgba(3,8,17,.86),rgba(3,8,17,.22)),
    radial-gradient(circle at 72% 35%,rgba(37,120,255,.30),transparent 34%),
    linear-gradient(135deg,#09213f,#061020 56%,#0a1830);
}
.city-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 28%,rgba(110,175,255,.26),transparent 16%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.preview-content { position: absolute; left: 26px; bottom: 24px; z-index: 2; }
.live-badge {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: 999px; background: rgba(227,29,47,.96); font-size: 13px; font-weight: 900; margin-bottom: 16px;
}
.preview-content h3 { margin: 0 0 10px; font-size: 37px; }
.preview-meta { color: rgba(255,255,255,.78); margin-bottom: 18px; }
.progress { width: 360px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress span { display: block; width: 62%; height: 100%; background: linear-gradient(90deg,var(--red),var(--red-2)); }
.watch-row { margin-top: 20px; }
.watch-label { margin-bottom: 14px; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.watch-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.watch-card { min-height: 120px; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.watch-image { height: 72px; }
.poster-1 { background: linear-gradient(135deg,#132642,#0b1527); }
.poster-2 { background: linear-gradient(135deg,#1f1739,#0b1527); }
.poster-3 { background: linear-gradient(135deg,#17323d,#0b1527); }
.watch-body { padding: 10px 12px 12px; }
.watch-body strong, .watch-body span { display: block; }
.watch-body strong { font-size: 13px; }
.watch-body span { color: rgba(255,255,255,.62); font-size: 12px; }
.watch-more { display: grid; place-items: center; text-align: center; font-weight: 800; padding: 16px; }
.tv-stand {
  width: 56%; height: 16px; margin: 18px auto 0; border-radius: 999px;
  background: linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.20),rgba(255,255,255,.04));
}

.section { padding: 92px 0; }
.benefits { padding-top: 30px; }
.section-heading { max-width: 820px; margin-bottom: 38px; }
.section-kicker {
  margin-bottom: 16px; color: #ff4256; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em;
}
.section h2 { margin: 0 0 16px; font-size: clamp(34px,4vw,56px); line-height: 1.06; }
.section-text { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.benefit-grid, .price-grid, .steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  padding: 30px; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(180deg,rgba(13,24,44,.90),rgba(8,15,28,.90));
  box-shadow: var(--shadow-md);
}
.icon-box, .step-num {
  width: 62px; height: 62px; margin-bottom: 24px; display: grid; place-items: center;
  border-radius: 20px; font-size: 28px; background: rgba(227,29,47,.12); border: 1px solid rgba(227,29,47,.22);
}
.icon-box.blue { background: rgba(39,137,255,.12); border-color: rgba(39,137,255,.24); }
.icon-box.green { background: rgba(37,199,122,.12); border-color: rgba(37,199,122,.24); }
.card h3 { margin: 0 0 14px; font-size: 25px; }
.card p, .price-card li { color: var(--muted); line-height: 1.65; }
.price-card.featured { border-color: rgba(227,29,47,.55); }
.popular {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin-bottom: 18px;
  border-radius: 999px; background: rgba(227,29,47,.16); border: 1px solid rgba(227,29,47,.35);
  color: #ff596b; font-size: 13px; font-weight: 900; text-transform: uppercase;
}
.price { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 24px; }
.price strong { font-size: 58px; }
.price span { color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.price-card li { position: relative; padding-left: 28px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #ff596b; font-weight: 900; }
.card-btn { width: 100%; }
.step-num { width: 52px; height: 52px; font-size: 20px; background: rgba(39,137,255,.12); border-color: rgba(39,137,255,.24); color: #7eb7ff; }
.devices-wrap { display: flex; flex-wrap: wrap; gap: 16px; }
.device-chip {
  min-height: 70px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(10,19,35,.82);
  color: rgba(255,255,255,.96);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  appearance: none;
  cursor: pointer;
}
.cta-banner {
  padding: 42px; border-radius: 34px; border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg,rgba(227,29,47,.18),rgba(9,18,34,.92));
  display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { margin: 0 0 12px; font-size: clamp(34px,4vw,54px); }
.cta-banner p { margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.site-footer { padding: 46px 0 54px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.72); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { max-width: 720px; line-height: 1.6; }

@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tv-shell { transform: none; }
  .benefit-grid, .price-grid, .steps-grid { grid-template-columns: 1fr; }
  .cta-banner { display: grid; }
}
@media (max-width: 860px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { position: relative; }
  .header-inner { height: auto; min-height: 90px; padding: 18px 0; display: grid; grid-template-columns: 1fr; }
  .nav { margin: 0; flex-wrap: wrap; gap: 18px 24px; }
  .hero-actions, .hero-pills { display: grid; grid-template-columns: 1fr; }
  .btn, .pill { width: 100%; }
  .app-main { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .logo { font-size: 31px; }
  h1 { font-size: 39px; }
  .hero-text { font-size: 18px; }
  .watch-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}


.wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  min-height: 64px;
  padding: 0 20px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, #19b65a 0%, #0e9f4b 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 22px 50px rgba(7, 120, 56, 0.35);
}

.wa-float:hover {
  transform: translateY(-2px);
}

.wa-float-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  font-size: 20px;
}

.footer-note strong {
  color: rgba(255,255,255,0.96);
}

@media (max-width: 560px) {
  .wa-float {
    right: 14px;
    bottom: 14px;
    min-height: 58px;
    padding: 0 16px 0 12px;
    font-size: 15px;
  }
}


.device-chip {
  appearance: none;
  cursor: pointer;
  color: inherit;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.device-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(13, 25, 46, 0.96);
  box-shadow: 0 18px 40px rgba(0,0,0,0.26);
}

.device-chip small {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.device-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(227,29,47,0.13);
  border: 1px solid rgba(227,29,47,0.24);
  color: #ff5c6f;
  font-size: 18px;
  font-weight: 900;
}

.device-chip:nth-child(2) .device-mark,
.device-chip:nth-child(3) .device-mark {
  background: rgba(39,137,255,0.13);
  border-color: rgba(39,137,255,0.24);
  color: #84bcff;
}

.device-chip:nth-child(4) .device-mark,
.device-chip:nth-child(5) .device-mark {
  background: rgba(37,199,122,0.13);
  border-color: rgba(37,199,122,0.24);
  color: #72dfad;
}

.device-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.device-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.device-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, 0.78);
  backdrop-filter: blur(14px);
}

.device-modal-card {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(86vh, 920px);
  overflow-y: auto;
  padding: 38px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 88% 10%, rgba(39,137,255,0.22), transparent 30%),
    radial-gradient(circle at 10% 100%, rgba(227,29,47,0.14), transparent 26%),
    linear-gradient(180deg, rgba(12, 24, 45, 0.98), rgba(6, 13, 26, 0.98));
  box-shadow: 0 35px 120px rgba(0,0,0,0.58);
}

.device-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.device-modal-head {
  max-width: 760px;
  padding-right: 62px;
  margin-bottom: 28px;
}

.device-modal-kicker {
  color: #ff5063;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 14px;
}

.device-modal-head h3 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.device-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.device-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.device-steps-wrap,
.device-note-card {
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(7, 15, 29, 0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.device-steps-wrap {
  padding: 26px;
}

.device-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.device-steps li {
  counter-increment: step;
  position: relative;
  min-height: 72px;
  padding: 18px 18px 18px 78px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 650;
}

.device-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(227,29,47,0.16);
  border: 1px solid rgba(227,29,47,0.28);
  color: #ff6678;
  font-size: 18px;
  font-weight: 900;
}

.device-note-card {
  padding: 24px;
}

.device-note-label {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.device-link-box {
  min-height: 72px;
  padding: 18px;
  display: flex;
  align-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  word-break: break-word;
  margin-bottom: 16px;
}

.device-note-text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.device-wa-btn {
  width: 100%;
  min-height: 58px;
  font-size: 16px;
  padding: 0 18px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .device-modal {
    padding: 16px;
  }

  .device-modal-card {
    padding: 28px 20px 22px;
    border-radius: 26px;
  }

  .device-modal-grid {
    grid-template-columns: 1fr;
  }

  .device-modal-head {
    padding-right: 54px;
  }

  .device-steps-wrap,
  .device-note-card {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .device-chip {
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
  }

  .device-chip small {
    width: 100%;
    margin-left: 52px;
  }

  .device-modal-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 27px;
  }

  .device-modal-head h3 {
    font-size: 30px;
  }

  .device-modal-head p {
    font-size: 16px;
  }

  .device-steps li {
    padding: 16px 16px 16px 66px;
    font-size: 15px;
  }

  .device-steps li::before {
    left: 14px;
    top: 15px;
    width: 38px;
    height: 38px;
  }
}


/* V4 safety fixes: device buttons + modal visibility */
.device-chip.device-open {
  color: rgba(255,255,255,.96) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.device-chip.device-open small {
  color: rgba(255,255,255,.62) !important;
}

#deviceModal.device-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  display: grid !important;
  place-items: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#deviceModal.device-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
