/* ================================================================
   MetaCivicOS — Main Stylesheet
   New Civilization Paradigm for the Post-Human Age
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-0: #020210;
  --bg-1: #04041a;
  --bg-2: #080828;
  --bg-3: #0c0c3a;
  --bg-card: rgba(8, 10, 38, 0.85);
  --bg-glass: rgba(12, 16, 52, 0.7);

  --cyan: #00d4ff;
  --cyan-80: rgba(0, 212, 255, 0.8);
  --cyan-30: rgba(0, 212, 255, 0.3);
  --cyan-10: rgba(0, 212, 255, 0.08);
  --purple: #8b5cf6;
  --purple-30: rgba(139, 92, 246, 0.3);
  --purple-10: rgba(139, 92, 246, 0.08);
  --gold: #f59e0b;
  --gold-30: rgba(245, 158, 11, 0.3);
  --gold-10: rgba(245, 158, 11, 0.08);
  --green: #10b981;
  --green-30: rgba(16, 185, 129, 0.3);
  --red: #f87171;
  --red-30: rgba(248, 113, 113, 0.3);

  --text-100: #f0f4ff;
  --text-80: #cbd5e1;
  --text-60: #94a3b8;
  --text-40: #64748b;
  --text-20: #334155;

  --border: rgba(0, 212, 255, 0.1);
  --border-md: rgba(0, 212, 255, 0.22);
  --border-strong: rgba(0, 212, 255, 0.4);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.25);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --max-w: 1200px;
  --section-py: 100px;
  --t-fast: 0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-1);
  color: var(--text-100);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #fff; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-100);
}
h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 600; }
h4 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
p { margin-bottom: 1.2em; color: var(--text-80); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text-100); font-weight: 600; }
em { color: var(--cyan); font-style: normal; }
small { font-size: 0.8rem; }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-cyan-grad {
  background: linear-gradient(135deg, var(--cyan), #0088cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold-grad {
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 60px);
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 60px);
}
section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--bg-0); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-30);
  background: var(--cyan-10);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.glow-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  box-shadow: 0 0 12px var(--cyan-30);
  margin: 0.8rem 0 2rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--t-normal), padding var(--t-normal), border-bottom var(--t-normal);
}
.nav.scrolled {
  background: rgba(4, 4, 26, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.02em;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  border: 1.5px solid var(--cyan);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-30);
  letter-spacing: 0;
}
.nav-logo span { color: var(--cyan); }
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-40);
  letter-spacing: 0.08em;
  display: none;
}

/* --- Hero --- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-grid-bg {
  position: absolute;
  inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-radial {
  position: absolute;
  inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(139,92,246,0.12) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 0 90px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}
.hero-eyebrow-line {
  width: 36px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.hero-eyebrow span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-title-line1 { display: block; color: var(--text-100); }
.hero-title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-60);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-40);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-40);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--text-40);
  border-bottom: 1.5px solid var(--text-40);
  transform: rotate(45deg);
  margin-top: -5px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--cyan), #0066aa);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--t-normal);
  letter-spacing: 0.01em;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,255,0.45);
  color: #000;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: transparent;
  color: var(--text-80);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  transition: all var(--t-normal);
  letter-spacing: 0.01em;
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-10);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--t-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}
.card-icon.c { background: var(--cyan-10); border: 1px solid var(--cyan-30); }
.card-icon.p { background: var(--purple-10); border: 1px solid var(--purple-30); }
.card-icon.g { background: var(--gold-10); border: 1px solid var(--gold-30); }
.card-icon.gr { background: var(--green-30); border: 1px solid var(--green-30); }

/* --- Pillar Cards --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--t-normal);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.pillar-card.tech::before { background: linear-gradient(90deg, var(--cyan), transparent); }
.pillar-card.phil::before { background: linear-gradient(90deg, var(--purple), transparent); }
.pillar-card.ethic::before { background: linear-gradient(90deg, var(--gold), transparent); }
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-md); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-40);
  margin-bottom: 0.7rem;
  letter-spacing: 0.12em;
}
.pillar-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.pillar-tag { margin-bottom: 1rem; }
.pillar-card p { color: var(--text-60); font-size: 0.92rem; line-height: 1.7; margin: 0; }
.pillar-card h3 { margin-bottom: 0.8rem; font-size: 1.3rem; }

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.tag-c { background: var(--cyan-10); color: var(--cyan); border: 1px solid var(--cyan-30); }
.tag-p { background: var(--purple-10); color: var(--purple); border: 1px solid var(--purple-30); }
.tag-g { background: var(--gold-10); color: var(--gold); border: 1px solid var(--gold-30); }
.tag-gr { background: rgba(16,185,129,0.08); color: var(--green); border: 1px solid var(--green-30); }
.tag-r { background: rgba(248,113,113,0.08); color: var(--red); border: 1px solid var(--red-30); }

/* --- Compare Table --- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--bg-3);
  padding: 13px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-80);
  white-space: nowrap;
}
.compare-table th:last-child { color: var(--cyan); }
.compare-table td {
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-60);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(0,212,255,0.025); }
.compare-table td:first-child { color: var(--text-80); font-weight: 500; }
.compare-table td:last-child { color: var(--text-100); }
.chk-y { color: var(--cyan); font-size: 1rem; }
.chk-n { color: var(--text-40); }

/* --- Formula/Code Block --- */
.formula-block {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.4rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-80);
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.7;
}
.formula-block .cmt { color: var(--text-40); }
.formula-block .kw { color: var(--cyan); }
.formula-block .val { color: var(--purple); }
.formula-block .str { color: var(--gold); }

