/* CoGS site
   Palette taken from the card render: matte near-black PCB, gold edge
   connector, warm cream silkscreen. Homage: the Apple six-color stripe.
   System-native fonts so it stays crisp and offline-safe on a Mac. */

:root {
  --bg:        #0c0b0a;
  --bg-2:      #121110;
  --surface:   #17150f;
  --surface-2: #1d1a13;
  --line:      #2a261c;
  --line-2:    #38311f;

  --cream:     #f3ecdd;
  --cream-dim: #cabfa8;
  --muted:     #8c8270;

  --gold:      #e7b850;
  --gold-2:    #f2cd6f;
  --gold-deep: #b8893a;

  /* Apple six-color */
  --c-green:  #61bb46;
  --c-yellow: #fdb827;
  --c-orange: #f5821f;
  --c-red:    #e03a3e;
  --c-purple: #963d97;
  --c-blue:   #009ddc;

  --ok:    #76c25a;
  --wait:  #e7b850;

  --maxw: 1180px;
  --r:    16px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Menlo", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(1100px 600px at 80% -5%, rgba(231,184,80,.10), transparent 60%),
    radial-gradient(900px 700px at 0% 10%, rgba(0,157,220,.05), transparent 55%),
    var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }

/* ---------- shared ---------- */
.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.eyebrow.gold { color: var(--gold-2); }

.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 auto .4rem;
  max-width: 18ch;
  font-weight: 800;
}
.lead {
  color: var(--cream-dim);
  max-width: 60ch;
  margin: 1rem auto 0;
  font-size: 1.06rem;
}

