/* ═══════════════════════════════════════════
   Layout 4: Dashboard Stats
   Data-dense, metrics-focused, progress bars
   ═══════════════════════════════════════════ */

/* @import moved to HTML <link> */
:root {
  --bg: #0c0e14;
  --bg-alt: #11141d;
  --surface: #161922;
  --surface-hover: #1c2030;
  --surface-raised: #1e2235;
  --border: #252a3a;
  --border-light: #2e3348;
  --text: #e4e6ef;
  --text-secondary: #969ab8;
  --text-muted: #5e6280;
  --accent: #00d4aa;
  --accent-dark: #00b894;
  --accent-glow: rgba(0,212,170,0.08);
  --accent-glow-strong: rgba(0,212,170,0.16);
  --green: #00d4aa;
  --green-bg: rgba(0,212,170,0.06);
  --green-border: rgba(0,212,170,0.14);
  --red: #ff6b6b;
  --red-bg: rgba(255,107,107,0.06);
  --red-border: rgba(255,107,107,0.14);
  --blue: #5b9bd5;
  --blue-bg: rgba(91,155,213,0.06);
  --orange: #ffa94d;
  --gold: #ffd43b;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-w: 1140px;
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --transition: 0.15s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--accent-dark); }

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

/* ═══ Header ═══ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo span { color: var(--accent); font-family: var(--font-mono); }
.logo-img { height: 28px; }
.nav { display: flex; list-style: none; gap: 2px; }
.nav a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.nav a:hover { background: var(--surface-hover); color: var(--text); }
.hamburger { display: none; }

.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--accent); color: #0c0e14; text-align: center; padding: 14px; font-weight: 700; font-size: 0.95rem; }
a.mobile-cta:hover { color: #fff; }

/* ═══ Stats Bar ═══ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border); margin: 0 0 28px;
}
.stat-item {
  background: var(--surface); padding: 20px 16px; text-align: center;
}
.stat-item .stat-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-item .stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ═══ Hero ═══ */
.hero { padding: 40px 0 32px; text-align: left; }
.hero h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 600px; }

/* ═══ CTA ═══ */
.cta-banner {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 1rem; flex: 1; }
.cta-banner p { display: none; }
.btn-cta, .btn {
  display: inline-block; background: var(--accent); color: #0c0e14;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem; font-family: var(--font-mono);
  transition: all var(--transition);
}
.btn-cta:hover, .btn:hover { background: var(--accent-dark); color: #0c0e14; }
.cta-sub { display: none; }

/* ═══ Score Banner ═══ */
.score-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
}
.big-score { text-align: center; }
.big-score .num { font-family: var(--font-mono); font-size: 3.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.big-score .stars { color: var(--gold); font-size: 1rem; margin: 4px 0; }
.big-score .label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.breakdown h3, .breakdown-title { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.scores { display: flex; flex-direction: column; gap: 8px; }
.scores .item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.scores .item span:first-child { width: 140px; color: var(--text-secondary); }
.scores .val { color: var(--accent); font-weight: 700; font-family: var(--font-mono); min-width: 36px; }
/* Progress bar */
.score-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }

/* ═══ Key Info ═══ */
.key-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); margin-bottom: 28px; border-radius: var(--radius); overflow: hidden;
}
.key-info .info-item { background: var(--surface); padding: 18px 20px; text-align: center; }
.key-info .label { display: block; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.key-info .value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* ═══ TOC ═══ */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.toc h3 { font-size: 0.88rem; margin-bottom: 12px; }
.toc ol { padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.toc li { font-size: 0.85rem; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--accent); }

/* ═══ Content Sections ═══ */
.content-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 16px;
}
.content-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.content-section p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
.content-section ol { padding-left: 20px; color: var(--text-secondary); }
.content-section li { margin-bottom: 8px; }

/* ═══ Features Grid ═══ */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature-card:hover { border-color: var(--accent); }
.feature-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ═══ Pros/Cons ═══ */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pros-box, .cons-box { border-radius: var(--radius); padding: 24px; border-top: 3px solid; }
.pros-box { background: var(--green-bg); border-color: var(--green); border-top-color: var(--green); }
.cons-box { background: var(--red-bg); border-color: var(--red); border-top-color: var(--red); }
.pros-box h3 { color: var(--green); font-size: 0.95rem; margin-bottom: 12px; }
.cons-box h3 { color: var(--red); font-size: 0.95rem; margin-bottom: 12px; }
.pros-box ul, .cons-box ul { padding-left: 18px; }
.pros-box li, .cons-box li { font-size: 0.85rem; margin-bottom: 6px; color: var(--text-secondary); }

/* ═══ Footer ═══ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 0.75rem; color: var(--text-muted); text-align: center; padding-top: 20px; border-top: 1px solid var(--border); }

/* ═══ Page Hero ═══ */
.page-hero { padding: 36px 0 28px; text-align: left; margin-bottom: 24px; }
.page-hero h1 { font-size: 1.8rem; font-weight: 800; }
.page-hero h1 span { color: var(--accent); }
.page-hero .subtitle { color: var(--text-secondary); margin-top: 8px; }

.breadcrumbs { padding: 14px 0; font-size: 0.8rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; }
  .nav.open { display: flex; }
  .mobile-cta { display: block; }
a.mobile-cta:hover { color: #fff; }
  .hero h1 { font-size: 1.6rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .score-banner { grid-template-columns: 1fr; }
  .scores .item span:first-child { width: 110px; }
  .key-info { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
}