/* ==========================================================================
   LetsTestTools.dev — Industrial Design System
   Aesthetic: Technical precision, engineering blueprint, tactile systems UI.
   Zero generic AI slop.
   ========================================================================== */

:root {
  /* Surface colors */
  --bg-base: #07090e;
  --bg-elevated: #0c1017;
  --bg-panel: #111722;
  --bg-card: #151d2c;
  --bg-card-hover: #192336;
  
  /* Borders */
  --border-hairline: #1e293b;
  --border-subtle: #27354d;
  --border-accent: #334566;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Text */
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  
  /* Semantic Accents */
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);
  
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);
  
  --sky: #38bdf8;
  --sky-dim: rgba(56, 189, 248, 0.12);
  --sky-border: rgba(56, 189, 248, 0.3);
  
  /* Layout */
  --max-w: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Subtle engineering grid paper background */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--sky);
}

/* Top Announcement Bar */
.announcement-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-hairline);
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-mono);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.announcement-link {
  color: var(--amber);
  font-weight: 600;
  margin-left: 6px;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.domain-tld {
  color: var(--amber);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  border-radius: 100px;
  color: var(--emerald-light);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-base);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hairline);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--border-subtle);
  background: var(--bg-panel);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-amber {
  background: var(--amber);
  color: #000;
  font-weight: 700;
}

.btn-amber:hover {
  background: var(--amber-light);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.publisher-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.tag-status {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

.tag-separator {
  color: var(--text-dim);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.headline-highlight {
  color: var(--amber);
}

.hero-sublead {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.grammar-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 4px 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.grammar-pill em {
  font-style: normal;
  font-weight: 600;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

/* Quick Install Box */
.quick-install-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  max-width: 480px;
}

.quick-install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.install-tab {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.install-tab.active {
  color: var(--text-main);
  background: var(--bg-panel);
}

.quick-install-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 14px;
}

.prompt-symbol {
  color: var(--text-dim);
  margin-right: 8px;
  user-select: none;
}

.btn-copy-mini {
  background: none;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-mini:hover {
  color: var(--text-main);
  background: var(--bg-panel);
  border-color: var(--border-subtle);
}

/* Telemetry Panel */
.telemetry-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.telemetry-title {
  color: var(--text-muted);
  font-weight: 600;
}

.telemetry-status {
  color: var(--emerald-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--emerald);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-hairline);
}

.telemetry-item {
  background: var(--bg-elevated);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.text-emerald { color: var(--emerald-light); }
.text-amber { color: var(--amber-light); }
.text-sky { color: var(--sky); }
.text-light { color: var(--text-main); }

.telemetry-footer-banner {
  padding: 12px 20px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border-hairline);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Sections General */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-head {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 680px;
  line-height: 1.6;
}

/* Section: Manifesto */
.section-manifesto {
  background: var(--bg-elevated);
}

.manifesto-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 48px;
}

.manifesto-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 36px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.manifesto-divider {
  width: 1px;
  height: 100%;
  background: var(--border-hairline);
}

.manifesto-icon-box {
  margin-bottom: 16px;
}

.grammar-title {
  margin-bottom: 12px;
}

.grammar-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.grammar-title h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.manifesto-col p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.manifesto-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
}

/* Section: Simulator */
.simulator-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.simulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-hairline);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.simulator-controls {
  display: flex;
  gap: 8px;
}

.simulator-body {
  padding: 24px;
  min-height: 240px;
  background: #05070a;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-y: auto;
}

.log-line {
  margin-bottom: 4px;
}

.log-step { color: var(--sky); }
.log-fail { color: #f87171; }
.log-shrink { color: var(--amber-light); }
.log-pass { color: var(--emerald-light); }
.log-db { color: #a78bfa; }
.log-coverage { color: #38bdf8; }
.text-muted { color: var(--text-muted); }

.simulator-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 24px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-hairline);
  gap: 16px;
}

.sim-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.sim-stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.package-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.package-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.package-card-highlight {
  border-color: var(--border-subtle);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.4) 0%, var(--bg-elevated) 100%);
}

.pkg-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pkg-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
}

.pkg-version-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  color: var(--amber-light);
  border-radius: 100px;
}

.pill-flutter {
  background: var(--sky-dim);
  border-color: var(--sky-border);
  color: var(--sky);
}

.pkg-summary {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.pkg-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mini-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.badge-points {
  color: var(--emerald-light);
  border-color: var(--emerald-border);
  background: var(--emerald-dim);
}

.pkg-feature-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pkg-feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.pkg-feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--sky);
}

.pkg-links {
  display: flex;
  gap: 12px;
}

/* Comparison Matrix Table */
.matrix-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.matrix-table th, .matrix-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-hairline);
}

