/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0e17;
  --bg-card:     #111827;
  --bg-card-alt: #0f1629;
  --cyan:        #00e5ff;
  --cyan-dim:    #00b8d4;
  --cyan-glow:   rgba(0, 229, 255, .25);
  --purple:      #7c3aed;
  --purple-glow: rgba(124, 58, 237, .2);
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --border:      #1e293b;
  --radius:      12px;
  --max-w:       1120px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

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

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

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 23, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.25rem; font-weight: 700; color: var(--cyan);
}
.nav-logo img { height: 36px; width: 36px; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cyan); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
@media (max-width: 768px) {
  .nav-toggle { display: block; font-size: 1.5rem; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 1rem 1.5rem; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--cyan-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 10%, var(--purple-glow) 0%, transparent 60%);
}
.hero-logo { width: 320px; margin: 0 auto 1.5rem; filter: drop-shadow(0 0 30px var(--cyan-glow)); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: .75rem; }
.hero h1 .accent { color: var(--cyan); }
.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: all .25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--cyan); color: var(--bg);
}
.btn-primary:hover { background: #fff; color: var(--bg); box-shadow: 0 0 20px var(--cyan-glow); }
.btn-outline {
  background: transparent; color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline:hover { background: var(--cyan); color: var(--bg); }
.btn-disabled {
  background: var(--border); color: var(--text-muted);
  cursor: default; pointer-events: none;
}

/* ── Section ─────────────────────────────────────────── */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg-card-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: .5rem;
}
.section-header h2 .accent { color: var(--cyan); }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ── Feature Grid ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .3s, box-shadow .3s;
}
.feature-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.feature-icon {
  font-size: 2rem; margin-bottom: 1rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 229, 255, .08);
  border-radius: 12px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .92rem; }

/* ── Tech Stack ──────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.stack-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.stack-item .stack-label { font-weight: 600; font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stack-item .stack-value { font-weight: 600; color: var(--text); }

/* ── Steps (Setup) ───────────────────────────────────── */
.steps { max-width: 720px; margin: 0 auto; }
.step {
  display: flex; gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-number {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan); color: var(--bg);
  border-radius: 50%; font-weight: 700; font-size: 1rem;
}
.step-content h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step-content p { color: var(--text-muted); font-size: .92rem; }

/* ── Code Block ──────────────────────────────────────── */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--cyan);
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.8;
}
.code-block .comment { color: #546e7a; }
.code-block .cmd { color: var(--text); }

/* ── Roku Banner ─────────────────────────────────────── */
.roku-banner {
  display: flex; align-items: center; gap: 3rem;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.roku-banner img { max-width: 400px; border-radius: 8px; }
.roku-banner-text h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.roku-banner-text p { color: var(--text-muted); margin-bottom: 1rem; }
@media (max-width: 768px) {
  .roku-banner { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
  .roku-banner img { max-width: 100%; }
}

/* ── Legal Pages ─────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal .effective { color: var(--text-muted); margin-bottom: 2.5rem; font-size: .9rem; }
.legal h2 {
  font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: .75rem; font-size: .95rem; }
.legal ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .4rem; }
.legal strong { color: var(--text); }

/* ── Setup Guide Page ────────────────────────────────── */
.guide { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.guide h1 { font-size: 2rem; margin-bottom: .5rem; }
.guide .subtitle { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1rem; }
.guide h2 {
  font-size: 1.35rem; margin-top: 3rem; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.guide h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .5rem; color: var(--cyan); }
.guide p, .guide li { color: var(--text-muted); margin-bottom: .75rem; font-size: .95rem; }
.guide ul, .guide ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.guide li { margin-bottom: .4rem; }
.guide strong { color: var(--text); }
.guide table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0 1.5rem; font-size: .9rem;
}
.guide th {
  text-align: left; padding: .75rem 1rem;
  background: var(--bg-card); color: var(--cyan);
  border-bottom: 2px solid var(--border);
}
.guide td {
  padding: .6rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.guide code {
  background: #0d1117; padding: .15em .4em; border-radius: 4px;
  font-family: var(--font-mono); font-size: .85em; color: var(--cyan);
}
.callout {
  background: rgba(0, 229, 255, .06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; }
.callout-warn {
  background: rgba(251, 191, 36, .06);
  border-left-color: #fbbf24;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; }

/* ── Utilities ───────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
