:root {
  --bg: #0d0d14;
  --bg-alt: #13131d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hi: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f3f8;
  --muted: #a3a3b8;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --grad: linear-gradient(135deg, var(--violet), var(--blue));
  --radius: 18px;
  --font: "Avenir Next", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #b9a4ff; }
code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover, .btn:focus-visible { background: var(--surface-hi); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--grad); box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5); }
.btn-small { padding: 7px 16px; font-size: 0.9rem; }
:focus-visible { outline: 2px solid #b9a4ff; outline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 30% 0%, rgba(139, 92, 246, 0.25), transparent 70%),
    radial-gradient(50% 45% at 75% 10%, rgba(59, 130, 246, 0.2), transparent 70%);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--muted); margin: 0 0 14px; }
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, #c9c3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta.center { margin-top: 40px; }
.pills { list-style: none; padding: 0; margin: 28px 0 56px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pills li { font-size: 0.85rem; color: var(--muted); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); }

/* TV frame */
.tv { margin: 0 auto; max-width: 980px; }
.tv-screen {
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2a2a36, #14141c);
  box-shadow: 0 40px 120px rgba(80, 60, 200, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.tv-screen img { border-radius: 12px; width: 100%; height: auto; }
.tv-stand { width: 22%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #23232e, #0d0d14); border-radius: 0 0 12px 12px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); text-align: center; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 40px; }
.left { text-align: left; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 44px; }
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); background: var(--surface-hi); border-color: rgba(139, 92, 246, 0.45); }
.feature-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 1.5rem; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
}
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Gallery */
.gallery { max-width: 960px; margin: 0 auto; }
.gallery-stage { position: relative; }
.gallery-view {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}
.gallery-view img { width: 100%; height: auto; transition: opacity 0.25s; }
.gallery-view img.fading { opacity: 0; }
.gallery-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(13, 13, 20, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: background 0.15s;
}
.gallery-arrow:hover { background: var(--violet); }
.gallery-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow.prev { left: -24px; }
.gallery-arrow.next { right: -24px; }
.gallery-caption { text-align: center; margin: 22px 0 20px; min-height: 3.2em; }
.gallery-caption strong { display: block; font-size: 1.15rem; }
.gallery-caption span { color: var(--muted); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.gallery-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 0.85; }
.gallery-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--violet); transform: translateY(-2px); }

/* Remote */
.remote-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.keys li {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.keys li.active { background: var(--surface-hi); border-color: rgba(139, 92, 246, 0.6); }
.key {
  flex: none; min-width: 92px; text-align: center;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25); color: var(--text);
}
.keys li span:last-child { color: var(--muted); }
.remote {
  justify-self: center;
  width: 220px; padding: 36px 28px 44px;
  border-radius: 110px 110px 60px 60px;
  background: linear-gradient(180deg, #24242f, #15151d);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border) inset;
}
.remote-dpad {
  position: relative; width: 164px; height: 164px; margin: 0 auto;
  border-radius: 50%; background: #2e2e3b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.d { position: absolute; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; transition: color 0.15s, background 0.15s, box-shadow 0.15s; border-radius: 50%; }
.d.up { top: 6px; left: 50%; translate: -50% 0; width: 44px; height: 44px; }
.d.down { bottom: 6px; left: 50%; translate: -50% 0; width: 44px; height: 44px; }
.d.left { left: 6px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; }
.d.right { right: 6px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; }
.d.ok { inset: 50% auto auto 50%; translate: -50% -50%; width: 68px; height: 68px; background: #3a3a4a; color: var(--text); font-weight: 700; font-size: 0.85rem; }
.d.lit { color: #fff; }
.d.ok.lit { background: var(--grad); box-shadow: 0 0 24px rgba(139, 92, 246, 0.6); }
.d.lit:not(.ok) { text-shadow: 0 0 12px #b9a4ff; color: #d8ccff; }
.remote-row { display: flex; justify-content: center; gap: 18px; margin-top: 34px; }
.remote-row span { width: 30px; height: 30px; border-radius: 50%; background: #2e2e3b; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--grad); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.steps strong { color: var(--text); }

/* Footer */
.footer { padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 24px;
  background: rgba(5, 5, 10, 0.92); cursor: zoom-out;
  animation: fade 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 12px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface-hi);
  color: var(--text); font-size: 1.1rem; cursor: pointer;
}
@keyframes fade { from { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1040px) {
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
}
@media (max-width: 820px) {
  .remote-grid { grid-template-columns: 1fr; }
  .remote { display: none; }
  .left { text-align: center; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
  .hero { padding: 56px 0 48px; }
  h1 br { display: none; }
  .section { padding: 64px 0; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-arrow { width: 38px; height: 38px; }
  .key { min-width: 76px; }
}
