/* ===========================================================
   葬AI Web4 — shared design system
   Dark, opinionated, retro-terminal × editorial
   =========================================================== */

@font-face {
  font-family: "Fusion Pixel";
  src: url("/test/r9/minimax-m3/assets/fusion-pixel-12px-proportional.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --bg: #0b0a14;
  --bg-2: #100d1c;
  --surface: #14111f;
  --surface-2: #1a1628;
  --border: #2a2540;
  --border-bright: #3a3358;
  --grid: #1c1830;
  --text: #e7e2f0;
  --text-dim: #a39eb8;
  --text-mute: #6b6585;

  /* Brand & accents */
  --brand: #8b6dff;        /* brightened #7351cf */
  --brand-2: #7351cf;
  --accent: #ff2d75;       /* hot magenta/red */
  --accent-2: #ff6b9d;
  --neon-mint: #4ade80;
  --neon-cyan: #22d3ee;
  --neon-amber: #fbbf24;
  --neon-pink: #ec4899;

  /* Type */
  --font-pixel: "Fusion Pixel", "Press Start 2P", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", "Hiragino Sans GB", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* Type scale */
  --fs-xs: 0.72rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.9rem;
  --fs-2xl: 2.6rem;
  --fs-3xl: 3.8rem;

  /* Layout */
  --nav-h: 56px;
  --max-w: 1280px;
  --r: 2px;
  --r-lg: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(115, 81, 207, 0.18), transparent 60%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-attachment: fixed;
}

a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color .15s, border-color .15s, background .15s;
}
a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }

/* ===========================================================
   Navbar
   =========================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: rgba(11, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: var(--fs-sm);
  color: var(--text);
  letter-spacing: 0.05em;
  border-bottom: none;
}
.nav__brand:hover { color: var(--brand); border-bottom: none; }
.nav__brand img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(139, 109, 255, 0.4));
}
.nav__brand .web4 { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
}
.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-bottom: none;
}
.nav__links a:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.nav__links a.is-active {
  color: var(--brand);
  background: var(--surface);
  border-color: var(--border-bright);
}

/* ===========================================================
   Layout helpers
   =========================================================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.pixel {
  font-family: var(--font-pixel);
  letter-spacing: 0.05em;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.muted { color: var(--text-mute); }
.dim   { color: var(--text-dim); }

/* Type tag colors */
.t-product  { color: var(--neon-mint); border-color: var(--neon-mint); background: rgba(74, 222, 128, 0.06); }
.t-person   { color: var(--neon-amber); border-color: var(--neon-amber); background: rgba(251, 191, 36, 0.06); }
.t-company  { color: var(--brand); border-color: var(--brand); background: rgba(139, 109, 255, 0.06); }
.t-vc_firm  { color: var(--neon-pink); border-color: var(--neon-pink); background: rgba(236, 72, 153, 0.06); }

/* ===========================================================
   Buttons
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--r);
  cursor: pointer;
  text-transform: uppercase;
  transition: all .15s;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
}
.btn--accent {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===========================================================
   Hero (home)
   =========================================================== */

.hero {
  position: relative;
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero__kicker {
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-pixel);
  font-size: var(--fs-3xl);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.hero__title .w4 { color: var(--accent); }
.hero__sub {
  font-size: var(--fs-md);
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 60px;
  background: var(--surface);
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-pixel);
  font-size: var(--fs-xl);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__lbl {
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Section header */
.sec-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 80px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sec-h__no {
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--accent);
}
.sec-h__title {
  font-family: var(--font-pixel);
  font-size: var(--fs-md);
  color: var(--text);
  letter-spacing: 0.05em;
}
.sec-h__hint {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-mute);
}

/* ===========================================================
   Card grid
   =========================================================== */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  border-bottom-style: solid;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: var(--brand);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover {
  border-color: var(--border-bright);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }
.card__date {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.card__title {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}
.card__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card__meta {
  display: flex;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.card__meta .author { color: var(--neon-amber); }

/* ===========================================================
   Article page
   =========================================================== */

.article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; }
}
.article__head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article__crumbs {
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.article__crumbs a { color: var(--text-dim); border-bottom: none; }
.article__crumbs a:hover { color: var(--accent); }
.article__title {
  font-family: var(--font-pixel);
  font-size: var(--fs-xl);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}
.article__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.article__meta .author { color: var(--neon-amber); }

.article-body {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.85;
  color: #d8d3e8;
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-pixel);
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: 0.05em;
}
.article-body h1 { font-size: var(--fs-lg); }
.article-body h2 { font-size: var(--fs-md); color: var(--brand); }
.article-body h3 { font-size: var(--fs-base); color: var(--neon-mint); }
.article-body p { margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0 14px 24px; }
.article-body li { margin: 4px 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 18px 0;
  background: rgba(255, 45, 117, 0.04);
  color: var(--text-dim);
  font-style: italic;
}
.article-body code {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9em;
  color: var(--neon-mint);
}
.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--r);
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}
.article-body hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 32px 0;
}
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { color: var(--brand); border-bottom: 1px solid rgba(139, 109, 255, 0.4); }
.article-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.article-side > div + div { margin-top: 20px; }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--r);
}
.side-card h3 {
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.entity-list { display: flex; flex-wrap: wrap; gap: 6px; }
.entity-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid;
  border-radius: var(--r);
  border-bottom-style: solid;
  max-width: 100%;
}
.entity-list a:hover { background: var(--surface-2); }
.entity-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rel-list { list-style: none; }
.rel-list li {
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-dim);
}
.rel-list li:last-child { border-bottom: none; }
.rel-list b { color: var(--neon-mint); font-weight: 500; }
.rel-list .arrow { color: var(--accent); margin: 0 4px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-nav a {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  border-bottom-style: solid;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  transition: all .15s;
}
.article-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
}
.article-nav a.is-disabled { opacity: 0.35; pointer-events: none; }
.article-nav .nav-lbl {
  display: block;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

/* ===========================================================
   Graph page
   =========================================================== */

.graph-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  height: calc(100vh - var(--nav-h));
  padding: 16px;
  max-width: 1600px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .graph-layout { grid-template-columns: 1fr; height: auto; }
}

