:root {
  --bg-1: #16181F;
  --bg-2: #0B0C10;
  --bg-3: #050507;
  --fg: #F5F5F7;
  --muted: rgba(245, 245, 247, 0.72);
  --soft: rgba(245, 245, 247, 0.52);
  --accent: #0A84FF;
  --on-accent: #FFFFFF;
  --glow: rgba(10, 132, 255, 0.24);
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.13);
  --ok: #30D158;
  --warn: #FF9F0A;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }

body {
  color: var(--fg);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -15% -25% -15%;
  height: 45%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(50px);
  z-index: 0;
}

canvas#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 12, 16, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--fg); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 42%, transparent);
}

.menu-btn {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--soft);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }

/* Hero */
.hero {
  padding: 46px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0 0 24px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 580px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 196px;
  height: 56px;
  padding: 0 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.store:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.store.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
}

.store.primary:hover {
  box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 60%, transparent);
}

.store small { display: block; font-size: 11px; opacity: 0.85; line-height: 1.1; text-align: start; }
.store strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.15; text-align: start; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--soft);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-strip li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

/* Interactive Remote Mockup */
.phone-frame {
  max-width: 318px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 36px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.6);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.phone-tv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--fg);
}

.phone-tv i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
}

.phone-status {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}

.remote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.r-btn {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}

.r-btn:hover { background: rgba(255, 255, 255, 0.15); }
.r-btn:active, .r-btn.is-pressed { transform: scale(0.94); background: rgba(10, 132, 255, 0.35); }
.r-btn.pwr { color: #FF6961; }

.dpad {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 14px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dpad-dir {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
}

.dpad-dir:hover { background: rgba(255, 255, 255, 0.1); }
.dpad-dir:active, .dpad-dir.is-pressed { background: rgba(10, 132, 255, 0.35); }
.dpad-up { top: 6px; left: 64px; }
.dpad-down { bottom: 6px; left: 64px; }
.dpad-left { left: 6px; top: 64px; }
.dpad-right { right: 6px; top: 64px; }

.dpad-ok {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 132, 255, 0.4);
}

.dpad-ok:active, .dpad-ok.is-pressed { transform: translate(-50%, -50%) scale(0.93); }

/* Sections */
section { padding: 36px 0; }
.sec-head { margin-bottom: 22px; }
.sec-head h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }
.sec-head p { margin: 0; color: var(--muted); max-width: 680px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.55);
  background: var(--card-strong);
}

.brand-meta {
  font-size: 12px;
  color: var(--soft);
  font-weight: 600;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.pill:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.3); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

th, td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
}

tr:last-child td { border-bottom: 0; }

/* Pricing */
.price-tag {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.list-check li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

.card.featured {
  border-color: rgba(10, 132, 255, 0.55);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.14), rgba(255, 255, 255, 0.05));
}

/* Search Input */
.search-box {
  width: 100%;
  max-width: 440px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg);
  font: inherit;
  margin-bottom: 16px;
}

.search-box::placeholder { color: var(--soft); }

/* FAQ */
.faq-list { display: grid; gap: 10px; }

details.faq {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px 18px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 20px; color: var(--soft); }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* CTA Banner */
.cta-band {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(10, 132, 255, 0.45);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.18), rgba(255, 255, 255, 0.05));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 36px 0 88px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h3 { margin: 0 0 10px; font-size: 13px; color: var(--fg); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-col a { text-decoration: none; color: var(--soft); }
.footer-col a:hover { color: var(--fg); }

.lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.lang-bar a {
  text-decoration: none;
  color: var(--soft);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.lang-bar a:hover, .lang-bar a[aria-current="page"] {
  color: var(--fg);
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.14);
}

.disclaimer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.5;
}

/* Sticky Mobile Bar */
.sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 25;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(20, 22, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.sticky-bar.is-visible { display: flex; }
.sticky-bar-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sticky-bar-info img { width: 34px; height: 34px; border-radius: 8px; }
.sticky-bar-info div { min-width: 0; }
.sticky-bar-info strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar-info span { display: block; font-size: 11px; color: var(--soft); }
.sticky-bar .nav-cta { flex-shrink: 0; }

@media (min-width: 821px) {
  .sticky-bar { display: none !important; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    background: rgba(11, 12, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .store { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store, .brand-card, .r-btn { transition: none; }
}