.band { padding: clamp(4rem, 9vw, 7.5rem) 0; border-top: 1px solid var(--line); }
.band-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.grad {
  background: linear-gradient(100deg, var(--gold-2), var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Apple six-color stripe */
.stripe {
  height: 5px;
  background: linear-gradient(90deg,
    var(--c-green) 0 16.6%, var(--c-yellow) 0 33.3%, var(--c-orange) 0 50%,
    var(--c-red) 0 66.6%, var(--c-purple) 0 83.3%, var(--c-blue) 0 100%);
}
.stripe-top { position: absolute; inset: 0 0 auto 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 999px;
  font-weight: 650; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #2a1d05; box-shadow: 0 10px 30px -12px rgba(231,184,80,.7);
}
.btn-ghost { border-color: var(--line-2); color: var(--cream); background: rgba(255,255,255,.015); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.ph { color: var(--muted); font-weight: 400; font-size: .82em; }
.btn-soon { cursor: default; opacity: .72; }
.btn-soon:hover { border-color: var(--line-2); color: var(--cream); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  width: min(100% - 3rem, var(--maxw)); margin-inline: auto;
  padding: .85rem 0;
}
.nav::before {
  content: ""; position: absolute; inset: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; background: rgba(12,11,10,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); z-index: -1;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-gear { width: 1.25em; height: 1.25em; color: var(--gold); }
.brand-word { color: var(--cream); }
/* gear-as-the-"o" wordmark lockup: C[gear]GS, gear sized down to read as a lowercase o */
.brand-o { display: inline-block; width: .62em; height: .62em; color: var(--gold); vertical-align: -.14em; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: .92rem; }
.nav-links a { color: var(--cream-dim); transition: color .2s; }
.nav-links a:hover { color: var(--gold-2); }
.nav-right { display: flex; align-items: center; gap: .7rem; }
.nav-cta { margin-left: .1rem; }
.nav-toggle { display: none; }

/* segmented theme/era switch */
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.ts-btn {
  font: inherit; font-size: .76rem; font-weight: 650; line-height: 1;
  color: var(--cream-dim); background: none; border: 0; cursor: pointer;
  padding: .34rem .68rem; border-radius: 999px; text-decoration: none;
  transition: color .2s, background .2s;
}
.ts-btn:hover { color: var(--gold-2); }
.ts-btn.is-active { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); color: #2a1d05; }
.ts-link::after { content: " \2197"; font-size: .85em; opacity: .7; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-inner {
  width: min(100% - 3rem, var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.8rem); line-height: .96; letter-spacing: -.035em;
  margin: .2rem 0 1.3rem; font-weight: 850;
}
.hero-sub { color: var(--cream-dim); font-size: 1.08rem; max-width: 46ch; margin: 0 0 1.1rem; }
.hero-sub em { color: var(--cream); font-style: normal; border-bottom: 1px solid var(--gold-deep); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.7rem 0 1.4rem; }
.hero-line {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; color: var(--muted);
  display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; margin: 0;
}
.hero-line span { color: var(--cream-dim); }
.hero-line i { color: var(--gold-deep); font-style: normal; }

.hero-art { position: relative; }
.hero-art img {
  position: relative; border-radius: var(--r);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(231,184,80,.08);
}
.card-glow {
  position: absolute; inset: -12% -8% -18% -8%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(231,184,80,.28), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.art-caption { font-size: .78rem; color: var(--muted); margin: 1rem .3rem 0; line-height: 1.45; }

/* ---------- missing link ---------- */
.missing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.6rem; }
.solved, .unsolved { border-radius: var(--r); padding: 1.8rem; border: 1px solid var(--line); }
.solved { background: var(--surface); }
.unsolved { background: linear-gradient(180deg, rgba(224,58,62,.06), var(--surface)); border-color: var(--line-2); }
.solved-label, .unsolved-label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 1rem;
}
.solved-label { color: var(--c-green); }
.unsolved-label { color: var(--c-red); }
.solved ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.solved li { padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--cream-dim); }
.solved li span { color: var(--cream); font-weight: 650; display: inline-block; min-width: 7.5rem; }
.solved-rule { color: var(--muted); font-size: .92rem; margin: 0; font-style: italic; }
.unsolved-big { font-size: 1.5rem; font-weight: 800; color: var(--cream); margin: 0 0 .8rem; letter-spacing: -.01em; }
.unsolved p { color: var(--cream-dim); }
.unsolved-punch { color: var(--gold-2) !important; font-weight: 750; font-size: 1.15rem; margin-top: 1.2rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
.feat {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem; transition: border-color .25s, transform .25s, background .25s;
}
.feat:hover { border-color: var(--gold-deep); transform: translateY(-3px); background: var(--surface-2); }
.feat-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(231,184,80,.18), rgba(231,184,80,.04));
  border: 1px solid var(--line-2); margin-bottom: 1rem;
}
.feat-ico svg { width: 24px; height: 24px; color: var(--gold-2); }
.feat h3 { margin: 0 0 .5rem; font-size: 1.18rem; letter-spacing: -.01em; }
.feat p { margin: 0 0 1rem; color: var(--cream-dim); font-size: .96rem; }
.feat code { background: var(--bg); padding: .1em .4em; border-radius: 6px; font-size: .82em; color: var(--gold-2); border: 1px solid var(--line); }
.tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line-2);
}
.tag-ok { color: var(--ok); border-color: rgba(118,194,90,.4); background: rgba(118,194,90,.08); }
.tag-soon { color: var(--gold); border-color: rgba(231,184,80,.4); background: rgba(231,184,80,.08); }
.tag-new { color: var(--gold); border-color: rgba(231,184,80,.4); background: rgba(231,184,80,.08); }

