/* glorbi.app — the app's own black stage, one pistachio accent. */
:root {
  --void: #08080b;
  --panel: #111116;
  --line: #23232c;
  --ink: #eeedf3;
  --muted: #9a99a8;
  --accent: #b9d99a;
  --accent-ink: #11160c;
  --display: "Fredoka", "Avenir Next Rounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
/* Renders sit on pure black; lighten blends them into any dark surface. */
.toy { mix-blend-mode: lighten; }
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.top { display: flex; gap: 20px; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 96px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); max-width: 34ch; }

/* Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: 32px 72px;
}
.hero-copy { display: grid; gap: 20px; }
.hero-art { position: relative; display: grid; gap: 10px; justify-items: center; }
.hero-art img { width: 100%; max-width: 520px; margin-inline: auto; }
/* The live toy: Codex's static player at /play/, on the same black stage. */
.stage {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 28px;
  background: #000;
  display: block;
}
.stage-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.get {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.get img { width: 112px; height: 112px; border-radius: 12px; }
.get p { color: var(--muted); font-size: 15px; max-width: 22ch; }
.get strong { color: var(--ink); display: block; font-size: 17px; }
.colors {
  padding-block: 64px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
}
.colors-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.colors-row figure { margin: 0; display: grid; gap: 8px; justify-items: center; }
.colors-row figcaption { color: var(--muted); font-size: 14px; }
.drop {
  margin-block: 0 72px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(140deg, #141633, #0b0d1e 60%, #1c1030);
  border: 1px solid #262a52;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 24px;
}
.drop .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8b3ff;
}
.drop-copy { display: grid; gap: 12px; }
.drop-copy p { color: #c3c1dc; }
.drop img { max-width: 320px; width: 100%; margin-inline: auto; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 0 72px;
}
.facts div { display: grid; gap: 6px; }
.facts p { color: var(--muted); }

/* Document pages */
.doc { max-width: 68ch; padding-block: 24px 80px; display: grid; gap: 18px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); }
.doc h2 { font-size: 24px; margin-top: 18px; }
.doc p, .doc li { color: #cfcedb; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  display: grid;
  gap: 8px;
}

footer.bottom {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
footer.bottom nav { display: flex; gap: 20px; }
footer.bottom a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 8px 48px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; }
  /* Leave room above and below so the page can still be scrolled past the toy. */
  .stage { max-width: min(100%, max(51.2vh, 320px)); }
  .colors-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drop { grid-template-columns: 1fr; padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  nav.top { gap: 14px; }
}
