:root {
  --bg: #0a0e14;
  --bg2: #0d1218;
  --panel: #11161d;
  --line: #232b36;
  --text: #eef1f5;
  --muted: #8b95a3;
  --red: #ff4d4d;
  --green: #35d488;
  --amber: #f4b740;
  --blue: #4fc3f7;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 45%, 100% { opacity: 1; }
  50%, 95% { opacity: 0.25; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-amber {
  background: var(--amber);
  color: #14100a;
}
.btn-amber:hover { filter: brightness(1.08); }

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--muted); }

.btn-small { padding: 8px 14px; font-size: 12.5px; }

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
}

.hero p.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.badge .sw { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Desktop mockup ---------- */
.desktop-mock {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  background: linear-gradient(160deg, #2a3550 0%, #1a2036 40%, #0d1120 100%);
  aspect-ratio: 16 / 10.2;
}

.desktop-mock .wallpaper-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu-bar {
  position: relative;
  z-index: 2;
  height: 7.4%;
  background: rgba(20, 24, 34, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  font-size: 11px;
  color: #e7ebf2;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.menu-bar .menu-left { display: flex; gap: 14px; align-items: center; font-weight: 600;}
.menu-bar .menu-right { display: flex; gap: 12px; align-items: center; opacity: 0.85; }
.menu-bar svg { height: 11px; width: auto; display: block; }

.mock-ticker-wrap {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
}

.mock-ticker-wrap.top { top: 7.4%; }
.mock-ticker-wrap.bottom { bottom: 9%; }

.mock-ticker-wrap img {
  width: 100%;
  display: block;
}

/* ---------- Live animated ticker (hero) ---------- */
.live-ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  background: #0c0f0a;
  border-top: 1px solid rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.live-ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  width: max-content;
  padding-left: 100%;
  animation: ticker-scroll 22s linear infinite;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lt-dot { opacity: 0.5; font-size: 10px; }

/* LED matrix skin (default) */
.live-ticker[data-theme="led"] {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 6px),
    #0c0f0a;
}
.live-ticker[data-theme="led"] .lt-red { color: #ff5a4d; text-shadow: 0 0 6px rgba(255,90,77,0.7); }
.live-ticker[data-theme="led"] .lt-green { color: #35d488; text-shadow: 0 0 6px rgba(53,212,136,0.7); }
.live-ticker[data-theme="led"] .lt-amber { color: #f4b740; text-shadow: 0 0 6px rgba(244,183,64,0.7); }
.live-ticker[data-theme="led"] .lt-blue { color: #4fc3f7; text-shadow: 0 0 6px rgba(79,195,247,0.7); }
.live-ticker[data-theme="led"] .lt-dot { color: #f4b740; }

/* iTunes brushed-metal LCD skin */
.live-ticker[data-theme="itunes"] {
  background: linear-gradient(180deg, #cdd6c4 0%, #a9b79c 45%, #8a9a7e 100%);
  border-top-color: rgba(255,255,255,0.5);
  border-bottom-color: rgba(0,0,0,0.25);
}
.live-ticker[data-theme="itunes"] .live-ticker-track { font-weight: 700; }
.live-ticker[data-theme="itunes"] .lt-seg { color: #2e3b24; }
.live-ticker[data-theme="itunes"] .lt-dot { color: #4a5a3c; }

/* Mac OS 9 Control Strip skin */
.live-ticker[data-theme="controlstrip"] {
  background: linear-gradient(180deg, #e9ebee 0%, #c9cdd4 100%);
  border-top-color: rgba(255,255,255,0.7);
  border-bottom-color: rgba(0,0,0,0.3);
}
.live-ticker[data-theme="controlstrip"] .live-ticker-track { gap: 0; font-weight: 600; }
.live-ticker[data-theme="controlstrip"] .lt-seg {
  color: #1d2a1d;
  padding: 6px 14px;
  border-right: 1px solid rgba(0,0,0,0.2);
  border-left: 1px solid rgba(255,255,255,0.6);
}
.live-ticker[data-theme="controlstrip"] .lt-dot { display: none; }

.mock-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ---------- Feature strip marquee ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  overflow: hidden;
  padding: 14px 0;
}

.strip-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.strip-item {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

.strip-item b { color: var(--text); }
.strip-item .sw { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; }

/* ---------- Section shell ---------- */
section { padding: 96px 0; }

.section-head {
  margin-bottom: 48px;
  max-width: 62ch;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 34px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* ---------- Program guide ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 940px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-cell {
  background: var(--panel);
  padding: 26px 24px;
}

.ch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ch-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 183, 64, 0.1);
  border: 1px solid rgba(244, 183, 64, 0.25);
}

.ch-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ch-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.guide-cell h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.guide-cell p {
  color: var(--muted);
  font-size: 13.8px;
  margin: 0;
}

/* ---------- Source listing ---------- */
.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 940px) { .source-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .source-grid { grid-template-columns: 1fr; } }

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

.src-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.src-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.source-card .num .sw { width: 7px; height: 7px; border-radius: 50%; }

.source-card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
}

.source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.8px;
}

/* ---------- Monitor wall ---------- */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 780px) { .wall-grid { grid-template-columns: 1fr; } }

.wall-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.wall-item .frame {
  background: #05070a;
}

.wall-item img {
  width: 100%;
  display: block;
}

.wall-item .cap {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.wall-item .cap .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.wall-item .cap p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.wall-item.full { grid-column: 1 / -1; }

/* ---------- Use cases ---------- */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 780px) { .uses-grid { grid-template-columns: 1fr; } }

.use-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  background: linear-gradient(180deg, var(--panel), var(--bg2));
}

.use-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.use-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Install steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
  position: relative;
}

.step .idx {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step p { color: var(--muted); font-size: 14px; margin: 0; }

.install-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Compatibility ---------- */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 780px) { .compat-grid { grid-template-columns: 1fr; } }

.compat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--panel);
  font-size: 14px;
  color: var(--muted);
}

.compat-card h4 {
  color: var(--text);
  margin: 0 0 8px;
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

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

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--amber);
  font-size: 20px;
  margin-left: 20px;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 14.5px;
  max-width: 70ch;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  background: var(--bg2);
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

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

.foot-note {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 24px;
}

/* misc */
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