/* terminal tile */
.feat-term { background: #0a0907; padding: 0; overflow: hidden; color: #f3ecdd; }
.feat-term:hover { transform: none; }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.term-bar i:nth-child(1){ background:#e0564a; } .term-bar i:nth-child(2){ background:#e7b850; } .term-bar i:nth-child(3){ background:#76c25a; }
.term-bar span { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: #8c8270; }
.term pre { margin: 0; padding: 1.1rem 1.2rem; font-size: .82rem; line-height: 1.7; overflow-x: auto; }
/* fixed so they read on the always-dark terminal regardless of theme */
.c-key { color: #f2cd6f; } .c-dim { color: #8c8270; } .c-gold { color: #e7b850; } .c-ok { color: #76c25a; }

/* ---------- Apple II Forever ---------- */
.forever { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; background:
  radial-gradient(900px 500px at 50% 0%, rgba(231,184,80,.10), transparent 60%), var(--bg-2);
  border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.forever .stripe { position: absolute; inset: 0 0 auto 0; opacity: .9; }
.forever-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 850; letter-spacing: -.03em; margin: .3rem 0 .5rem; }
.forever-lead { color: var(--gold-2); font-size: 1.1rem; margin: 0 0 2.2rem; }
.forever-body { max-width: 64ch; margin-inline: auto; text-align: left; display: grid; gap: 1.1rem; }
.forever-body p { color: var(--cream-dim); font-size: 1.08rem; margin: 0; }
.forever-body strong { color: var(--cream); }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 3rem auto 0; max-width: 760px; display: grid; gap: .7rem; }
.tl {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem;
  border-left: 3px solid var(--line-2);
}
.tl.done { border-left-color: var(--ok); }
.tl.next { border-left-color: var(--gold); }
.tl.ahead { opacity: .82; }
.tl-tag { font-family: var(--mono); font-weight: 700; color: var(--gold-2); }
.tl h4 { margin: 0; font-size: 1.02rem; }
.tl p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.tl-state { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.tl-state.ok { color: var(--ok); }
.tl-state.hw { color: var(--gold-2); font-weight: 700; }
.tl-state.wait { color: var(--wait); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem; max-width: 760px; margin-inline: auto; }
.stats div { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem .6rem; }
.stats strong { display: block; font-size: 2rem; color: var(--gold-2); font-weight: 800; letter-spacing: -.02em; }
.stats span { font-size: .8rem; color: var(--muted); }

/* ---------- demos ---------- */
.demos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.8rem; }
.demo { margin: 0; }
.demo-ph {
  aspect-ratio: 16/10; border-radius: 12px; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #131109, #131109 10px, #100e08 10px, #100e08 20px);
  border: 1px dashed var(--line-2); margin-bottom: .8rem;
}
.demo-ph svg { width: 40px; height: 40px; color: var(--gold-deep); }
.demo figcaption { color: var(--cream-dim); font-size: .9rem; }

/* ---------- credits + build ---------- */
.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.8rem; }
.credit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.credit h4 { margin: 0 0 .6rem; color: var(--gold-2); font-size: 1.1rem; }
.credit p { margin: 0; color: var(--cream-dim); font-size: .95rem; }
.featlist { margin: .7rem 0; padding-left: 1.1rem; color: var(--cream-dim); font-size: .92rem; display: grid; gap: .5rem; }
.featlist li { line-height: 1.4; }
.featlist strong { color: var(--gold-2); }

/* native integration: full-width control-panel card + a paired row below */
.native-stack { display: grid; gap: 1.1rem; margin-top: 2.8rem; }
.native-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cp-wide .featlist { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .55rem 1.6rem; margin-bottom: .2rem; }

/* screenshot thumbnails: tiny squares in a grid under each card, open in a lightbox */
.shotrow { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: .45rem; margin: 1rem 0 .2rem; }
.shot { margin: 0; width: 48px; }
.shot-ph, .shot-img { aspect-ratio: 1/1; width: 100%; border-radius: 6px; display: block; }
/* the Control Panel banner row is a 4-wide grid (8 tiles -> two rows);
   the paired cards spread three each across their half-width columns */
.cp-wide .shotrow { grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.native-pair .shotrow { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cp-wide .shot, .native-pair .shot { width: 100%; }
.cp-wide .shot-ph, .cp-wide .shot-img,
.native-pair .shot-ph, .native-pair .shot-img { border-radius: 9px; }
.shot-ph {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #131109, #131109 10px, #100e08 10px, #100e08 20px);
  border: 1px dashed var(--line-2);
}
.shot-img {
  object-fit: cover; border: 1px solid var(--line); cursor: zoom-in;
  transition: border-color .15s ease, transform .15s ease;
}
.shot-img:hover { border-color: var(--gold-deep); transform: translateY(-2px); }
.slot-tag {
  font: 600 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em; text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid var(--line-2); padding: .3rem .45rem; border-radius: 6px;
  background: rgba(0,0,0,.25); text-align: center;
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vmin; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,5,4,.85); backdrop-filter: blur(3px); }
.lightbox-frame { position: relative; margin: 0; max-width: min(92vw, 720px); }
.lightbox-img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line-2); background: #000; }
.lightbox-cap { color: var(--cream-dim); font-size: .9rem; text-align: center; margin-top: .8rem; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--cream);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold-2); }