.matrix-table th {
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.col-dim { width: 22%; }
.col-trad { width: 38%; color: var(--text-muted); }
.col-prop { width: 40%; color: var(--text-main); font-weight: 500; }

.dim-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
}

.cell-trad {
  color: var(--text-muted);
}

.cell-prop {
  color: var(--text-main);
  background: rgba(16, 185, 129, 0.03);
}

/* Code Editor Walkthrough */
.code-editor-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.editor-tabs {
  display: flex;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-hairline);
  overflow-x: auto;
}

.editor-tab {
  background: none;
  border: none;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-right: 1px solid var(--border-hairline);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.editor-tab:hover {
  color: var(--text-main);
}

.editor-tab.active {
  color: var(--amber-light);
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--amber);
  font-weight: 600;
}

.editor-content {
  padding: 24px;
  background: #05070a;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
}

/* Syntax Highlighting */
.k { color: #f43f5e; font-weight: 600; } /* keyword */
.s { color: #34d399; } /* string */
.f { color: #38bdf8; } /* function */
.t { color: #fbbf24; } /* type */
.c { color: #64748b; font-style: italic; } /* comment */
.n { color: #a78bfa; } /* number */
.m { color: #e879f9; } /* annotation */

/* Architecture Section */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.arch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.arch-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.arch-heading {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.arch-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  background: #040508;
  border-top: 1px solid var(--border-hairline);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-live {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-host-badge code {
  font-size: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
  }
  
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .manifesto-divider {
    display: none;
  }
  
  .arch-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 34px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .footer-links-group {
    grid-template-columns: 1fr;
  }
  
  .simulator-footer {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Benchmark Showcase Styles
   ========================================================================== */

.section-benchmarks {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-hairline);
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.4) 0%, rgba(7, 9, 14, 0.8) 100%);
}

.bench-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.bench-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.bench-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sky);
  opacity: 0.8;
}

.bench-stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.bench-stat-val {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 8px;
}

.bench-stat-unit {
  font-size: 16px;
  color: var(--sky);
  font-family: var(--font-mono);
  font-weight: 500;
}

.bench-stat-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.bench-stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.bench-reproduce-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bench-reproduce-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bench-reproduce-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bench-reproduce-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald-light);
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.bench-reproduce-cmd {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bench-reproduce-cmd code {
  font-size: 13px;
  padding: 6px 12px;
}

@media (max-width: 960px) {
  .bench-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Documentation Hub Styles (docs.html)
   ========================================================================== */

.docs-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 16px;
  border-right: 1px solid var(--border-hairline);
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.docs-search-box {
  margin-bottom: 24px;
  position: relative;
}

.docs-search-input {
  width: 100%;
  padding: 10px 14px 10px 34px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.docs-search-input:focus {
  border-color: var(--sky);
}

.docs-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-heading {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 8px;
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  text-decoration: none;
}

.docs-nav-link:hover {
  color: var(--text-main);
  background: var(--bg-panel);
}

.docs-nav-link.active {
  color: var(--sky);
  background: var(--sky-dim);
  font-weight: 600;
  border-left: 2px solid var(--sky);
}

.docs-nav-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
  margin-left: auto;
}

/* Main Content */
.docs-main {
  min-width: 0;
  max-width: 920px;
}

.docs-header-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 48px;
}

.docs-badge-strip {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.docs-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-main);
}

.docs-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.docs-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.docs-section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
}

.docs-section-title a.header-anchor {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s;
}

.docs-section-title:hover a.header-anchor {
  opacity: 1;
}

.docs-h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-main);
}

.docs-lead {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Callout Boxes */
.docs-callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid;
}

.docs-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--emerald-border);
  color: #d1fae5;
}

.docs-callout-tip strong {
  color: var(--emerald-light);
}

.docs-callout-note {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--sky-border);
  color: #e0f2fe;
}

.docs-callout-note strong {
  color: var(--sky);
}

.docs-callout-warn {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--amber-border);
  color: #fef3c7;
}

.docs-callout-warn strong {
  color: var(--amber-light);
}

/* Tables */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.docs-table th {
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-main);
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table code {
  color: var(--sky);
  font-size: 12px;
}

/* Code Snippets */
.docs-code-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin: 20px 0;
  overflow: hidden;
}

.docs-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.docs-code-header .lang-tag {
  color: var(--sky);
  font-weight: 600;
}

.docs-copy-btn {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.docs-copy-btn:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
}

.docs-code-content {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  background: #090d14;
}

.docs-code-content pre {
  margin: 0;
}

/* Responsive Docs */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .docs-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding-bottom: 24px;
    padding-right: 0;
  }
}

