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

:root {
  --green-glow: #5aff6e;
  --green-dim: #3bcc4d;
  --green-dark: #1a5c24;
  --green-subtle: #2aff4a15;
  --bg-primary: #050505;
  --bg-card: #0c0c0c;
  --bg-card-border: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #888;
  --text-dim: #555;
  --metallic: #9aa0a6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === BACKGROUND GRID === */
/* Gated to wider viewports — mobile skips the paint cost entirely. */
@media (min-width: 900px) {
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(90,255,110,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(90,255,110,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
  }
}

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* === NAV === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-card-border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 18px; color: var(--green-glow);
  text-decoration: none; letter-spacing: 1px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-glow); }
.btn-nav {
  background: var(--green-glow); color: #000; padding: 8px 20px;
  border-radius: 6px; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: all 0.2s; letter-spacing: 0.5px;
}
.btn-nav:hover { background: #7aff8a; box-shadow: 0 0 20px rgba(90,255,110,0.3); }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(90,255,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-logo-text {
  /* Mirrors the top-left nav wordmark: JetBrains Mono 700, green glow,
     1px letter-spacing. Just scaled up for hero and with a stronger
     shadow so the brand reads instantly at any viewport width. */
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 84px);
  color: var(--green-glow);
  letter-spacing: 1px;
  margin-bottom: 32px;
  text-shadow: 0 0 50px rgba(90,255,110,0.35), 0 0 100px rgba(90,255,110,0.15);
}
.beta-badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: #ffb340; background: rgba(255,179,64,0.08);
  border: 1px solid rgba(255,179,64,0.3);
  padding: 4px 12px; border-radius: 4px;
  margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px;
}
.hero h1 .accent { color: var(--green-glow); text-shadow: 0 0 30px rgba(90,255,110,0.3); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 48px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-glow); color: #000; padding: 14px 32px;
  border-radius: 8px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: all 0.2s; letter-spacing: 0.5px;
}
.btn-primary:hover { background: #7aff8a; box-shadow: 0 0 30px rgba(90,255,110,0.3); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary); padding: 14px 32px;
  border-radius: 8px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: all 0.2s;
  border: 1px solid var(--bg-card-border);
}
.btn-secondary:hover { border-color: var(--green-dim); color: var(--green-glow); }