.build-cta { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.8rem; }
.build-cta h3 { margin: 0 0 .3rem; }
.build-cta > div p { color: var(--cream-dim); margin: 0 0 1.2rem; }
.codeblock { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .85rem; color: var(--cream); margin: 0 0 1.3rem; }
.codeblock .c-dim { color: var(--muted); }
.build-links { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- origin note (personal story) ---------- */
.origin { max-width: 62ch; margin: 2.4rem auto 1.6rem; padding: 1.5rem 1.7rem; border-left: 3px solid var(--gold-deep); background: var(--surface); border-radius: 0 12px 12px 0; text-align: left; }
.origin p { color: var(--cream-dim); font-size: 1.06rem; margin: 0 0 1rem; }
.origin p:last-child { margin-bottom: 0; }
.origin a { color: var(--gold-2); border-bottom: 1px solid var(--line-2); }
.origin a:hover { color: var(--gold); }
.origin-sign { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }

/* ---------- possibilities ---------- */
.ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.8rem; }
.idea { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold-deep); border-radius: var(--r); padding: 1.4rem; transition: transform .25s, background .25s; }
.idea:hover { transform: translateY(-3px); background: var(--surface-2); }
.idea h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--gold-2); letter-spacing: -.01em; padding-right: 4.5rem; }
.idea p { margin: 0; color: var(--cream-dim); font-size: .92rem; }
.idea-tag { position: absolute; top: 1.1rem; right: 1rem; font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); border: 1px solid var(--gold-deep); border-radius: 999px; padding: .18rem .5rem; }

/* "Designed for CoGS" badge concept */
.badge-wrap { text-align: center; margin-top: 2.6rem; padding: 2rem 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface); }
.badge-cogs { display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1.2rem; border-radius: 999px; border: 1px solid var(--gold-deep); background: linear-gradient(180deg, rgba(231,184,80,.16), rgba(231,184,80,.04)); color: var(--gold-2); font-weight: 750; letter-spacing: .01em; }
.badge-wrap p { color: var(--cream-dim); max-width: 56ch; margin: 1.1rem auto 0; font-size: .95rem; }

/* ---------- get one ---------- */
.getone { text-align: center; }

