/* GhostDeck landing page. Theme accents are CSS variables swapped by the theme switcher. */
:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --ink: #e8ecf4;
  --muted: #9aa3b8;
  --accent: #ff3cac;
  --accent-2: #62f0ff;
  --led: #ffb454;
  --metal-hi: #5a5890;
  --metal: #25234a;
  --metal-dark: #0b0a18;
  --display: #05040c;
  --glow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
  --pixel: "Press Start 2P", "Courier New", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

:root[data-theme="forest"] { --accent: #7bd98c; --accent-2: #bfe6cc; --led: #f2f6ea; --metal-hi: #3d6e4a; --metal: #17331f; --metal-dark: #08160d; --display: #030a05; --bg: #04090a; --bg-2: #08140e; }
:root[data-theme="dunes"] { --accent: #ff7a45; --accent-2: #f2dcae; --led: #ffb347; --metal-hi: #8a5a3a; --metal: #4a2c1e; --metal-dark: #1a0e08; --display: #0c0604; --bg: #0b0605; --bg-2: #180d08; }
:root[data-theme="neoncity"] { --accent: #ff2e9a; --accent-2: #62f0ff; --led: #ff3cac; --metal-hi: #4a4470; --metal: #201d33; --metal-dark: #0b0a14; --display: #07060d; --bg: #06050e; --bg-2: #0e0b1c; }
:root[data-theme="deepsea"] { --accent: #2fbfa8; --accent-2: #4fd8e8; --led: #4fd8e8; --metal-hi: #2a4a58; --metal: #101f27; --metal-dark: #050c10; --display: #020a0f; --bg: #03080c; --bg-2: #061218; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease;
  overflow-x: hidden;
}
body::before {
  /* CRT scanlines + vignette over everything, never blocking clicks */
  content: "";
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: normal;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.brand span { font-family: var(--pixel); font-size: 12px; }
nav a { margin-left: 22px; font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--ink); text-decoration: none; }
nav a.cta { color: var(--accent-2); }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--pixel); font-size: 10px; color: var(--accent); letter-spacing: .1em; text-shadow: var(--glow); }
h1 {
  font-family: var(--pixel); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; margin: 14px 0 18px;
  background: linear-gradient(180deg, #fff 0%, #dfe6ff 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent-2) 35%, transparent));
}
.lede { font-size: 19px; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.btn {
  font-family: var(--pixel); font-size: 11px; padding: 14px 18px; border-radius: 4px;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal) 55%, var(--metal-dark));
  color: var(--ink); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.45);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn.primary { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.6), var(--glow); }
.btn .dot { width: 8px; height: 8px; background: var(--led); box-shadow: 0 0 8px var(--led); border-radius: 1px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
/* Notify form: a recessed display with a chrome button, like the deck's readouts */
.notify { display: grid; grid-template-columns: minmax(200px, 320px) auto; gap: 12px; align-items: center; margin-top: 26px; position: relative; }
.notify input[type="email"] {
  font-family: var(--pixel); font-size: 11px; color: var(--accent-2); background: var(--display);
  border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 15px 14px; outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), inset 0 0 0 1px rgba(0,0,0,.6);
}
.notify input[type="email"]::placeholder { color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.notify input[type="email"]:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), var(--glow); }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.notify-msg.ok { color: var(--accent-2); }
.notify-msg.err { color: #ff7a7a; }
.notify.done input, .notify.done button { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .notify { grid-template-columns: 1fr; } }

/* Apple's badge: never restyled, only sized (min 40px tall) with clear space around it. */
.store img { height: 50px; width: auto; display: block; }
.store { display: inline-block; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.store[hidden] { display: none; }
.store:hover { filter: brightness(1.1); }

/* Bezel: looks like the DISC module */
.bezel {
  background: linear-gradient(180deg, var(--metal-hi), var(--metal) 40%, var(--metal-dark));
  padding: 6px; border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.7), 0 30px 80px rgba(0,0,0,.6), var(--glow);
  position: relative;
}
.bezel .bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; height: 22px; padding: 0 4px 4px;
}
.bezel .bar .stripes { height: 8px; background: repeating-linear-gradient(to bottom, var(--accent-2) 0 1px, transparent 1px 3px); opacity: .55; }
.bezel .bar .title { font-family: var(--pixel); font-size: 9px; color: var(--ink); }
.bezel .screen { background: var(--display); border: 1px solid rgba(0,0,0,.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.bezel .screen video, .bezel .screen img { width: 100%; height: 100%; object-fit: cover; }
.bezel .grip { position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; background: repeating-linear-gradient(135deg, var(--accent-2) 0 1px, transparent 1px 4px); opacity: .5; }

/* Sections */
section { padding: 64px 0; }
section h2 { font-family: var(--pixel); font-size: clamp(16px, 2vw, 22px); margin: 0 0 10px; color: var(--ink); }
section h2 .n { color: var(--accent); margin-right: 12px; }
.sub { color: var(--muted); max-width: 640px; margin-bottom: 30px; }

/* Theme switcher */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  font-family: var(--pixel); font-size: 10px; padding: 12px 14px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal) 55%, var(--metal-dark));
  color: var(--muted); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.6);
  display: inline-flex; align-items: center; gap: 10px;
}
.tab .dot { width: 8px; height: 8px; border-radius: 1px; background: #333; }
.tab[aria-selected="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.6), var(--glow); }
.tab[aria-selected="true"] .dot { background: var(--led); box-shadow: 0 0 8px var(--led); }
.theme-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 32px; align-items: start; }
.theme-copy h3 { font-family: var(--pixel); font-size: 13px; margin: 6px 0 12px; color: var(--accent-2); }
.theme-copy p { color: var(--muted); }
.theme-copy ul { padding-left: 18px; color: var(--muted); }
.theme-copy li { margin: 6px 0; }

/* Deck section: the docked windows at exactly half their 2x capture size, so every pixel is crisp */
.deck { display: grid; gap: 40px; }
.deck-shot { display: grid; grid-template-columns: 550px 550px; gap: 0; justify-content: center; align-items: start; filter: drop-shadow(0 24px 60px rgba(0,0,0,.6)); }
.deck-shot img { image-rendering: pixelated; width: 550px; height: auto; }
.deck-shot .col { display: grid; gap: 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.features li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.features .led { width: 22px; height: 22px; margin-top: 2px; border-radius: 3px; background: var(--display); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; }
.features .led i { width: 8px; height: 8px; background: var(--led); box-shadow: 0 0 8px var(--led); border-radius: 1px; display: block; }
.features b { color: var(--ink); display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 15px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid rgba(255,255,255,.07); border-radius: 6px; padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.card h4 { font-family: var(--pixel); font-size: 11px; color: var(--accent-2); margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
details { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid rgba(255,255,255,.08); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-family: var(--pixel); color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; border-top: 1px solid rgba(255,255,255,.06); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { margin-right: 18px; }

/* Marquee strip like the deck's title marquee */
.marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: var(--display); }
.marquee div { display: inline-block; white-space: nowrap; padding: 10px 0; font-family: var(--pixel); font-size: 10px; color: var(--accent-2); animation: scroll 28s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee div { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
  .hero, .theme-grid, .deck { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  nav a:not(.cta) { display: none; }
  .deck-shot { grid-template-columns: 1fr; }
  .deck-shot img { width: 100%; }
  .features { grid-template-columns: 1fr; }
}
