:root {
  --bg: #0b0d12;
  --bg-alt: #111520;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f3f5f9;
  --muted: #9aa4b6;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --green: #22c55e;
  --radius: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-alt: #eef2f7;
    --surface: rgba(255, 255, 255, 0.85);
    --border: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --muted: #475569;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  margin-bottom: 16px;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.subtitle { font-size: 1.08rem; color: var(--muted); margin: 0 0 26px; }
.section-lead { color: var(--muted); margin: 0 0 28px; }

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 1px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-col { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.micro-note { font-size: 0.84rem; color: var(--muted); margin-top: 12px; }

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}
.demo-badge { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.tv-frame { margin: 0 auto 16px; max-width: 340px; }
.tv-screen {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #172554, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: background 0.35s ease;
}
.tv-screen.mac-active { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.tv-stand { width: 70px; height: 8px; margin: 8px auto 0; border-radius: 99px; background: var(--border); }
.screen-state { display: flex; flex-direction: column; gap: 6px; color: #fff; }
.screen-state.hidden { display: none; }
.state-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.btn-kbd {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.88rem;
  cursor: pointer;
}
.demo-hint { font-size: 0.78rem; color: var(--muted); margin: 12px 0 0; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.popover-mock {
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popover-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.popover-row small { display: block; color: var(--muted); font-size: 0.8rem; }
.dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.dot.online { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.6); }
.dot.offline { background: var(--muted); opacity: 0.5; }
.kbd-pill {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.compat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compat-item span { font-size: 0.85rem; color: var(--muted); }

.pricing-wrap { display: flex; justify-content: center; }
.pricing-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
}
.per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 10px 0 0; color: var(--muted); font-size: 0.94rem; }

.footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.86rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 820px) {
  .hero-grid, .cards-3, .compat-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
