/* ============================================================
   AI Agent Output Certification Service — Shared Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg: #0b0d12;
  --surface: #11141c;
  --surface2: #181c26;
  --surface3: #1e2333;
  --border: #232838;
  --border-light: #2e3448;
  --accent: #e8a020;
  --accent-dim: #c4851a;
  --accent-glow: rgba(232, 160, 32, 0.15);
  --pass: #22c55e;
  --pass-bg: rgba(34, 197, 94, 0.12);
  --fail: #ef4444;
  --fail-bg: rgba(239, 68, 68, 0.12);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --text: #e8eaf0;
  --text-muted: #7a8299;
  --text-dim: #4a5268;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --max-w: 1180px;
  --max-w-sm: 760px;
  --transition: 200ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 28px; }

/* ── Typography ── */
h1, h2, h3 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-muted); }
.mono { font-family: 'JetBrains Mono', monospace; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-pass { color: var(--pass); }
.text-fail { color: var(--fail); }
.text-warn { color: var(--warn); }

/* ── Navigation ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 28px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(11,13,18,0.95);
  backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.02em;
  color: var(--text);
}
.navbar-logo svg { flex-shrink: 0; }
.navbar-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.navbar-links a {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.navbar-links a:hover { color: var(--text); background: var(--surface2); }
.navbar-cta { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn {
  display: none; padding: 8px; border-radius: var(--radius);
  color: var(--text-muted); transition: color var(--transition);
}
.mobile-menu-btn:hover { color: var(--text); background: var(--surface2); }
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(11,13,18,0.98); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px; z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0; color: var(--text-muted); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
@media (max-width: 768px) {
  .navbar-links, .navbar-cta .btn { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #0b0d12;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--surface2); border-color: var(--text-dim); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid transparent; padding: 8px 14px;
}
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-pass { background: var(--pass-bg); color: var(--pass); }
.badge-fail { background: var(--fail-bg); color: var(--fail); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-pending { background: rgba(120,130,160,0.15); color: var(--text-muted); }
.badge-accent { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(232,160,32,0.3); }
.badge-blue { background: rgba(59,130,246,0.12); color: #60a5fa; }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-hover:hover {
  border-color: rgba(232,160,32,0.3);
  box-shadow: 0 0 0 1px rgba(232,160,32,0.1), 0 8px 32px rgba(0,0,0,0.3);
}
.card-header { margin-bottom: 20px; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ── Sections ── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-label::before, .section-label::after {
  content: ''; display: block; width: 20px; height: 1px; background: var(--accent-dim);
}

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-5 { grid-template-columns: 1fr; } }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(232,160,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; }

/* ── Hero (landing) ── */
.hero {
  min-height: 100vh; padding: 120px 0 80px;
  display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232,160,32,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(59,130,246,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow); border: 1px solid rgba(232,160,32,0.25);
  border-radius: 20px; padding: 6px 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex; gap: 40px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat .value { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--text); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
}

/* ── Score bar ── */
.score-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; }
.score-bar-label span:first-child { color: var(--text-muted); }
.score-bar-label span:last-child { font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.score-bar {
  height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 3px; width: 0;
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.score-bar-fill.pass { background: linear-gradient(90deg, var(--pass), #4ade80); }
.score-bar-fill.warn { background: linear-gradient(90deg, var(--warn), #fbbf24); }
.score-bar-fill.fail { background: linear-gradient(90deg, var(--fail), #f87171); }

/* ── Seal ── */
.cert-seal {
  position: relative; width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.cert-seal svg { width: 100%; height: 100%; }
.seal-pulse {
  animation: sealPulse 2s ease-in-out infinite;
}
@keyframes sealPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(232,160,32,0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(232,160,32,0.6)); }
}

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 32px; left: calc(10% + 16px); right: calc(10% + 16px);
  height: 1px; background: linear-gradient(90deg, var(--border), var(--border-light), var(--border));
}
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem; font-weight: 600; color: var(--accent);
  position: relative; z-index: 1;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}

/* ── Pricing cards ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 32px;
  transition: all var(--transition);
}
.pricing-card.popular {
  border-color: rgba(232,160,32,0.4);
  background: linear-gradient(180deg, rgba(232,160,32,0.05) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 1px rgba(232,160,32,0.15), 0 8px 40px rgba(232,160,32,0.08);
  position: relative;
}
.pricing-popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0b0d12;
  padding: 4px 16px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .price { font-family: 'DM Serif Display', serif; font-size: 2.4rem; margin-bottom: 4px; }
.pricing-card .price-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-muted); }
.pricing-features li svg { flex-shrink: 0; color: var(--pass); }
.pricing-features li.excluded { opacity: 0.4; text-decoration: line-through; }
.pricing-features li.excluded svg { color: var(--text-dim); }
.pricing-card .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ── Table ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; }
th {
  background: var(--surface2); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
td { font-size: 0.9rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface2); }
tbody td { color: var(--text); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-size: 0.95rem; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(232,160,32,0.5);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.1);
}
.form-textarea { resize: vertical; min-height: 160px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8299' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }

/* ── Alert boxes ── */
.alert { padding: 16px 20px; border-radius: var(--radius); border: 1px solid; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; }
.alert-info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #93c5fd; }
.alert-success { background: var(--pass-bg); border-color: rgba(34,197,94,0.2); color: #86efac; }
.alert-error { background: var(--fail-bg); border-color: rgba(239,68,68,0.2); color: #fca5a5; }
.alert-warn { background: var(--warn-bg); border-color: rgba(245,158,11,0.2); color: #fcd34d; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; background: var(--surface2); border-radius: var(--radius); padding: 4px; }
.tab-btn {
  flex: 1; padding: 10px 16px; border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); cursor: pointer; border: none; background: none;
}
.tab-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.tab-panel { display: none; padding-top: 24px; }
.tab-panel.active { display: block; }

/* ── Code block ── */
.code-block {
  background: #0a0d14; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--surface2); border-bottom: 1px solid var(--border);
}
.code-lang { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); }
.code-copy { font-size: 0.75rem; color: var(--text-muted); padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.code-copy:hover { background: var(--surface3); color: var(--text); }
.code-body { padding: 20px; }
.code-body pre { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.7; color: #c9d1d9; white-space: pre; overflow-x: auto; }
.code-body .kwd { color: #ff7b72; }
.code-body .str { color: #a5d6ff; }
.code-body .cmt { color: var(--text-dim); font-style: italic; }
.code-body .fn { color: #d2a8ff; }
.code-body .num { color: #79c0ff; }
.code-body .key { color: #ffa657; }

/* ── Sidebar layout ── */
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.sidebar-nav { position: sticky; top: 90px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover { background: var(--surface2); color: var(--text); }
.sidebar-nav a.active { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(232,160,32,0.2); }
.sidebar-content { min-width: 0; }
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } .sidebar-nav { position: static; } }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ── Loading ── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11,13,18,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
}
.spinner {
  width: 48px; height: 48px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-text { font-size: 0.9rem; color: var(--text-muted); }

/* ── Framework accordion ── */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--surface2); }
.accordion-header h4 { font-size: 0.95rem; font-weight: 600; }
.accordion-chevron { transition: transform var(--transition); flex-shrink: 0; color: var(--text-muted); }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { padding: 0 24px 20px; display: none; }
.accordion-item.open .accordion-body { display: block; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text-muted); }
.checklist li svg { flex-shrink: 0; margin-top: 2px; }

/* ── Alert feed ── */
.alert-feed { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--surface2);
  border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 0.85rem;
}
.alert-item .time { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.alert-item .msg { color: var(--text-muted); flex: 1; }
.alert-item.critical { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.alert-item.warning { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }

/* ── Dashboard stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.stat-card h3 { font-family: 'DM Serif Display', serif; font-size: 2rem; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-card .stat-change { font-size: 0.8rem; margin-top: 8px; }
.stat-card .stat-change.up { color: var(--pass); }
.stat-card .stat-change.down { color: var(--fail); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Utility ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-semibold { font-weight: 600; }
.hidden { display: none !important; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border); padding: 48px 0;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-inner p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ── Scroll animations ── */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 100ms; }
[data-delay="2"] { transition-delay: 200ms; }
[data-delay="3"] { transition-delay: 300ms; }
[data-delay="4"] { transition-delay: 400ms; }
[data-delay="5"] { transition-delay: 500ms; }
