/* ═══════════════════════════════════════════════════════
   FINCH WEBSITE — Retro Terminal Theme
   Dark phosphor green · CRT scanlines · IBM Plex Mono
═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --green:        #00ff41;
  --green-dim:    #00b330;
  --green-faint:  #004418;
  --green-glow:   rgba(0,255,65,0.18);
  --amber:        #ffaa00;
  --red:          #ff4444;
  --bg:           #080808;
  --bg-card:      #0f0f0f;
  --bg-terminal:  #0a0a0a;
  --border:       #1a3a1a;
  --border-mid:   #2a5a2a;
  --text:         #00ff41;
  --text-dim:     #00b330;
  --text-muted:   #336633;
  --font:         'IBM Plex Mono', 'Courier New', monospace;
  --radius:       2px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dim); text-decoration: underline; }
a:hover { color: var(--green); }

code {
  background: rgba(0,255,65,0.08);
  color: var(--green);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9em;
}

strong { color: var(--green); font-weight: 700; }

/* ── CRT Scanlines ──────────────────────────────────── */
.crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  animation: flicker 0.2s infinite;
}

@keyframes flicker {
  0%   { opacity: 0.97; }
  50%  { opacity: 1.00; }
  100% { opacity: 0.98; }
}

/* ── Navigation ─────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.3em;
  text-shadow: 0 0 16px var(--green);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  transition: color 0.15s, text-shadow 0.15s;
}
.nav-links a:hover {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-family: var(--font);
}

/* ── Hero ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(0,255,65,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0,255,65,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  width: 100%;
  text-align: center;
}

/* ── FINCH Logo Art ─────────────────────────────────── */
.logo-art {
  font-size: clamp(0.38rem, 1.1vw, 0.8rem);
  line-height: 1.15;
  color: var(--green);
  text-shadow:
    0 0 10px var(--green),
    0 0 25px rgba(0,255,65,0.35),
    0 0 50px rgba(0,255,65,0.12);
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: logo-glitch 12s infinite;
}

@keyframes logo-glitch {
  0%, 93%, 100% {
    clip-path: none;
    transform: none;
    filter: none;
  }
  94% {
    clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%);
    transform: translateX(-4px);
    filter: brightness(1.3);
  }
  95% {
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    transform: translateX(4px);
  }
  96% {
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
    transform: translateX(-2px);
  }
  97% {
    clip-path: none;
    transform: none;
  }
}

.hero-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.badges {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badges span {
  border: 1px solid var(--border);
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.badges span:hover {
  border-color: var(--green-dim);
  color: var(--green-dim);
}

/* ── Terminal Widget ─────────────────────────────────── */
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(0,255,65,0.06),
    0 0 40px rgba(0,0,0,0.6),
    0 0 60px rgba(0,255,65,0.06);
}

.term-bar {
  background: #141414;
  padding: 0.55rem 1rem;
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: #444;
  letter-spacing: 0.1em;
}

.term-body {
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: 0.82rem;
  min-height: 220px;
  line-height: 1.5;
}

#term-out .line { display: block; }
#term-out .cmd      { color: var(--green); }
#term-out .bird     { color: #cc8800; text-shadow: 0 0 6px rgba(200,130,0,0.4); line-height: 1.1; }
#term-out .response { color: #aaffcc; }
#term-out .dim      { color: #444; }
#term-out .muted    { color: #555; }

.term-cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 1s step-end infinite;
  text-shadow: 0 0 8px var(--green);
}

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

/* ── Hero CTAs ──────────────────────────────────────── */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #000;
  padding: 0.75rem 2.25rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.1s;
}
.btn-primary:hover {
  box-shadow: 0 0 20px var(--green), 0 0 50px rgba(0,255,65,0.25);
  transform: translateY(-1px);
  color: #000;
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
  padding: 0.75rem 2.25rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0,255,65,0.12);
}

/* ── Section Common ─────────────────────────────────── */
section {
  padding: 5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.sec-title {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
}

/* ── Pitch Section ──────────────────────────────────── */
#pitch {
  border-top: 1px solid var(--border);
  max-width: 960px;
  padding: 4rem 1.5rem;
}

