/* coreutils.f00.sh — f00tils */

/* Brand tokens: https://f00.sh/theme/f00-theme.css */
:root {
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --radius: 10px;
  --max: 1080px;
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: #000000;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.muted {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ── header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}

.logo .dot {
  color: var(--text-mute);
  font-weight: 400;
  font-size: 0.85em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

@media (max-width: 760px) {
  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(10, 12, 15, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
}

/* ── buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 550;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-hot);
  color: #000000;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* ── install row ────────────────────────────────────────── */

.install-block {
  margin: 0 0 1.25rem;
}

.install-version-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 154, 0.35);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.version-pill:hover {
  color: var(--accent-hot);
  border-color: var(--accent);
  text-decoration: none;
}

.install-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.install-row-lg .install-cmd {
  font-size: 0.92rem;
  padding: 1rem 1.15rem;
}

.install-cmd {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.05rem;
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-x: auto;
}

.install-cmd .dollar {
  color: var(--accent);
  flex-shrink: 0;
}

.install-cmd code {
  color: var(--text);
  white-space: nowrap;
}

.copy-btn {
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn.copied {
  color: #000000;
  background: var(--accent);
  border-color: var(--accent);
}

/* ── hero ───────────────────────────────────────────────── */

.hero {
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(61, 255, 154, 0.07), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-pills li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ── terminal ───────────────────────────────────────────── */

.term {
  background: var(--code-bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.term-bar i:nth-child(1) {
  background: #ffffff;
}
.term-bar i:nth-child(2) {
  background: #b3b3b3;
}
.term-bar i:nth-child(3) {
  background: #666666;
}

.term-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-mute);
}

.term-body {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  color: var(--text);
  white-space: pre;
}

/* ANSI-ish sample colors */
.term-body .c {
  color: var(--accent);
}
.term-body .w {
  color: var(--text);
}
.term-body .d {
  color: #6ea8fe;
}
.term-body .y {
  color: #f0c14a;
}
.term-body .x {
  color: #e8a0bf;
}
.term-body .g {
  color: var(--accent);
}
.term-body .m {
  color: var(--text-mute);
}
.term-body .cy {
  color: #5ad4e6;
}
.term-body .jk {
  color: #ffffff;
}
.term-body .js {
  color: #f0c14a;
}
.term-body .jn {
  color: #6ea8fe;
}

/* ── sections ───────────────────────────────────────────── */

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ── why / cards ────────────────────────────────────────── */

.why-grid,
.features-tight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .why-grid,
  .features-tight {
    grid-template-columns: 1fr;
  }
}

/* ── comparison table ───────────────────────────────────── */

.compare-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  background: var(--bg-panel);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.82rem;
}

.compare tbody th {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td {
  color: var(--text-dim);
}

/* ── demos ──────────────────────────────────────────────── */

.demo-shell,
.bench-shell,
.install-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.demo-tabs [role="tab"] {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.demo-tabs [role="tab"]:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.demo-tabs [role="tab"][aria-selected="true"] {
  color: #000000;
  background: var(--accent);
  border-color: var(--accent);
}

.demo-term {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ── benches ────────────────────────────────────────────── */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rule-card {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.rule-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.rule-card p {
  margin: 0 0 0.35rem;
}

.rule-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.bench-pane {
  padding: 1.15rem;
}

.bench-pane-lead {
  margin: 0 0 1rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.bench-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 800px) {
  .bench-grid.two {
    grid-template-columns: 1fr;
  }
}

/* ── hero package average tiles ─────────────────────────── */
.hero-pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.1rem 0 1.25rem;
  max-width: 36rem;
}

.hero-pkg-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(61, 255, 154, 0.22);
  background: linear-gradient(
    160deg,
    rgba(61, 255, 154, 0.1),
    rgba(125, 255, 224, 0.03)
  );
  min-width: 0;
}

.hero-pkg-name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-pkg-wall {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-pkg-meta {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.25;
}

@media (max-width: 700px) {
  .hero-pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── why --core / modern ────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.why-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.why-card-accent {
  border-color: rgba(61, 255, 154, 0.28);
  background: linear-gradient(
    160deg,
    rgba(61, 255, 154, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}

.why-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.why-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.why-list li {
  margin-bottom: 0.4rem;
}

.why-list li:last-child {
  margin-bottom: 0;
}

.why-list strong {
  color: var(--text);
}

.why-shot {
  margin: 0;
  max-width: 48rem;
}

.why-shot figcaption {
  margin-top: 0.5rem;
}

@media (max-width: 700px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ── per-package bench cards ─────────────────────────────── */
.pkg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.pkg-card {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--card, rgba(255, 255, 255, 0.03));
}
.pkg-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.pkg-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: lowercase;
}
.pkg-x {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}
.pkg-x-sub {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.pkg-cpu {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}
.pkg-meta {
  margin: 0;
  line-height: 1.35;
}
.pkg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.pkg-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.pkg-tab.active {
  background: var(--accent);
  color: #0b0b10;
  border-color: transparent;
  font-weight: 600;
}
.pkg-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  opacity: 0.75;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  vertical-align: middle;
}
.race-pkg {
  margin: 0 0 1.75rem;
}
.race-pkg-title {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}
.race-pkg-grid {
  margin: 0;
}

/* ── overall hero (benchmarks section) ──────────────────── */
.overall-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(61, 255, 154, 0.22);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.overall-num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 6.5rem;
}

.overall-x {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.overall-unit {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.overall-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.overall-body p {
  margin: 0.2rem 0;
}

@media (max-width: 640px) {
  .overall-hero {
    grid-template-columns: 1fr;
  }
}

/* ── race cards (Bun-style fluid bars) ──────────────────── */
.bench-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
}

.bench-card.hl-win,
.race-card {
  border-color: rgba(61, 255, 154, 0.18);
}

.race-card {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    border-color 0.3s ease;
  transition-delay: var(--d, 0s);
}

#race-grid.animate .race-card {
  opacity: 1;
  transform: none;
}

.race-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.bench-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.race-head h3 {
  margin: 0;
}

.race-cmd {
  margin: 0 0 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  border: 1px solid var(--border);
}

.bar.fluid {
  width: 0;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  transition: width 1.1s var(--ease);
  transition-delay: calc(var(--d, 0s) + 0.15s);
}

#race-grid.animate .bar.fluid {
  width: var(--w, 50%);
}

.bar.fluid.f00 {
  background: linear-gradient(90deg, #ffffff, var(--accent-hot));
  box-shadow: 0 0 16px rgba(61, 255, 154, 0.35);
}

.bar.fluid.gnu,
.bar.dim {
  background: linear-gradient(90deg, #3a4558, #5c6678);
  box-shadow: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .race-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bar.fluid {
    width: var(--w, 50%);
    transition: none;
  }
}

/* ── cold startup line chart ────────────────────────────── */
.cold-panel {
  margin: 1.75rem 0 1rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.cold-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.cold-chart-wrap {
  position: relative;
}

.cold-chart {
  width: 100%;
  height: auto;
  display: block;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cold-chart .grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.cold-chart .axis {
  fill: var(--text-mute);
  font-size: 10px;
  font-family: var(--font-mono);
}

.cold-chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.cold-chart.drawn .line {
  stroke-dashoffset: 0;
}

.cold-chart .gnu-line {
  stroke: #7a8499;
  stroke-width: 2;
  opacity: 0.9;
}

.cold-chart .f00-line {
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px rgba(61, 255, 154, 0.45));
}

.cold-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.cold-legend .leg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cold-legend .leg i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.cold-legend .leg.f00 {
  color: var(--accent);
}

.cold-legend .leg.gnu {
  color: #8b95a8;
}

.bench-foot-links {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .cold-chart .line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
}

.bench-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.bench-tag.win {
  color: #000000;
  background: var(--accent);
  border-color: var(--accent);
}

.bench-tag.fair {
  color: var(--warn);
  border-color: rgba(240, 193, 74, 0.4);
}

.bench-tag.unique {
  color: var(--accent-hot);
  border-color: rgba(125, 255, 224, 0.35);
}

.bench-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.bar-label {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  width: var(--w, 50%);
  min-width: 4px;
  opacity: 0.9;
}

.bar.dim {
  background: var(--border-strong);
  opacity: 1;
}

.bar-val {
  color: var(--text);
  text-align: right;
  min-width: 4.8rem;
  font-variant-numeric: tabular-nums;
}

.bench-foot {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-dim);
}

.plain-list li {
  margin-bottom: 0.35rem;
}

/* ── install panes ──────────────────────────────────────── */

.install-pane {
  padding: 1.15rem;
}

.install-note {
  margin: 0.75rem 0 0;
}

.install-details {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.code-block {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.code-block code {
  color: inherit;
  white-space: pre;
}

/* ACiD / 16colo.rs-style release scene card (file_id.diz) */
.scene-card {
  color: var(--accent-hot);
  background: #05070a;
  border-color: var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.scene-card code {
  color: inherit;
  white-space: pre;
  tab-size: 4;
}

/* ── github ─────────────────────────────────────────────── */

.github-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.github-copy h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.github-copy p {
  color: var(--text-dim);
  max-width: 32rem;
}

.star-btn {
  margin-top: 1rem;
  background: #f0c14a;
  color: #1a1400;
  border-color: transparent;
  font-weight: 600;
}

.star-btn:hover {
  background: #ffd666;
  color: #1a1400;
}

.star-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.85;
}

.github-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.stat-footnote {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-mute);
}

@media (max-width: 800px) {
  .github-layout {
    grid-template-columns: 1fr;
  }
}

/* ── docs / footer ──────────────────────────────────────── */

.docs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.docs-section h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-footer {
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.footer-inner nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--accent);
}

/* suite matrix */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}
table.matrix th,
table.matrix td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
table.matrix thead th {
  background: rgba(255,255,255,0.04);
  font-weight: 600;
}
table.matrix tr.shipped td {
  background: rgba(80, 200, 120, 0.06);
}
.muted { opacity: 0.75; font-size: 0.9rem; }
.small { font-size: 0.85rem; }
.laws {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 52rem;
}
.laws li {
  margin: 0.65rem 0;
  color: var(--text-dim);
}
.laws li strong {
  color: var(--text);
}
.laws code {
  font-size: 0.9em;
}
pre.code {
  background: rgba(0,0,0,0.35);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
}

.progress-bar {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  border-radius: 999px;
}
tr.partial td { opacity: 0.92; }
tr.missing td { color: var(--warn); }
tr.missing code { color: var(--warn); }

/* scoreboard */
.subhead {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
table.matrix.compact {
  font-size: 0.82rem;
}
table.matrix.compact th,
table.matrix.compact td {
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}
table.matrix.compact code.cmd {
  font-size: 0.78em;
  color: var(--text-dim);
  white-space: normal;
  word-break: break-all;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}
@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stat {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--accent);
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* screenshots / brand shots */
.shot-frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}
.shot-frame .shot,
.shot-card img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.shot-grid.feature-shots {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .shot-grid.feature-shots {
    grid-template-columns: 1fr 1fr;
  }
  .shot-grid.feature-shots .shot-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
.shot-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.shot-card img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-card figcaption {
  padding: 0.85rem 1.1rem 1.05rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.45;
  border-top: 1px solid var(--border);
}
.shot-card figcaption strong {
  color: var(--text);
  font-weight: 600;
}
.why-shot {
  margin-top: 1.5rem;
}
.why-shot figcaption {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
}
.core-callout {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #ffffff);
  border-radius: 12px;
  background: var(--bg-elevated);
}
.core-callout h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.core-callout p {
  margin: 0 0 0.65rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.core-callout p:last-child {
  margin-bottom: 0;
}
.core-callout .why-list {
  margin: 0.35rem 0 0.75rem;
}