/* get-section action grid: two divided columns of uniform, two-line buttons */
.get-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 700px; margin: 2.4rem auto 0; }
.get-col { display: flex; flex-direction: column; gap: .7rem; padding: 0 1.8rem; }
.get-col + .get-col { border-left: 1px solid var(--line); }
.get-col-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 .15rem; }
.get-col-note { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: .45rem 0 0; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; min-height: 68px; padding: .7rem 1rem; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--cream); text-decoration: none; text-align: center; transition: transform .15s ease, border-color .2s, background .2s, box-shadow .2s; }
.action-title { font-weight: 650; font-size: 1.02rem; line-height: 1.15; }
.action-sub { font-size: .8rem; color: var(--muted); }
.action-live { border-color: var(--gold-deep); background: linear-gradient(180deg, rgba(231,184,80,.10), rgba(231,184,80,.02)); }
.action-live .action-sub { color: var(--gold-2); }
.action-live:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 30px -16px rgba(231,184,80,.5); }
.action-soon { opacity: .92; cursor: default; }
.action-soon .action-sub { color: var(--gold-deep); }
.action-link { cursor: pointer; }
.action-link:hover { transform: translateY(-2px); border-color: var(--gold); }
.get-cta { max-width: 700px; margin: 2.2rem auto 0; padding-top: 1.8rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.get-cta-note { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 560px) {
  .get-grid { grid-template-columns: 1fr; max-width: 340px; gap: 1.6rem 0; }
  .get-col { padding: 0; }
  .get-col + .get-col { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
}

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 0; }
.footer .stripe { opacity: .9; }
.footer-wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 3rem 0; }
.footer-brand { display: grid; gap: .3rem; }
.footer-brand .brand-gear { width: 2rem; height: 2rem; color: var(--gold); }
.footer-brand .brand-word { font-size: 1.6rem; font-weight: 800; }
.footer-tag { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.footer-meta { text-align: right; max-width: 46ch; }
.footer-compat { font-family: var(--mono); color: var(--cream-dim); letter-spacing: .03em; margin: 0 0 .3rem; }
.footer-line { color: var(--gold-2); margin: 0 0 .8rem; font-weight: 600; }
.footer-small { color: var(--muted); font-size: .82rem; margin: .2rem 0; }
.footer-textlink { color: var(--gold-2); border-bottom: 1px solid var(--line-2); }
.footer-textlink:hover { color: var(--gold); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; }
  .missing-grid, .features, .credits, .demos, .stats, .ideas { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-right { margin-left: auto; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: .25s; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1rem 1.5rem; gap: .9rem; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .features, .credits, .demos, .stats, .missing-grid, .ideas, .native-pair { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 44px 1fr; }
  .tl-state { grid-column: 2; }
}

/* ============================================================
   PLATINUM theme: a light, warm-gray IIGS-era homage.
   Overrides the palette tokens, plus the few hard-coded dark
   surfaces. The terminal tile stays dark on purpose.
   ============================================================ */
[data-theme="platinum"] {
  --bg:        #d9d5cb;
  --bg-2:      #cfcabd;
  --surface:   #f5f2ea;
  --surface-2: #ebe6d8;
  --line:      #c0b9a7;
  --line-2:    #aaa088;

  --cream:     #2a261f;
  --cream-dim: #4b4638;
  --muted:     #6f6856;

  /* darker bronze accents so small gold text clears contrast on the
     light surfaces; gold-deep stays mid for decorative borders/glows */
  --gold:      #7e5a10;
  --gold-2:    #6b4d0c;
  --gold-deep: #a8801f;

  --ok:    #2f7d1e;
  --wait:  #8a5e0c;
}
[data-theme="platinum"] body {
  background:
    radial-gradient(1100px 600px at 80% -5%, rgba(154,116,32,.12), transparent 60%),
    radial-gradient(900px 700px at 0% 10%, rgba(0,157,220,.06), transparent 55%),
    var(--bg);
}
[data-theme="platinum"] .nav::before { background: rgba(217,213,203,.8); border-bottom-color: var(--line); }
[data-theme="platinum"] .theme-switch { background: rgba(0,0,0,.03); }
[data-theme="platinum"] .btn-ghost { background: rgba(0,0,0,.02); }
[data-theme="platinum"] .hero-art img { box-shadow: 0 30px 70px -28px rgba(60,52,30,.55), 0 0 0 1px rgba(154,116,32,.12); }
[data-theme="platinum"] .forever {
  background: radial-gradient(900px 500px at 50% 0%, rgba(154,116,32,.12), transparent 60%), var(--bg-2);
}
[data-theme="platinum"] .demo-ph {
  background: repeating-linear-gradient(135deg, #e9e4d6, #e9e4d6 10px, #e2dccc 10px, #e2dccc 20px);
}
[data-theme="platinum"] .feat code { background: #efe9da; }
/* terminal + code blocks deliberately stay dark for contrast */
[data-theme="platinum"] .feat-term { border-color: var(--line-2); }
[data-theme="platinum"] .codeblock { background: #1a1710; color: var(--cream); border-color: var(--line-2); }
[data-theme="platinum"] .codeblock,
[data-theme="platinum"] .codeblock * { color: #f3ecdd; }
[data-theme="platinum"] .codeblock .c-dim { color: #a59c84; }
/* darker gradient for the big hero word so it clears on light */
[data-theme="platinum"] .grad { background-image: linear-gradient(100deg, #8a6515, #6f5012, #5a3f0c); }
/* gold elements that carry dark text must stay genuinely bright */
[data-theme="platinum"] .btn-gold,
[data-theme="platinum"] .ts-btn.is-active { background: linear-gradient(180deg, #e7b850, #c8922f); color: #2a1d05; }
[data-theme="platinum"] .btn-gold { box-shadow: 0 10px 26px -14px rgba(154,116,32,.55); }
/* the bright six-color labels need darkening on a light card */
[data-theme="platinum"] .solved-label { color: #2f7d1e; }
[data-theme="platinum"] .unsolved-label { color: #bf282c; }