.pitch-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.pitch-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}

.pitch-divider {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: center;
  padding-top: 2rem;
}

.pitch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pitch-list li {
  font-size: 0.82rem;
  padding-left: 1.25em;
  position: relative;
  color: var(--text-dim);
}

.pitch-list.bad li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
}

.pitch-list.good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ── Use It Your Way ────────────────────────────────── */
#usage { border-top: 1px solid var(--border); }

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.use-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.use-full { grid-column: 1 / -1; }

.use-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.2;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.use-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 0.65rem;
}

.use-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.use-code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  font-size: 0.74rem;
  color: var(--green);
  line-height: 1.55;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre;
}

.uc-prompt { color: var(--green-dim); }
.uc-dim    { color: var(--text-muted); }
.uc-str    { color: #aaffcc; }
.uc-cursor { animation: blink 1s step-end infinite; }

.use-code-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 680px) {
  .use-grid      { grid-template-columns: 1fr; }
  .use-code-row  { grid-template-columns: 1fr; }
}

/* ── Open Agent Section ─────────────────────────────── */
#open-agent {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,255,65,0.02) 0%, transparent 100%);
}

.agent-headline {
  margin-bottom: 2.5rem;
}

.agent-lede {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 620px;
}

.agent-lede strong { color: var(--green); }

.provider-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.provider-row span {
  border: 1px solid var(--border-mid);
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border-radius: var(--radius);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 0 20px rgba(0,255,65,0.06);
}
.agent-card:hover::after { opacity: 1; }

.agent-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.agent-icon {
  font-size: 1.4rem;
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}

.agent-wide .agent-icon { margin-bottom: 0; margin-top: 0.1rem; }

.agent-card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tag-macos {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-mid);
  padding: 0.1rem 0.4rem;
  color: var(--text-muted);
  border-radius: 2px;
  font-weight: 400;
}

.agent-card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .agent-grid { grid-template-columns: 1fr; }
  .agent-wide { flex-direction: column; }
}

/* ── Feature Cards ──────────────────────────────────── */
#features { border-top: 1px solid var(--border); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 0 20px rgba(0,255,65,0.07);
}
.card:hover::after { opacity: 1; }

.card-glyph {
  font-size: 1.4rem;
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 0.65rem;
}

.card p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── How It Works ───────────────────────────────────── */
#how-it-works { border-top: 1px solid var(--border); }

.flow-wrap {
  overflow-x: auto;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-art {
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  color: var(--green);
  text-shadow: 0 0 6px rgba(0,255,65,0.3);
  line-height: 1.45;
  white-space: pre;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-n {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.2;
  flex-shrink: 0;
  line-height: 1.2;
}

.step h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Models Table ───────────────────────────────────── */
#models { border-top: 1px solid var(--border); }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.model-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.model-table td {
  padding: 0.65rem 1rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.model-table tbody tr:hover td { background: rgba(0,255,65,0.025); }

.bar { color: var(--green); text-shadow: 0 0 6px rgba(0,255,65,0.5); letter-spacing: 0.05em; }
.bar.fast { color: var(--amber); text-shadow: 0 0 6px rgba(255,170,0,0.5); }

.table-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

/* ── Install ────────────────────────────────────────── */
#install { border-top: 1px solid var(--border); }

.install-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 2rem;
  border-radius: var(--radius);
}

.install-cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  white-space: nowrap;
  border-radius: var(--radius);
}

.install-cmd.secondary {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.prompt {
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
}

#install-text, .install-cmd code {
  color: var(--green);
  font-size: 0.82rem;
  flex: 1;
  font-family: var(--font);
  background: none;
  padding: 0;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  border-radius: var(--radius);
}
.copy-btn:hover       { border-color: var(--green-dim); color: var(--green-dim); }
.copy-btn.copied      { border-color: var(--green); color: var(--green); text-shadow: 0 0 6px var(--green); }