/* --- Quote Block --- */
.quote-block {
  border-left: 4px solid var(--cyan);
  padding: 1.4rem 1.8rem;
  background: rgba(0,212,255,0.035);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}
.quote-block p {
  font-size: 1.05rem;
  color: var(--text-80);
  font-style: italic;
  margin: 0;
  line-height: 1.75;
}
.quote-block cite {
  display: block;
  font-size: 0.8rem;
  color: var(--text-40);
  margin-top: 0.7rem;
  font-style: normal;
  font-family: var(--font-mono);
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
  transition: all var(--t-normal);
}
.stat-card:hover { border-color: var(--border-md); transform: translateY(-2px); }
.stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-40);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-src { font-size: 0.68rem; color: var(--text-20); margin-top: 3px; }

/* --- Chart Containers --- */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
}
.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 16px;
}
.chart-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-80);
}
.chart-subtitle {
  font-size: 0.8rem;
  color: var(--text-40);
  margin-top: 2px;
}
.chart-canvas-wrap {
  position: relative;
  width: 100%;
}

/* --- Kardashev Scale Visual --- */
.kardashev-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.5rem 0;
}
.kd-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  align-items: center;
  gap: 14px;
}
.kd-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-60);
  text-align: right;
}
.kd-bar-bg {
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.kd-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
  position: relative;
}
.kd-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  border-radius: 5px;
}
.kd-bar.now { background: linear-gradient(90deg, #64748b, #94a3b8); }
.kd-bar.y2040 { background: linear-gradient(90deg, #0ea5e9, var(--cyan)); }
.kd-bar.y2080 { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.kd-bar.typeI { background: linear-gradient(90deg, var(--purple), var(--gold)); }
.kd-bar.typeII { background: linear-gradient(90deg, var(--gold), #fbbf24); }
.kd-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-60);
}

/* --- Consciousness Level Display --- */
.cl-list { display: flex; flex-direction: column; gap: 10px; }
.cl-row {
  display: grid;
  grid-template-columns: 30px 90px 1fr 100px;
  align-items: center;
  gap: 12px;
}
.cl-lv {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-40);
  text-align: center;
}
.cl-name {
  font-size: 0.82rem;
  color: var(--text-60);
}
.cl-bar-bg {
  height: 7px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.cl-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s var(--t-slow);
  width: 0;
}
.cl-lv1 { background: linear-gradient(90deg, #475569, #94a3b8); }
.cl-lv2 { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.cl-lv3 { background: linear-gradient(90deg, var(--green), #34d399); }
.cl-lv4 { background: linear-gradient(90deg, var(--cyan), #38bdf8); }
.cl-lv5 { background: linear-gradient(90deg, var(--purple), #a78bfa); }
.cl-lv6 { background: linear-gradient(90deg, var(--gold), #fbbf24); }
.cl-lv7 { background: linear-gradient(90deg, #f87171, #fb923c); }
.cl-rights { font-size: 0.72rem; color: var(--text-40); text-align: right; }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--gold), transparent);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -30px; top: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2.5px solid var(--bg-1);
  box-shadow: 0 0 8px var(--cyan);
}
.timeline-dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.timeline-dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.timeline-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.timeline-desc { color: var(--text-60); font-size: 0.88rem; line-height: 1.65; }

/* --- Future Vision Cards --- */
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.future-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--t-normal);
}
.future-year {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan-30);
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  line-height: 1;
  pointer-events: none;
}
.future-card:hover { border-color: var(--border-md); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.future-card h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.future-card p { color: var(--text-60); font-size: 0.88rem; margin-bottom: 0.6rem; }
.future-card p:last-child { margin: 0; }
.future-items { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.future-items li {
  font-size: 0.84rem;
  color: var(--text-60);
  padding-left: 14px;
  position: relative;
}
.future-items li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.65rem;
  top: 3px;
}

/* --- Risk Cards --- */
.risk-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: all var(--t-normal);
}
.risk-card:hover { border-color: var(--border-md); }
.risk-badge {
  flex-shrink: 0;
  min-width: 64px;
  height: 64px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
}
.risk-badge.extreme { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid var(--red-30); }
.risk-badge.high { background: var(--gold-10); color: var(--gold); border: 1px solid var(--gold-30); }
.risk-badge.medium { background: rgba(16,185,129,0.08); color: var(--green); border: 1px solid var(--green-30); }
.risk-badge span { font-size: 1.2rem; }
.risk-body h4 { margin-bottom: 0.4rem; font-size: 1rem; }
.risk-body p { color: var(--text-60); font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* --- Article Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--t-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.article-card:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.article-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-thumb-icon { font-size: 2.8rem; opacity: 0.35; position: relative; z-index: 1; }
.article-thumb-bg {
  position: absolute;
  inset: 0;
}
.thumb-cyan { background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,100,180,0.2)); }
.thumb-purple { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(76,29,149,0.2)); }
.thumb-gold { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(180,83,9,0.2)); }
.thumb-green { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.2)); }
.thumb-red { background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(185,28,28,0.2)); }
.article-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.article-card h3 {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.7rem;
  color: var(--text-100);
  flex: 1;
}
.article-card p {
  font-size: 0.82rem;
  color: var(--text-60);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-read {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Category Filter Tabs --- */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cat-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-60);
  background: transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  font-family: var(--font-body);
}
.cat-tab:hover, .cat-tab.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-10);
}

/* --- Article Page --- */
.article-hero {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(139,92,246,0.1) 0%, transparent 70%);
}
.article-hero-inner { position: relative; z-index: 1; }
.article-hero-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1.22;
  margin-bottom: 1.2rem;
  max-width: 880px;
}
.article-hero-desc {
  font-size: 1.1rem;
  color: var(--text-60);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-40);
  font-family: var(--font-mono);
}

