*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --accent: #e50914;
  --accent-hover: #ff1a26;
  --accent-glow: rgba(229, 9, 20, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --nav-height: 72px;
  --container-padding: 48px;
  --max-width: 1080px;
  --radius: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 44px;
  width: auto;
}

.site-logo-lg {
  height: 140px;
  width: auto;
  margin: 0 auto 28px;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 72px 0;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ── Landing hero ── */
.landing-hero {
  padding: 80px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(229, 9, 20, 0.12) 0%, transparent 70%),
    var(--bg);
}

.landing-hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.landing-hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.landing-hero .intro {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Feature cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.step {
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Activate TV section ── */
.activate-section {
  padding-top: 0;
}

.activate-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.activate-box .section-title {
  margin-bottom: 28px;
}

.activate-steps {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 32px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.activate-steps li {
  margin-bottom: 10px;
}

.activate-steps strong {
  color: var(--text);
}

.activate-steps code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

.activate-steps a {
  color: var(--accent);
}

.activate-steps a:hover {
  text-decoration: underline;
}

.btn-activate {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-activate:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.activate-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.activate-note a {
  color: var(--accent);
}

.activate-note a:hover {
  text-decoration: underline;
}

/* ── App screenshots ── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.screenshot-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.screenshot-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
}

.screenshot-card figcaption {
  padding: 16px 18px 18px;
}

.screenshot-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.screenshot-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.screenshot-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.screenshot-flow span {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.screenshot-flow .flow-arrow {
  color: var(--accent);
  font-weight: 700;
  border: none;
  background: none;
  padding: 0;
}

.app-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.app-features-list li {
  list-style: none;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.app-features-list strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

/* ── Demo videos ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.video-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  vertical-align: top;
}

.video-card figcaption {
  padding: 16px 18px 18px;
}

.video-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.video-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.video-feature {
  max-width: 900px;
  margin: 32px auto 0;
}

.video-feature .video-card {
  border-color: rgba(229, 9, 20, 0.35);
}

.video-embed-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed-youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-external-link {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

.video-external-link a {
  color: var(--accent);
  font-weight: 600;
}

/* ── Support ── */
.support-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.support-box a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}

.support-box a:hover {
  color: var(--accent-hover);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px var(--container-padding);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand .site-logo {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── Legal pages ── */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  font-weight: 600;
  background: var(--bg-elevated);
}

.legal-table td {
  color: var(--text-muted);
}

.legal-table thead th {
  background: var(--bg-card);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .section {
    padding: 48px 0;
  }

  .landing-hero {
    padding: 56px 0 40px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
