/* ============================================================
   buku.pro — stylesheet
   "The Illuminated Ledger": buku = book. Deep ink, vellum text,
   gold-leaf accent (the gilding), starlight blue (the agents).
   Fraunces serif for the manuscript, mono for the ledger/agents.
   ============================================================ */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-600.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/fraunces-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  --bg: #0b0f1e;
  --bg-soft: #0e1324;
  --bg-elevated: #131a2e;
  --ink: #f1e8d6;              /* vellum */
  --ink-soft: #d9d0c2;
  --muted: #8b93a8;
  --line: #232b40;
  --accent: #d4af37;           /* gold leaf */
  --accent-strong: #bf9a2e;
  --accent-soft: rgba(212, 175, 55, 0.14);
  --blue: #6fa8dc;             /* starlight */
  --blue-soft: rgba(111, 168, 220, 0.14);
  --green: #4fd1a5;            /* aurora — money in */
  --red: #e0705a;              /* ember — warnings */
  --grad: linear-gradient(120deg, #e9c766 0%, #d4af37 45%, #f4dc8f 100%);
  --glow: rgba(212, 175, 55, 0.16);
  --radius: 18px;
  --maxw: 1140px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lead { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad);
  opacity: 0.7;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #231a05;
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: 0 12px 34px -8px var(--glow), 0 0 0 1px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 30, 0.78);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 600; color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; cursor: pointer; font-size: 1.2rem; color: var(--ink); }

/* dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent::after {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 7px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  opacity: 0.6; vertical-align: 2px;
}
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 190px; padding: 8px;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s; z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 0.92rem; color: var(--muted); }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; animation: twinkle 10s ease-in-out infinite;
  background:
    radial-gradient(720px 420px at 78% 12%, rgba(111, 168, 220, 0.10), transparent 62%),
    radial-gradient(560px 320px at 12% 88%, rgba(212, 175, 55, 0.09), transparent 62%),
    radial-gradient(1.2px 1.2px at 18% 22%, rgba(255,255,255,0.9), transparent 50%),
    radial-gradient(1px 1px at 42% 8%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1.4px 1.4px at 68% 18%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(1px 1px at 88% 30%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.2px 1.2px at 30% 40%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 55% 48%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.6px 1.6px at 75% 62%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.3px 1.3px at 48% 82%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 82% 88%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.2px 1.2px at 92% 55%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 6% 40%, rgba(255,255,255,0.4), transparent 50%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* agent constellation */
