/* Hey Stella landing page. No external fonts or scripts.
   Yellow and blue are the two colours the token test ROM draws with. */
:root {
  --bg: #0b0b0e;
  --bg-alt: #121218;
  --surface: #18181f;
  --text: #ecebe4;
  --muted: #a3a2ac;
  --line: #2b2b36;
  --yellow: #fcfc54;
  --blue: #75b5ef;
  --red: #e0584a;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

h1, h2, h3, .wordmark, .eyebrow, .demo-title { font-family: var(--mono); }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 20px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 6px; color: var(--yellow); }
p { margin: 0 0 16px; }

/* The band across the top: the ROM's two colours. */
.stripe { height: 6px; background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue) 50% 100%); }

.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.wordmark { font-weight: 700; font-size: 18px; color: var(--yellow); text-decoration: none; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.eyebrow { color: var(--blue); font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.said { color: var(--yellow); }
.sub { font-size: 19px; color: var(--muted); max-width: 34em; }

.install { display: flex; align-items: stretch; margin: 28px 0 14px; max-width: 30em; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.install code { flex: 1; padding: 12px 14px; font-family: var(--mono); font-size: 15px; color: var(--yellow); overflow-x: auto; white-space: nowrap; }
.copy { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 14px; padding: 0 16px; cursor: pointer; }
.copy:hover { background: var(--line); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--yellow); color: #111; font-weight: 600; text-decoration: none; font-size: 15px; }
.btn:hover { background: #fff; color: #111; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.early { margin-top: 24px; padding: 12px 14px; border-left: 3px solid var(--red); background: var(--surface); color: var(--muted); font-size: 15px; max-width: 34em; }
.early strong { color: var(--text); }

/* Demo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.demo-title { margin: 0 0 16px; font-weight: 700; color: var(--blue); }
.pad { display: grid; grid-template-columns: repeat(3, 62px) 28px 76px; grid-template-rows: repeat(3, 62px); gap: 6px; justify-content: center; margin-bottom: 14px; }
.line, .hub { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: var(--bg); transition: background 60ms, color 60ms; }
.hub { grid-column: 2; grid-row: 2; background: var(--line); border-radius: 50%; }
.up { grid-column: 2; grid-row: 1; }
.left { grid-column: 1; grid-row: 2; }
.right { grid-column: 3; grid-row: 2; }
.down { grid-column: 2; grid-row: 3; }
.fire { grid-column: 5; grid-row: 2; border-radius: 50%; height: 62px; align-self: center; }
.line.on { background: var(--yellow); color: #111; border-color: var(--yellow); font-weight: 700; }
.fire.on { background: var(--red); border-color: var(--red); color: #fff; }
.readout { font-family: var(--mono); font-size: 14px; text-align: center; color: var(--text); margin-bottom: 16px; min-height: 1.6em; }
.words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.words button, .say button { font-family: var(--mono); font-size: 14px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.words button:hover, .say button:hover { border-color: var(--yellow); color: var(--yellow); }
.say label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.say-row { display: flex; gap: 8px; }
.say input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 15px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.demo-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.aside { color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

table { border-collapse: collapse; width: 100%; }
.status th, .status td, .parts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.status th { font-weight: 600; white-space: nowrap; }
.status td:nth-child(2) { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.status td:last-child { color: var(--muted); }
.yes { color: #7fd88a; }
.part { color: var(--yellow); }
.no { color: var(--red); }
.parts td:last-child { text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--yellow); }
.parts .later td { color: var(--muted); }

.code { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--text); }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; image-rendering: pixelated; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .small { font-size: 13px; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding: 48px 0; }
  .status th { white-space: normal; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .nav-links { gap: 14px; }
  .pad { grid-template-columns: repeat(3, 54px) 16px 64px; grid-template-rows: repeat(3, 54px); }
  .fire { height: 54px; }
  .status th, .status td, .parts td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line, .hub { transition: none; }
}