/* === INSTALL BAR === */
.install-bar {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: 720px; margin: 48px auto 0;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.install-bar code {
  overflow-x: auto; white-space: nowrap;
  flex: 1; min-width: 0;
}
.install-bar:hover { border-color: var(--green-dim); box-shadow: 0 0 20px rgba(90,255,110,0.08); }
.install-bar code { color: var(--green-glow); }
.install-bar .copy-hint {
  color: var(--text-dim); font-size: 12px; font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.install-bar:hover .copy-hint { color: var(--text-secondary); }
.install-bar.copied code { color: #fff; }
.install-bar.copied .copy-hint { color: var(--green-glow); }

/* === SECTION === */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--green-glow); text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.section-desc {
  color: var(--text-secondary); font-size: 17px; max-width: 600px;
  margin-bottom: 56px; line-height: 1.7;
}

/* === PROBLEM SECTION === */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px; padding: 28px;
  transition: all 0.3s;
}
.problem-card:hover { border-color: #333; transform: translateY(-2px); }
.problem-card .protocol-name {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  color: var(--metallic); margin-bottom: 8px;
}
.problem-card .problem-text { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.problem-card .x-mark { color: #ff4444; font-weight: 700; margin-right: 6px; }

/* === COMPARISON TABLE === */
.table-wrap {
  overflow-x: auto; border-radius: 12px;
  border: 1px solid var(--bg-card-border);
}
table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; min-width: 700px;
}
thead { background: #0f0f0f; }
th {
  padding: 16px 20px; text-align: left; font-weight: 600;
  color: var(--text-secondary); font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--bg-card-border);
}
th:first-child { width: 220px; }
td {
  padding: 14px 20px; border-bottom: 1px solid #111;
  color: var(--text-secondary);
}
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text-primary); font-weight: 500; }
.yes { color: var(--green-glow); font-weight: 700; }
.no { color: #555; }
.ironmesh-col { background: rgba(90,255,110,0.04); }
th.ironmesh-col { color: var(--green-glow); }

/* === FEATURES === */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px; padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--green-dark); box-shadow: 0 0 30px rgba(90,255,110,0.05); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(90,255,110,0.08); border: 1px solid rgba(90,255,110,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 20px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* === ARCHITECTURE === */
.arch-block {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px; padding: 40px; overflow-x: auto;
}
.arch-block pre {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--green-glow); line-height: 1.7; white-space: pre;
}
.arch-block pre .stack-accent { color: var(--green-glow); font-weight: 700; }

/* === STACK CHART (replaces ASCII-art box) === */
.stack-chart {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.stack-layer {
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 16px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: var(--text-primary);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.stack-annot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: right;
  min-width: 220px;
  white-space: nowrap;
}
.stack-row-accent .stack-layer {
  border-color: var(--green-dim);
  color: var(--green-glow);
  font-weight: 700;
  box-shadow: 0 0 28px rgba(90,255,110,0.12) inset, 0 0 16px rgba(90,255,110,0.08);
}
.stack-row-accent .stack-annot { color: var(--green-glow); font-weight: 600; }
.stack-annot-ship { color: var(--green-dim); font-weight: 600; }
@media (max-width: 640px) {
  .stack-row { grid-template-columns: 1fr; gap: 6px; }
  .stack-annot { text-align: left; min-width: 0; padding: 0 4px; }
}

/* === STACK NOTES === */
.stack-notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 32px;
}
.stack-note {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px; padding: 24px;
}
.stack-note-q {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--green-glow); margin-bottom: 10px; font-weight: 600;
}
.stack-note-a { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.stack-note-a em { color: var(--text-primary); font-style: normal; font-weight: 600; }

/* === USE CASES === */
.usecases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.usecase {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px; padding: 28px;
}
.usecase h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.usecase p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* === STATS === */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 80px;
}
.stat {
  text-align: center; padding: 32px 16px;
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 12px;
}
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; font-weight: 700; color: var(--green-glow);
  text-shadow: 0 0 20px rgba(90,255,110,0.2);
}
.stat-label { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.stat-link { text-decoration: none; color: inherit; transition: all 0.2s; }
.stat-link:hover { border-color: var(--green-dim); box-shadow: 0 0 22px rgba(90,255,110,0.08); transform: translateY(-1px); }

/* === DASHBOARD MEDIA (video or image fallback) === */
.dashboard-media {
  width: 100%; max-width: 1100px; height: auto; display: block; margin: 0 auto;
  border: 1px solid var(--bg-card-border); border-radius: 8px;
  background: var(--bg-card);
}

/* === CTA === */
.cta-section {
  text-align: center; padding: 120px 24px;
  background: radial-gradient(ellipse at center, rgba(90,255,110,0.04) 0%, transparent 60%);
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; margin-bottom: 16px;
}
.cta-section p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--bg-card-border); padding: 40px 0;
  position: relative; z-index: 1;
}
footer .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--green-glow); }
.footer-links { display: flex; gap: 24px; }
.footer-copy { color: var(--text-dim); font-size: 13px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 100px 24px 60px; }
  .hero-logo { width: 150px; }
  .install-bar { flex-direction: column; gap: 8px; text-align: center; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* === REDUCED MOTION — accessibility === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .status-dot.online { animation: none !important; }
  .demo-body .cursor { animation: none !important; background: transparent; }
}

/* === A11Y — visually-hidden labels + universal focus ring === */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--green-glow);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Keep existing input focus treatment, but make the ring show for keyboard users */
.docs-search input:focus-visible {
  outline: 2px solid var(--green-glow);
  outline-offset: 2px;
}

