/* ==========================================================================
   LionFS — components.css (part 1: buttons, nav, hero, terminal, ticker,
   honesty banner, pillars, bento grid)
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn i { font-size: 17px; line-height: 1; flex: none; }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-bright);
  box-shadow: var(--shadow-2);
}

.btn-ghost {
  background: var(--bg-2);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: var(--r-sm); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.btn-icon:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.btn-icon i { font-size: 18px; line-height: 1; }

/* GitHub nav button */
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 0.87rem;
  transition: all var(--dur) var(--ease);
}
.nav-gh:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.nav-gh i { font-size: 16px; line-height: 1; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 8px rgba(245, 165, 36, 0.35)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-ver {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-links a.active { color: var(--accent-bright); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--amber-300));
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Theme toggle */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { transition: transform 0.45s var(--ease-out), opacity var(--dur); }
html[data-theme="dark"]  .theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.theme-toggle:hover .icon-moon, .theme-toggle:hover .icon-sun { transform: rotate(18deg); }

/* Hamburger */
.hamburger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.hamburger i { font-size: 16px; line-height: 1; transition: transform 0.2s var(--ease), opacity 0.2s; }
.hamburger .icon-menu-close { display: none; position: absolute; }
.hamburger[aria-expanded="true"] .icon-menu-open { display: none; }
.hamburger[aria-expanded="true"] .icon-menu-close { display: block; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(4, 5, 8, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 1100;
  width: min(320px, 86vw);
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(102%);
  transition: transform 0.38s var(--ease-out);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nav-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer nav a {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--dur), color var(--dur);
}
.nav-drawer nav a:hover, .nav-drawer nav a.active { background: var(--accent-soft); color: var(--accent-bright); }
.nav-drawer nav a .k {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3);
}
.nav-drawer-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 96px));
  padding-bottom: clamp(56px, 8vh, 92px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.7);
  animation: pulse-dot 2.2s infinite;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-lead strong { color: var(--text); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: clamp(18px, 2.6vw, 30px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}
.stat { display: grid; gap: 3px; }
.stat .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex; align-items: baseline; gap: 3px;
  white-space: nowrap;
}
.stat .v .u { font-size: 0.72em; color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.stat .l { font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }

/* Floating decorative blocks (filesystem motifs) */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; }
.orb-a { width: 480px; height: 480px; right: -140px; top: -180px; background: rgba(245, 165, 36, 0.16); }
.orb-b { width: 380px; height: 380px; left: -160px; top: 200px; background: rgba(56, 214, 245, 0.08); }

.hero-blocks { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; }
.fblock {
  position: absolute;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--bg-2);
  width: 34px; height: 34px;
}
.fblock::after {
  content: attr(data-l);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-3);
}
.fblock.fb1 { left: 6%;  top: 24%;  animation: floaty 9s ease-in-out infinite; }
.fblock.fb2 { left: 10%; top: 66%;  animation: floaty 11s ease-in-out infinite 1.2s; width: 26px; height: 26px; }
.fblock.fb3 { right: 8%; bottom: 18%; animation: floaty 10s ease-in-out infinite 0.6s; }
.fblock.fb4 { right: 14%; bottom: 32%; animation: floaty 12s ease-in-out infinite 1.8s; width: 44px; height: 26px; }

/* ---------- Terminal ---------- */
.terminal-wrap { position: relative; }
.terminal {
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop), var(--glow-amber);
  overflow: hidden;
}
.term-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.term-dots { display: flex; gap: 7px; }
.term-dots span { width: 11px; height: 11px; border-radius: 50%; }
.term-dots span:nth-child(1) { background: #f47174; }
.term-dots span:nth-child(2) { background: #f5c542; }
.term-dots span:nth-child(3) { background: #3ddc97; }
.term-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-inline: auto;
  letter-spacing: 0.04em;
}
.term-replay {
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.66rem;
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--dur);
}
.term-replay:hover { color: var(--accent-bright); border-color: var(--line); }
.term-replay i { font-size: 12px; line-height: 1; }

.term-body {
  padding: 18px 20px 20px;
  font-family: var(--font-mono);
  font-size: 0.815rem;
  line-height: 1.85;
  min-height: 300px;
}
.tline { display: block; white-space: pre-wrap; word-break: break-word; }
.tline .p { color: var(--accent); font-weight: 600; }
.tline .p .u { color: var(--cyan); }
.tline .c { color: var(--text-3); }
.tline .o { color: var(--text-2); }
.tline .hl { color: var(--ok); }
.tline .st { color: var(--amber-300); }
.tcursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}