.install-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.install-note {
  font-size: 0.78rem;
  color: var(--green-dim);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.build-from-source { border-top: 1px solid var(--border); padding-top: 2rem; }
.dim { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.12em; display: block; margin-bottom: 0.5rem; }

/* ── Contribute ─────────────────────────────────────── */
#contribute { border-top: 1px solid var(--border); }

.contrib-intro {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.contrib-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contrib-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.4rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contrib-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 0 16px rgba(0,255,65,0.06);
}

.issue-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.65rem;
  border-radius: 2px;
}
.good-first  { background: rgba(0,255,65,0.12);  color: var(--green); border: 1px solid var(--green-faint); }
.help-wanted { background: rgba(255,170,0,0.1);  color: var(--amber); border: 1px solid rgba(255,170,0,0.2); }
.complex     { background: rgba(255,68,68,0.1);  color: var(--red);   border: 1px solid rgba(255,68,68,0.2); }

.contrib-card h3 {
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.contrib-card p {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.contrib-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Footer ─────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.footer-bird {
  font-size: 0.82rem;
  color: #cc8800;
  text-shadow: 0 0 8px rgba(200,130,0,0.35);
  line-height: 1.1;
  margin-bottom: 1.75rem;
  display: inline-block;
  text-align: left;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--green); }

.footer-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 1.25rem 0 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-support-label {
  letter-spacing: 0.15em;
  color: var(--amber);
  opacity: 0.7;
}

.footer-support-link {
  color: var(--amber) !important;
  text-decoration: none;
  border: 1px solid rgba(255,170,0,0.3);
  padding: 0.2em 0.7em;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s;
}
.footer-support-link:hover {
  border-color: var(--amber);
  color: var(--amber) !important;
  text-shadow: 0 0 8px rgba(255,170,0,0.5);
}

.footer-divider { color: var(--text-muted); }

.footer-support-note {
  color: var(--text-muted);
}
.footer-support-note a {
  color: var(--text-muted);
}
.footer-support-note a:hover {
  color: var(--green);
}

.footer-copy {
  font-size: 0.68rem;
  color: #2a2a2a;
  letter-spacing: 0.18em;
}

/* ── Sponsor section ────────────────────────────────── */
#sponsor {
  padding: 5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.sponsor-lede {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sponsor-tier {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
.sponsor-tier:hover {
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(255,170,0,0.12);
}

.sponsor-tier.tier-highlight {
  border-color: rgba(255,170,0,0.4);
}

.tier-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.tier-amount span {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.tier-name {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.tier-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.btn-sponsor {
  display: inline-block;
  padding: 0.7em 2em;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-family: var(--font);
  border-radius: var(--radius);
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-sponsor:hover {
  background: rgba(255,170,0,0.08);
  box-shadow: 0 0 14px rgba(255,170,0,0.25);
  color: var(--amber);
}

/* ── Docs page ──────────────────────────────────────── */
.docs-header {
  padding: 7rem 1.5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.docs-header h1 {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.docs-header p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.docs-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.docs-group { margin-bottom: 3rem; }

.docs-group-title {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.doc-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: color 0.15s;
}
.doc-link:hover { color: var(--green); }
.doc-link .doc-name { font-weight: 700; min-width: 180px; color: var(--green-dim); }
.doc-link:hover .doc-name { color: var(--green); }
.doc-link .doc-desc { font-size: 0.76rem; color: var(--text-dim); }
.doc-link .doc-arrow { margin-left: auto; color: var(--text-muted); font-size: 0.75rem; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* ── Selection ──────────────────────────────────────── */
::selection { background: var(--green); color: #000; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 680px) {
  .logo-art { font-size: 0.32rem; }

  #nav { padding: 0.75rem 1rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(8,8,8,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }

  .pitch-inner { grid-template-columns: 1fr; }
  .pitch-divider { display: none; }

  section { padding: 3rem 1rem; }

  .flow-art { font-size: 0.5rem; }

  .install-cmd { flex-wrap: wrap; }
  #install-text { min-width: 0; white-space: normal; word-break: break-all; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 320px; text-align: center; }
}