/* === TRUST STRIP under hero install bar === */
.trust-strip {
  text-align: center;
  margin: 20px auto 0;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
@media (max-width: 480px) { .trust-strip { font-size: 11px; letter-spacing: 0.8px; } }

/* === PERSONAS (entry cards) === */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: all 0.25s;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.persona-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(90,255,110,0.08);
}
.persona-card .persona-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--green-glow);
  text-transform: uppercase;
  font-weight: 600;
}
.persona-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.persona-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Link row at the bottom of each card */
.persona-links {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.persona-next {
  font-size: 12px;
  color: var(--green-dim);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.persona-next:hover { color: var(--green-glow); }
.persona-alt {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
a.persona-alt {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(90,255,110,0.35);
}
a.persona-alt:hover {
  color: var(--green-glow);
  text-decoration-color: var(--green-glow);
}
.persona-alt code {
  color: var(--green-dim);
  background: rgba(90,255,110,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
  font-size: 11px;
}

/* === LIVE STATUS WIDGET === */
.status-widget {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 8px transparent;
  transition: all 0.3s;
}
.status-dot.online { background: var(--green-glow); box-shadow: 0 0 12px rgba(90,255,110,0.6); }
/* Pulse via an overlay — transform/opacity only, no per-frame repaint */
.status-dot.online::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-glow);
  animation: status-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
.status-dot.degraded { background: #ffb347; box-shadow: 0 0 10px rgba(255,179,71,0.5); }
.status-dot.offline { background: #555; }
@keyframes status-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%      { transform: scale(2.2); opacity: 0;   }
}
.status-main { display: flex; flex-direction: column; gap: 4px; }
.status-title { color: var(--text-primary); font-weight: 600; }
.status-sub   { color: var(--text-secondary); font-size: 12px; }
.status-stats {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--text-secondary);
}
.status-stats strong { color: var(--green-glow); font-weight: 600; }
@media (max-width: 640px) {
  .status-widget { grid-template-columns: auto 1fr; }
  .status-stats { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
}

/* === ASCIINEMA-STYLE DEMO === */
.demo-wrap {
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(90,255,110,0.06);
}
.demo-bar {
  background: #0e0e0e;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--bg-card-border);
}
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-bar .dot-red    { background: #ff5f56; }
.demo-bar .dot-yellow { background: #ffbd2e; }
.demo-bar .dot-green  { background: #27c93f; }
.demo-bar .demo-title {
  margin-left: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}
.demo-bar .demo-controls {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.demo-bar button {
  background: transparent;
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.demo-bar button:hover { color: var(--green-glow); border-color: var(--green-dim); }
.demo-body {
  padding: 16px 20px;
  min-height: 280px;
  max-height: 440px;
  overflow: auto;
  color: #d8d8d8;
  white-space: pre-wrap;
  word-break: break-word;
}
.demo-body .prompt { color: var(--green-glow); }
.demo-body .cmd    { color: #e8e8e8; }
.demo-body .out    { color: var(--text-secondary); }
.demo-body .ok     { color: var(--green-glow); }
.demo-body .warn   { color: #ffbd2e; }
.demo-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green-glow);
  vertical-align: middle;
  animation: demo-blink 1s step-end infinite;
}
@keyframes demo-blink { 50% { opacity: 0; } }

/* === INTERACTIVE HANDSHAKE === */
.handshake-svg-wrap {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 28px;
  margin-top: 32px;
  overflow-x: auto;
}
.handshake-svg { display: block; width: 100%; height: auto; min-width: 560px; }
.handshake-stage {
  cursor: pointer;
  transition: opacity 0.2s;
}
.handshake-stage:hover { opacity: 0.85; }
.handshake-stage text { font-family: 'JetBrains Mono', monospace; font-size: 12px; fill: var(--text-primary); pointer-events: none; }
.handshake-stage .stage-arrow { stroke: var(--green-dim); stroke-width: 1.5; fill: none; }
.handshake-stage .stage-bg { fill: transparent; }
.handshake-stage:hover .stage-bg,
.handshake-stage.active .stage-bg { fill: rgba(90,255,110,0.06); }
.handshake-stage.active text { fill: var(--green-glow); }
.handshake-stage.active .stage-arrow { stroke: var(--green-glow); stroke-width: 2; }
.handshake-detail {
  margin-top: 20px;
  padding: 20px 22px;
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  display: none;
}
.handshake-detail.visible { display: block; }
.handshake-detail h4 { color: var(--green-glow); margin-bottom: 10px; font-size: 14px; }
.handshake-detail code { color: #e8e8e8; }
.handshake-legend {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

/* === TIMELINE === */
.timeline-wrap {
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.timeline-wrap::-webkit-scrollbar { height: 6px; }
.timeline-wrap::-webkit-scrollbar-track { background: var(--bg-card-border); border-radius: 3px; }
.timeline-wrap::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }
.timeline {
  display: flex;
  gap: 20px;
  padding: 20px 4px 4px;
  min-width: min-content;
}
.timeline-node {
  flex: 0 0 260px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  transition: all 0.2s;
}
.timeline-node:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.timeline-node.current {
  border-color: var(--green-glow);
  box-shadow: 0 0 24px rgba(90,255,110,0.12);
}
.timeline-node .tl-ver {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--green-glow);
  font-size: 15px;
}
.timeline-node .tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.timeline-node .tl-headline {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.45;
}
.timeline-node .tl-desc {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.55;
}
.timeline-node .tl-current-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--green-glow);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* === COMPARE TABS === */
.compare-tabs {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-card-border);
  overflow-x: auto;
}
.compare-tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.compare-tabs button:hover { color: var(--text-primary); }
.compare-tabs button.active {
  color: var(--green-glow);
  border-bottom-color: var(--green-glow);
}
.compare-panel { display: none; }
.compare-panel.active { display: block; }

/* === SYSTEM DEPLOYMENT DIAGRAM === */
.sysdiag-wrap {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 28px;
  margin-top: 32px;
  overflow-x: auto;
}
.sysdiag { display: block; width: 100%; height: auto; min-width: 640px; max-width: 980px; margin: 0 auto; }
.sysdiag text { font-family: 'JetBrains Mono', monospace; fill: var(--text-primary); }
.sysdiag .node-box { fill: #000; stroke: var(--bg-card-border); stroke-width: 1; }
.sysdiag .node-box-active { stroke: var(--green-dim); stroke-width: 1.5; }
.sysdiag .node-label { font-size: 14px; font-weight: 700; fill: var(--green-glow); }
.sysdiag .node-role  { font-size: 11px; fill: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; }
.sysdiag .node-item  { font-size: 12px; fill: var(--text-primary); }
.sysdiag .edge-line  { stroke: var(--green-dim); stroke-width: 2; fill: none; }
.sysdiag .edge-lora  { stroke: var(--green-dim); stroke-width: 2; stroke-dasharray: 6,4; fill: none; }
.sysdiag .edge-label { font-size: 11px; fill: var(--green-glow); font-weight: 600; }
.sysdiag .edge-sub   { font-size: 10px; fill: var(--text-secondary); }
.sysdiag-legend {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.sysdiag-legend .swatch {
  display: inline-block;
  width: 24px;
  height: 2px;
  vertical-align: middle;
  margin-right: 6px;
  background: var(--green-dim);
}
.sysdiag-legend .swatch.dashed {
  background: repeating-linear-gradient(90deg, var(--green-dim) 0 4px, transparent 4px 7px);
}

/* === FAQ (native <details>) === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--green-dim); }
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.15s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  color: var(--green-glow);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  width: 16px;
  transition: transform 0.2s;
}
.faq-item[open] summary::before { content: '−'; }
.faq-item summary:hover { color: var(--green-glow); }
.faq-answer {
  padding: 0 22px 18px 52px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.faq-answer code {
  font-family: 'JetBrains Mono', monospace;
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-radius: 4px;
  padding: 2px 6px;
  color: #d8d8d8;
  font-size: 0.9em;
}
.faq-answer a { color: var(--green-glow); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* === BENCHMARKS === */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.bench-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bench-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.bench-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-glow);
  line-height: 1;
  letter-spacing: -0.5px;
}
.bench-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.bench-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-left: 3px solid var(--green-glow);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.7;
}
.bench-note strong { color: var(--text-primary); font-weight: 600; }

/* === STATUS WIDGET — stats expansion === */
.status-stats strong { color: var(--green-glow); font-weight: 600; }
.status-stats .stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.status-stats .stat-chip .stat-num {
  color: var(--green-glow);
  font-weight: 700;
}

/* === DOCS SEARCH === */
.docs-search {
  position: relative;
  max-width: 560px;
  margin: 28px auto 0;
}
.docs-search input {
  width: 100%;
  background: #000;
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 14px 18px 14px 46px;
  transition: border-color 0.15s;
}
.docs-search input:focus {
  outline: none;
  border-color: var(--green-dim);
  box-shadow: 0 0 0 3px rgba(90,255,110,0.08);
}
.docs-search input::placeholder { color: var(--text-dim); }
.docs-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.docs-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  max-height: 360px;
  overflow: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.docs-search-results.visible { display: block; }
.docs-search-results a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-card-border);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 13px;
  transition: background 0.15s;
}
.docs-search-results a:last-child { border-bottom: 0; }
.docs-search-results a:hover,
.docs-search-results a.active {
  background: rgba(90,255,110,0.06);
  color: var(--green-glow);
}
.docs-search-results .result-title { font-weight: 600; }
.docs-search-results .result-snippet {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
}
.docs-search-results .result-snippet mark {
  background: transparent;
  color: var(--green-glow);
  font-weight: 700;
}
.docs-search-results .no-results {
  padding: 20px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}