.constellation { width: 100%; max-width: 460px; height: auto; margin-left: auto; }
.constellation .const-label { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.constellation .nodes circle {
  animation: node-pulse 3.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.constellation .nodes circle:nth-child(2n) { animation-delay: 1.7s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* screenshot slot */
.preview { position: relative; padding: 8px; }
.preview-card {
  background: linear-gradient(180deg, var(--bg-elevated), #0e1426);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-left: auto;
}
.preview-shot { padding: 14px; }
.preview-shot img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.preview-card .label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.preview-card .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 20px; }
.preview-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.preview-row .name { font-weight: 600; }
.preview-row .meta { color: var(--muted); font-size: 0.82rem; }
.preview-row .pos { color: var(--accent); font-weight: 700; }
.preview-row .neg { color: var(--ink-soft); font-weight: 600; }
.preview-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; padding: 8px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
}

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 14px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.product-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 38px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-elevated), #0e1426);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card::before {
  content: ""; position: absolute; top: -1px; left: 30px; width: 36px; height: 10px;
  border-radius: 0 0 7px 7px; background: var(--grad); opacity: 0.85;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 55, 0.28);
  border-color: rgba(212, 175, 55, 0.4);
}
.product-card .p-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.product-card .p-desc { color: var(--muted); line-height: 1.6; }
.product-card .p-link { margin-top: auto; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

.tag {
  align-self: flex-start; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-personal { background: var(--accent-soft); color: var(--accent); }
.tag-business { background: var(--blue-soft); color: var(--blue); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elevated);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.feature:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-2px); }
.feature .f-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px;
}
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* CTA band — candlelight */
.cta-band {
  background: linear-gradient(135deg, #2a2110, #1a1a12 50%, #0e1424);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 24px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; animation: twinkle 10s ease-in-out infinite;
  background: radial-gradient(640px 280px at 82% 20%, rgba(212, 175, 55, 0.22), transparent 62%);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; max-width: 520px; }
.cta-band p { color: var(--muted); margin-top: 10px; max-width: 46ch; }
.cta-band > * { position: relative; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 16px 0; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 34s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 5px; height: 5px; margin-left: 34px; border-radius: 50%; background: var(--accent); opacity: 0.55; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.86rem; }

/* page hero */
.page-hero { padding: 72px 0 60px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; animation: twinkle 10s ease-in-out infinite;
  background:
    radial-gradient(680px 380px at 80% 10%, rgba(111, 168, 220, 0.09), transparent 60%),
    radial-gradient(520px 300px at 10% 90%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(1.2px 1.2px at 25% 25%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1.3px 1.3px at 82% 70%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 12% 70%, rgba(255,255,255,0.5), transparent 50%);
}
.page-hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06), transparent 62%);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .page-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .preview-card { margin-left: 0; max-width: none; }
  .constellation { margin-left: 0; max-width: 420px; }
  .split-grid { grid-template-columns: 1fr; }
  .features, .features--4 { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px 24px 22px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 1rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-item.has-dropdown { flex-direction: column; align-items: flex-start; }
  .nav-parent::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; min-width: 0; }
  .dropdown a { padding: 10px 0; }
  .cta-band { padding: 40px 28px; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.88rem; }
  .hero { padding: 46px 0 56px; }
  .page-hero { padding: 46px 0 40px; }
  .cursor-glow { display: none; }
}
@media (max-width: 560px) {
  .features, .features--4 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .nav-cta .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .product-card, .btn, .feature { transition: none; }
  .ticker-track { animation: none; }
  .constellation .nodes circle { animation: none; }
  .grad { animation: none; }
  .constellation g line { animation: none; stroke-dashoffset: 0; }
  .hero::before, .page-hero::before { animation: none; }
}

/* ---------- final polish: vellum grain + gold shimmer ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grad {
  background-size: 200% auto;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* constellation draw-in — agents writing the ledger */
.constellation g line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 1.4s ease-out forwards;
}
.constellation g line:nth-child(2) { animation-delay: 0.12s; }
.constellation g line:nth-child(3) { animation-delay: 0.24s; }
.constellation g line:nth-child(4) { animation-delay: 0.36s; }
.constellation g line:nth-child(5) { animation-delay: 0.48s; }
.constellation g line:nth-child(6) { animation-delay: 0.60s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes twinkle { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }

/* live ledger — the book writes itself */
.ledger {
  margin-top: 4px;
  width: 100%;
  max-width: 440px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.ledger-head {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.64rem;
  margin-bottom: 4px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: live-ping 1.9s ease-out infinite;
}
@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 165, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(79, 209, 165, 0); }
}
.ledger-lines { display: flex; flex-direction: column; }
.lline {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-top: 1px solid var(--line);
}
.lline .t { color: var(--muted); }
.lline .agent { color: var(--blue); font-weight: 600; }
.lline .task { color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lline .chip {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.chip.done { background: rgba(79, 209, 165, 0.14); color: var(--green); }
.chip.work { background: rgba(212, 175, 55, 0.16); color: var(--accent); }
.chip.queue { background: rgba(139, 147, 168, 0.14); color: var(--muted); }

/* ---------- Department agent pages ---------- */
.dept-hero { padding: 68px 0 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dept, var(--accent));
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
}
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 34px; }
.stat { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .n { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 600; color: var(--dept, var(--accent)); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 0.8rem; margin-top: 5px; }
.cap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cap { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .18s ease, transform .18s ease; }
.cap:hover { border-color: var(--dept, var(--accent)); transform: translateY(-3px); }
.cap h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 0.92rem; }
.cap .risk { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dept, var(--accent)); margin-top: 14px; }
.flow { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 22px; font-family: var(--font-mono); font-size: 0.76rem; }
.flow .node { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.flow .node.self { border-color: var(--dept, var(--accent)); color: var(--dept, var(--accent)); font-weight: 600; }
.flow .arrow { color: var(--muted); }
.safety-note { border-left: 2px solid var(--red); padding: 4px 0 4px 16px; color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