/* --- Article Body --- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 60px 0;
  align-items: start;
}
.article-main {}
.article-sidebar {
  position: sticky;
  top: 80px;
}

.article-main h2 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-100);
}
.article-main h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin: 2.5rem 0 1rem;
  color: var(--cyan);
}
.article-main h4 {
  font-size: 1.05rem;
  margin: 2rem 0 0.8rem;
  color: var(--text-80);
}
.article-main p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-80);
  margin-bottom: 1.5rem;
}
.article-main ul, .article-main ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-main li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  color: var(--text-80);
}
.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.article-main th {
  background: var(--bg-3);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-80);
}
.article-main td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-60);
}
.article-main tr:last-child td { border-bottom: none; }
.article-main tr:hover td { background: rgba(0,212,255,0.02); }

/* --- TOC (Sidebar) --- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-40);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.toc ol { list-style: none; counter-reset: toc-c; }
.toc li { counter-increment: toc-c; margin-bottom: 4px; }
.toc a {
  color: var(--text-60);
  font-size: 0.84rem;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  transition: color var(--t-fast);
  padding: 2px 0;
  line-height: 1.5;
}
.toc a::before {
  content: counter(toc-c, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 3px;
}
.toc a:hover { color: var(--cyan); }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-40);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-40); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { color: var(--text-20); }

/* --- Related Articles --- */
.related-wrap { border-top: 1px solid var(--border); padding-top: 3rem; margin-top: 4rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 1.5rem; }
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  transition: all var(--t-normal);
}
.related-card:hover { border-color: var(--border-md); transform: translateY(-2px); }
.related-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.related-card h4 { font-size: 0.9rem; line-height: 1.45; color: var(--text-100); }

/* --- Data Callout --- */
.data-callout {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(139,92,246,0.06));
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  margin: 2rem 0;
  align-items: flex-start;
}
.data-callout-icon { font-size: 2rem; flex-shrink: 0; }
.data-callout h4 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--cyan); }
.data-callout p { font-size: 0.88rem; color: var(--text-60); margin: 0; }

/* --- Grid utility --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Keyframes --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--cyan-30); }
  50% { box-shadow: 0 0 22px rgba(0,212,255,0.55); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 3rem;
}
.footer-brand-text {
  color: var(--text-40);
  font-size: 0.88rem;
  max-width: 380px;
  margin-top: 1rem;
  line-height: 1.7;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-40);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { color: var(--text-40); font-size: 0.88rem; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: var(--text-40); }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-40);
  letter-spacing: 0.08em;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  :root { --section-py: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 9px 12px; }
  .hero-stats { gap: 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .kd-row { grid-template-columns: 60px 1fr 50px; }
  .cl-row { grid-template-columns: 24px 80px 1fr 90px; }
}
@media (max-width: 480px) {
  :root { --section-py: 55px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .future-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .cat-tabs { gap: 6px; }
}

/* --- Misc Utility --- */
.mb-0 { margin-bottom: 0 !important; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-start { align-items: flex-start; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }
.c-cyan { color: var(--cyan); }
.c-purple { color: var(--purple); }
.c-gold { color: var(--gold); }
.c-muted { color: var(--text-40); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