.term-chip {
  position: absolute;
  right: -14px; bottom: -16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-pop);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-2);
  animation: floaty 7s ease-in-out infinite;
}
.term-chip b { color: var(--accent-bright); font-weight: 600; }
.term-chip i { font-size: 15px; line-height: 1; color: var(--ok); }

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-1);
  padding-block: 13px;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg-1), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); }
.ticker-track {
  display: flex;
  gap: 38px;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
  padding-left: 38px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 38px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.ticker-item i {
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  display: inline-block;
  opacity: 0.7;
}

/* ---------- Honesty banner ---------- */
.honesty {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: linear-gradient(120deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.honesty-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  flex: none;
}
.honesty-icon i { font-size: 26px; line-height: 1; }
.honesty h3 { font-size: 1.05rem; margin-bottom: 5px; }
.honesty p { color: var(--text-2); font-size: 0.92rem; line-height: 1.62; }
.honesty p strong { color: var(--text); }
.honesty-chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-2);
  white-space: nowrap;
}
.chip i { font-size: 12px; line-height: 1; }
.chip.good { color: var(--ok); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); }
.chip.warn { color: var(--warn); border-color: rgba(245, 197, 66, 0.3); background: rgba(245, 197, 66, 0.07); }
.chip.acc  { color: var(--accent-bright); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.pillar {
  grid-column: span 2;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), transparent 70%);
  opacity: 0; transition: opacity var(--dur);
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2);
}
.pillar:hover::before { opacity: 1; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; }
.pillar-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
}
.pillar-icon i { font-size: 23px; line-height: 1; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--line-2);
  -webkit-text-stroke: 1px var(--text-3);
  letter-spacing: 0.02em;
}
.pillar h3 { font-size: 1.14rem; }
.pillar .tagline { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }
.pillar ul { display: grid; gap: 8px; margin-top: 2px; }
.pillar li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.55;
}
.pillar li::before {
  content: "";
  position: absolute; left: 2px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.85;
}
.pillar .where {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  border-top: 1px dashed var(--line);
}
.pillar .where b { color: var(--accent); font-weight: 600; }

/* ---------- Bento capability grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2);
}
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.tile.span-8 { grid-column: span 8; }

.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.tile-icon i { font-size: 19px; line-height: 1; }
.tile h3 { font-size: 1.02rem; letter-spacing: -0.01em; }
.tile .ver {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tile p { color: var(--text-2); font-size: 0.87rem; line-height: 1.6; }
.tile .stat {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.tile .stat b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.02em;
}
.tile .stat span { font-size: 0.76rem; color: var(--text-3); }

/* Big tile (WAL v2 hero tile) */
.tile.feature { background: linear-gradient(135deg, var(--bg-2) 55%, rgba(245, 165, 36, 0.07)); border-color: var(--accent-line); }
.tile.feature .tile-icon { background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); color: var(--accent-contrast); border: none; }
.tile.graph::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 72px;
  background:
    repeating-linear-gradient(90deg, var(--accent-soft) 0 14px, transparent 14px 24px);
  mask-image: linear-gradient(to top, #000 8%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 92%);
  pointer-events: none;
}

/* ==========================================================================
   LionFS — components.css (part 2: architecture, write path, performance,
   comparison, releases, guardian, tools, quickstart, docs, CTA, footer)
   ========================================================================== */

/* ---------- Architecture explorer ---------- */
.arch-wrap { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 26px; align-items: start; }

.arch-side { display: flex; flex-direction: column; gap: 10px; }
.arch-oob {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 9px 14px;
}
.arch-oob i { font-size: 14px; line-height: 1; color: var(--cyan); flex: none; }
.arch-oob b { color: var(--text-2); font-weight: 600; }

