
:root {
  --bg: #08101f;
  --panel: #101935;
  --panel-2: #132041;
  --text: #f4f7fb;
  --muted: #a6b4d6;
  --border: #23345a;
  --accent: #7fb1ff;
  --accent-2: #8ef0c1;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #12204a 0%, var(--bg) 42%);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--border); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; backdrop-filter: blur(14px); background: rgba(8,16,31,.75); border-bottom: 1px solid rgba(255,255,255,.06); z-index: 20; }
.nav-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.nav-row nav { display: flex; gap: 20px; }
.brand { color: var(--text); font-weight: 800; letter-spacing: .2px; }
main { padding: 36px 0 60px; }
.hero-home, .post-card, .panel { background: linear-gradient(180deg, rgba(19,32,65,.95), rgba(11,17,34,.95)); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.hero-home, .post-card { padding: 30px; }
.panel { padding: 24px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 75ch; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.hero-stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 18px; }
.hero-stat span { display: block; color: var(--muted); font-size: 14px; }
.hero-stat strong { display: block; font-size: clamp(1.4rem, 2vw, 2rem); margin-top: 6px; }
.button { display: inline-block; padding: 12px 18px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #9ec6ff); color: #06101f; font-weight: 800; }
.home-layout, .archive-layout, .post-layout { display: grid; gap: 24px; }
.grid-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.chart-section { margin-top: 20px; }
.post-list { display: grid; gap: 18px; }
.about-layout { display: grid; gap: 24px; }
.methodology-grid { grid-template-columns: repeat(2, 1fr); }
.formula-box { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--text); font-weight: 700; }
.regime-list { margin: 0; padding-left: 20px; color: var(--muted); }
.regime-list li { margin: 8px 0; }
.post-list-item { padding: 22px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 22px; }
.post-list-date { margin: 0 0 8px; color: var(--accent-2); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric-card { padding: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 22px; }
.metric-card h3 { margin: 0 0 8px; font-size: 1rem; }
.metric-score { font-size: 2rem; font-weight: 800; margin: 0 0 10px; }
.metric-score span { font-size: 1rem; color: var(--muted); margin-left: 6px; }
.metric-meta { color: var(--muted); margin: 6px 0; }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 36px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-centered { justify-content: center; align-items: center; }
.x-logo-link { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.x-logo-link:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(127,177,255,.55); background: rgba(127,177,255,.08); }
.x-logo { width: 22px; height: 22px; display: block; border: 0; border-radius: 0; }
@media (max-width: 840px) {
  .hero-grid, .grid-two, .metrics-grid { grid-template-columns: 1fr; }
  .footer-inner, .nav-row { flex-direction: column; align-items: flex-start; }
  .footer-centered { align-items: center; }
}