.graph-canvas-wrap {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  min-height: 600px;
  height: 100%;
}
#graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#graph-canvas:active { cursor: grabbing; }

.graph-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 5;
}
.graph-controls .chip {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(11, 10, 20, 0.85);
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r);
}
.graph-controls .chip.is-on {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(139, 109, 255, 0.1);
}
.graph-controls .chip[data-type="product"].is-on  { color: var(--neon-mint); border-color: var(--neon-mint); background: rgba(74, 222, 128, 0.1); }
.graph-controls .chip[data-type="person"].is-on   { color: var(--neon-amber); border-color: var(--neon-amber); background: rgba(251, 191, 36, 0.1); }
.graph-controls .chip[data-type="company"].is-on  { color: var(--brand); border-color: var(--brand); background: rgba(139, 109, 255, 0.1); }
.graph-controls .chip[data-type="vc_firm"].is-on  { color: var(--neon-pink); border-color: var(--neon-pink); background: rgba(236, 72, 153, 0.1); }

.graph-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 10, 20, 0.85);
  border: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  gap: 14px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.08em;
  z-index: 5;
}
.graph-legend__item { display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.graph-legend__dot { width: 10px; height: 10px; border-radius: 50%; }

.graph-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  background: rgba(11, 10, 20, 0.85);
  padding: 6px 10px;
  border: 1px solid var(--border);
  z-index: 5;
}

.graph-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
}
.graph-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}
.graph-tabs button {
  flex: 1;
  padding: 10px 6px;
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.graph-tabs button:last-child { border-right: none; }
.graph-tabs button.is-on { color: var(--brand); background: var(--surface-2); }

.leaderboard {
  flex: 1;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 0;
}
.lb-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
  font-size: var(--fs-sm);
}
.lb-row:hover { background: var(--surface-2); }
.lb-row.is-focused { background: rgba(139, 109, 255, 0.08); }
.lb-row__rank {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  text-align: right;
}
.lb-row__rank.top { color: var(--accent); }
.lb-row__name {
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.lb-row__name .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.lb-row__name .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__meta {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  text-align: right;
}

.node-drawer {
  position: absolute;
  right: 0;
  top: 0;
  width: 340px;
  max-width: 90%;
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  z-index: 20;
  transform: translateX(100%);
  transition: transform .2s ease-out;
}
.node-drawer.is-open { transform: translateX(0); }
.node-drawer__close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--text-mute);
  cursor: pointer;
  background: none;
  border: none;
}
.node-drawer__close:hover { color: var(--accent); }
.node-drawer__type {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.node-drawer__name {
  font-family: var(--font-pixel);
  font-size: var(--fs-md);
  color: var(--text);
  margin-bottom: 8px;
  padding-right: 20px;
  word-break: break-word;
}
.node-drawer__desc {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}
.node-drawer__stats {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.node-drawer__stat { flex: 1; }
.node-drawer__stat .num {
  font-family: var(--font-pixel);
  font-size: var(--fs-md);
  color: var(--brand);
  line-height: 1;
}
.node-drawer__stat .lbl {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.node-drawer h4 {
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.node-drawer .art-list { list-style: none; }
.node-drawer .art-list li { margin: 6px 0; font-size: 12px; }
.node-drawer .art-list a { color: var(--text-dim); }
.node-drawer .art-list a:hover { color: var(--brand); }

/* ===========================================================
   Article list page
   =========================================================== */

.list-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.search {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  outline: none;
}
.search input:focus { border-color: var(--brand); }
.search::before {
  content: ">";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: var(--fs-sm);
}
.filter-chip {
  padding: 6px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.08em;
  border-radius: var(--r);
}
.filter-chip.is-on {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(139, 109, 255, 0.08);
}
.filter-chip.count { font-size: 9px; opacity: 0.7; }

.list-meta {
  margin-bottom: 20px;
  font-family: var(--font-pixel);
  font-size: var(--fs-xs);
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.list-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
  font-family: var(--font-pixel);
  font-size: var(--fs-sm);
  border: 1px dashed var(--border);
  border-radius: var(--r);
}

/* ===========================================================
   Footer
   =========================================================== */

.foot {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  background: var(--bg-2);
}
.foot a { color: var(--text-dim); border-bottom: none; }
.foot a:hover { color: var(--accent); }
.foot__row { margin: 4px 0; }

/* ===========================================================
   Loading & utility
   =========================================================== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-family: var(--font-pixel);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.loading::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--brand);
  margin-left: 8px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero__title { font-size: var(--fs-2xl); }
  .nav { padding: 0 12px; gap: 12px; }
  .nav__links a { padding: 6px 8px; }
  .container { padding: 24px 12px 60px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}