.arch-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.arch-layer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  transition: border-color var(--dur), background var(--dur), transform var(--dur) var(--ease);
  cursor: pointer;
  width: 100%;
  color: var(--text);
}
.arch-layer:hover { border-color: var(--line-2); transform: translateX(4px); }
.arch-layer .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  width: 40px; height: 34px;
  display: grid; place-items: center;
  transition: all var(--dur);
}
.arch-layer .name { font-weight: 600; font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arch-layer .name small { font-weight: 400; color: var(--text-3); font-size: 0.76rem; flex-basis: 100%; }
.arch-layer .chev { color: var(--text-3); transition: transform var(--dur); }
.arch-layer .chev i { font-size: 15px; line-height: 1; }
.arch-layer[aria-selected="true"] {
  border-color: var(--accent-line);
  background: linear-gradient(100deg, var(--accent-soft), var(--bg-2) 60%);
}
.arch-layer[aria-selected="true"] .idx {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.arch-layer[aria-selected="true"] .chev { color: var(--accent); transform: translateX(2px); }
.arch-layer[aria-selected="true"] .name small { color: var(--text-2); }

.arch-flow {
  display: flex; justify-content: center;
  color: var(--text-3);
  margin: -2px 0;
}
.arch-flow i { font-size: 16px; line-height: 1; opacity: 0.7; }

/* Detail panel */
.arch-detail {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px;
  min-height: 320px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px;
}
.arch-detail::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--amber-300), transparent);
}
.arch-detail .ad-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.arch-detail h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.arch-detail .ad-sub { color: var(--text-2); line-height: 1.68; font-size: 0.95rem; }
.arch-detail .ad-sub strong { color: var(--text); }
.arch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all var(--dur);
}
.arch-chip:hover { border-color: var(--accent-line); color: var(--accent-bright); transform: translateY(-1px); }
.arch-where {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.arch-where i { font-size: 14px; line-height: 1; color: var(--accent); flex: none; }
.arch-where b { color: var(--accent-bright); font-weight: 600; }

/* ---------- Write path (journey of a write) ---------- */
.wpath { position: relative; max-width: 860px; margin-inline: auto; }
.wpath-rail {
  position: absolute;
  left: 23px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-line), var(--line) 30%, var(--line) 78%, rgba(244, 113, 116, 0.5));
}
.wstep {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding-bottom: 26px;
}
.wstep:last-child { padding-bottom: 0; }
.wstep .node {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--text-2);
  z-index: 1;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 0 0 6px var(--bg-0);
}
.wstep .node i { font-size: 21px; line-height: 1; }
.wstep .body {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.wstep:hover .body { border-color: var(--accent-line); transform: translateX(4px); }
.wstep:hover .node { border-color: var(--accent-line); color: var(--accent); }
.wstep h3 { font-size: 1rem; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wstep p { color: var(--text-2); font-size: 0.88rem; line-height: 1.62; }
.wstep .tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
}
.wstep .tag.warn { background: rgba(245, 197, 66, 0.08); color: var(--warn); border-color: rgba(245, 197, 66, 0.3); }
.wstep .tag.bad  { background: rgba(244, 113, 116, 0.08); color: var(--bad); border-color: rgba(244, 113, 116, 0.32); }

.wstep.route .body { border-left: 3px solid var(--accent); }
.wstep.routes { grid-template-columns: 48px 1fr; }
.route-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.route-card {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  background: var(--bg-inset);
}
.route-card h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.route-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; }
.wstep.crash .node { border-color: rgba(244, 113, 116, 0.5); color: var(--bad); }
.wstep.crash .body { border-color: rgba(244, 113, 116, 0.35); }
.wstep.finale .node {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border: none;
  color: var(--accent-contrast);
}
.wstep.finale .body { border-color: var(--accent-line); background: linear-gradient(120deg, var(--bg-2), rgba(245, 165, 36, 0.06)); }

/* ---------- Performance ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.kpi:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.kpi .delta {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ok);
  background: rgba(61, 220, 151, 0.09);
  border: 1px solid rgba(61, 220, 151, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.kpi .delta i { font-size: 11px; line-height: 1; }
.kpi .val {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  display: flex; align-items: baseline; gap: 5px;
  margin-bottom: 8px;
}
.kpi .val .u { font-family: var(--font-mono); font-size: 0.55em; color: var(--accent); font-weight: 600; }
.kpi .lbl { font-size: 0.8rem; color: var(--text-3); line-height: 1.45; }

/* Tabs */
.tabs { display: inline-flex; gap: 6px; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--accent-contrast);
  box-shadow: 0 6px 18px -8px rgba(245, 140, 14, 0.7);
}

.bench-panel { display: none; }
.bench-panel.active { display: block; animation: fade-up 0.4s var(--ease-out); }

.bench-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
}
.bench-legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.bench-legend .sw { width: 22px; height: 10px; border-radius: 4px; }
.sw-38  { background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); }
.sw-37  { background: var(--bg-3); border: 1px solid var(--line-2); }
.sw-ext { background: linear-gradient(90deg, var(--cyan), rgba(56, 214, 245, 0.55)); }

.bench-row {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px 16px;
  margin-bottom: 12px;
}
.bench-row .br-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.bench-row .wl { font-weight: 600; font-size: 0.93rem; }
.bench-row .note { font-size: 0.76rem; color: var(--text-3); max-width: 560px; }
.bar-cell { display: grid; grid-template-columns: 68px minmax(0, 1fr) 84px; align-items: center; gap: 12px; margin-top: 8px; }
.bar-cell .who {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.bar-cell .who.on { color: var(--accent-bright); }
.bar-track {
  height: 22px;
  background: var(--bg-inset);
  border-radius: 7px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 6px 0 0 6px;
  transition: width 1.1s var(--ease-out);
  position: relative;
}
.bar-fill.v38  { background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); box-shadow: 0 0 18px rgba(245, 165, 36, 0.25); }
.bar-fill.v37  { background: var(--bg-3); border-right: 1px solid var(--line-2); }
.bar-fill.vext { background: linear-gradient(90deg, var(--cyan), rgba(56, 214, 245, 0.5)); }
.bar-cell .bval {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
}
.bar-cell .bval em { font-style: normal; font-weight: 400; font-size: 0.62rem; color: var(--text-3); margin-left: 2px; }
.bar-cell .bval.best { color: var(--accent-bright); }
.bar-cell .bval .gain {
  font-size: 0.62rem;
  color: var(--ok);
  margin-left: 6px;
}

.bench-callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 22px;
}
.bench-callout i { font-size: 18px; line-height: 1; color: var(--warn); flex: none; margin-top: 2px; }
.bench-callout p { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }
.bench-callout code { color: var(--accent-bright); }

/* Ops ext4 cannot do */
.cantdo { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cantdo .cd {
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
}
.cantdo .cd b { font-family: var(--font-display); font-size: 1.3rem; color: var(--accent-bright); display: block; margin-bottom: 3px; }
.cantdo .cd span { font-size: 0.76rem; color: var(--text-2); }

/* ---------- Comparison matrix ---------- */
.cmp-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fchip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: var(--bg-2);
  transition: all var(--dur);
}
.fchip:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.fchip[aria-selected="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-bright); }

.cmp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  scrollbar-width: thin;
}
table.cmp { width: 100%; min-width: 1060px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; }
.cmp thead th {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.cmp thead th.nowrap { white-space: nowrap; }
.cmp thead th.lion {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-inline: 1px solid var(--accent-line);
}
.cmp tbody tr { border-bottom: 1px solid var(--line); transition: background 0.15s; }
.cmp tbody tr:hover { background: rgba(237, 239, 245, 0.025); }
html[data-theme="light"] .cmp tbody tr:hover { background: rgba(20, 24, 36, 0.025); }
.cmp tbody tr.group-row td {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-1);
  padding-block: 8px;
}
.cmp td.feat {
  font-weight: 600;
  font-size: 0.86rem;
  position: sticky;
  left: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--line-2);
  min-width: 210px;
  max-width: 300px;
  z-index: 2;
}
.cmp tbody tr:hover td.feat { background: var(--bg-3); }
.cmp th.feat-h { min-width: 210px; position: sticky; left: 0; z-index: 3; background: var(--bg-1); }
.cmp td.lion {
  background: rgba(245, 165, 36, 0.06);
  border-inline: 1px solid rgba(245, 165, 36, 0.16);
}
.cmp td .v { font-size: 0.78rem; color: var(--text-2); line-height: 1.45; display: flex; align-items: flex-start; gap: 7px; }
.cmp td .v.y { color: var(--ok); font-weight: 500; }
.cmp td .v.n { color: var(--text-3); }
.cmp td .v i { font-size: 14px; line-height: 1; flex: none; margin-top: 2px; }
.cmp td .v .yes { color: var(--ok); }
.cmp td .v .no  { color: var(--text-3); }
.cmp-note { margin-top: 18px; }
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-style: italic;
  max-width: 720px;
  line-height: 1.65;
}
.pull-quote b { color: var(--text); font-style: normal; }

/* ---------- Releases timeline ---------- */
.timeline { position: relative; max-width: 800px; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--line), var(--accent-line) 85%, var(--accent));
}
.rel { position: relative; padding-left: 44px; padding-bottom: 34px; }
.rel:last-child { padding-bottom: 0; }
.rel .dot {
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--text-3);
  z-index: 1;
}
.rel.minor .dot { border-color: var(--text-3); }
.rel.major .dot { border-color: var(--accent); background: var(--accent-soft); }
.rel.current .dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 18px rgba(245, 165, 36, 0.5);
}
.rel-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.rel-card:hover { border-color: var(--accent-line); transform: translateX(4px); }
.rel.current .rel-card { border-color: var(--accent-line); background: linear-gradient(120deg, var(--bg-2), rgba(245, 165, 36, 0.05)); }
.rel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rel-ver {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.rel.current .rel-ver { color: var(--accent-bright); }
.rel-name { color: var(--text-2); font-size: 0.88rem; font-weight: 500; }
.rel-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border-radius: 999px;
  padding: 4px 12px;
  text-transform: uppercase;
}
.rel-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rel-tests {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.rel-tests b { color: var(--ok); font-weight: 600; }
.rel-bar {
  height: 6px;
  width: 120px;
  background: var(--bg-inset);
  border-radius: 4px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.rel-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--amber-300));
  border-radius: 4px;
  transition: width 1s var(--ease-out) 0.15s;
}
.rel-card p { color: var(--text-2); font-size: 0.87rem; line-height: 1.6; }
.rel-card .hi { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.rel-card .hi span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.rel.current .rel-card .hi span { border-color: var(--accent-line); color: var(--accent-bright); }

/* ---------- Guardian ---------- */
.guardian-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(30px, 4vw, 56px); align-items: center; }
.radar {
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(circle, transparent 59%, var(--line) 60%, transparent 61%),
    radial-gradient(circle, transparent 29%, var(--line) 30%, transparent 31%),
    repeating-conic-gradient(var(--line) 0 0.6deg, transparent 0.6deg 30deg),
    radial-gradient(circle at 50% 50%, rgba(245, 165, 36, 0.06), transparent 65%);
}
.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 165, 36, 0.35), transparent 70deg, transparent 360deg);
  animation: radar-sweep 4.5s linear infinite;
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
.radar .blip {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 165, 36, 0.8);
  animation: blip-pulse 3.2s ease-out infinite;
}
.radar .blip.c { background: var(--cyan); box-shadow: 0 0 10px rgba(56, 214, 245, 0.8); }
.radar .core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  z-index: 1;
}
.radar .core i { font-size: 30px; line-height: 1; }
.radar-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 16px;
  letter-spacing: 0.08em;
}

.g-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 12px;
  transition: border-color var(--dur), transform var(--dur) var(--ease);
}
.g-card:hover { border-color: var(--accent-line); transform: translateX(4px); }
.g-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
  flex: none;
}
.g-icon i { font-size: 20px; line-height: 1; }
.g-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.g-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.58; }
.g-card p b { color: var(--ok); font-weight: 600; }

/* ---------- Tools ---------- */
.tools-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.search-box i { font-size: 16px; line-height: 1; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }

.tools-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.tool {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 17px 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.tool:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.tool .cmd {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-bright);
  display: flex; align-items: center; gap: 8px;
}
.tool .cmd::before { content: "$"; color: var(--text-3); font-weight: 400; }
.tool p { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.tool .tcat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
}

.tools-cloud { border-top: 1px dashed var(--line); padding-top: 22px; }
.tools-cloud .cl-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.cloud span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  transition: all 0.2s;
}
.cloud span:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.no-results {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  padding: 30px 0;
  display: none;
}

/* ---------- Quickstart ---------- */
.qs-steps { max-width: 860px; margin-inline: auto; counter-reset: qs; }
.qstep {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position: relative;
}
.qstep::before {
  content: "";
  position: absolute;
  left: 26px; top: 54px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.qstep:last-child::before { display: none; }
.qstep .n {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--accent-line);
  background: var(--bg-2);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid; place-items: center;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-0);
}
.qstep .qbody h3 { font-size: 1.12rem; margin-bottom: 6px; }
.qstep .qbody > p { color: var(--text-2); font-size: 0.9rem; margin-bottom: 14px; line-height: 1.62; max-width: 640px; }
.qstep .qbody > p code { color: var(--accent-bright); }

.codeblock {
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 720px;
}
.cb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.cb-lang {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--dur);
}
.copy-btn i { font-size: 13px; line-height: 1; }
.copy-btn:hover { color: var(--accent-bright); border-color: var(--line-2); background: var(--bg-inset); }
.copy-btn.copied { color: var(--ok); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.08); }
.copy-btn .t-copy { display: inline; }
.copy-btn .t-done { display: none; }
.copy-btn.copied .t-copy { display: none; }
.copy-btn.copied .t-done { display: inline; }

.codeblock pre {
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.75;
  font-family: var(--font-mono);
  color: var(--text-2);
}
.codeblock .ln { display: block; }
/* simple bash token colors */
.tk-cmd   { color: var(--accent-bright); font-weight: 600; }
.tk-flag  { color: var(--cyan); }
.tk-str   { color: #a6da95; }
.tk-num   { color: #f5c542; }
.tk-com   { color: var(--text-3); font-style: italic; }
.tk-path  { color: #8bd5ca; }
.tk-pipe  { color: var(--text-3); }

/* ---------- Docs cards ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.doc-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
  position: relative;
}
.doc-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-2); }
.doc-card .d-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid; place-items: center;
  color: var(--accent);
}
.doc-card .d-icon i { font-size: 20px; line-height: 1; }
.doc-card h3 { font-size: 1.02rem; }
.doc-card p { color: var(--text-2); font-size: 0.84rem; line-height: 1.58; flex: 1; }
.doc-card .d-path {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.doc-card .d-path b { color: var(--accent); font-weight: 600; }
.doc-card .d-arrow {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--text-3);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--dur) var(--ease);
}
.doc-card:hover .d-arrow { opacity: 1; transform: none; color: var(--accent); }
.doc-card .d-arrow i { font-size: 16px; line-height: 1; }

/* ---------- Final CTA ---------- */
.cta-box {
  position: relative;
  text-align: center;
  border-radius: var(--r-xl);
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(700px 300px at 50% -80px, rgba(245, 165, 36, 0.18), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(520px 280px at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(520px 280px at 50% 0%, #000, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.cta-box .cta-cmd {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--bg-inset);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 12px 20px;
  margin-bottom: 28px;
}
.cta-box .cta-cmd .p { color: var(--accent); font-weight: 600; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: clamp(48px, 7vh, 72px) 0 0;
  margin-top: var(--section-pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
}
.footer-brand p {
  color: var(--text-2);
  font-size: 0.87rem;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: var(--text-2);
  font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color var(--dur);
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-col a i { font-size: 13px; line-height: 1; opacity: 0; transform: translateX(-4px); transition: all var(--dur); }
.footer-col a:hover i { opacity: 1; transform: none; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.76rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  line-height: 1.7;
}
.footer-bottom .right { text-align: right; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: all 0.35s var(--ease-out);
  box-shadow: var(--shadow-2);
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.back-to-top i { font-size: 18px; line-height: 1; }
