/* ═══════════════════════════════════════════════
   CVC GUIDE — COMPLETE DESIGN SYSTEM
   Blueprint-Industrial Aesthetic
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a1628;
  --bg2: #0f1f3a;
  --bg3: #132847;
  --bg-glass: #0f1f3acc;
  --cyan: #00e5ff;
  --cyan-dim: #00e5ff25;
  --cyan-mid: #00e5ff66;
  --cyan-bright: #40efff;
  --hot: #ff6b35;
  --hot-dim: #ff6b3525;
  --hot-mid: #ff6b3566;
  --cold: #3b82f6;
  --cold-dim: #3b82f625;
  --cold-mid: #3b82f666;
  --green: #10b981;
  --green-dim: #10b98125;
  --purple: #a78bfa;
  --purple-dim: #a78bfa25;
  --grid: #1a3055;
  --text: #c8daf0;
  --text-dim: #6b8ab8;
  --white: #eaf2ff;
  --radius: 12px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Blueprint Grid ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .3;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 15%, #162d5440, var(--bg) 70%);
  z-index: -1;
  pointer-events: none;
}

::selection { background: var(--cyan); color: var(--bg); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-mid); }

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-bright); }
strong { color: var(--white); font-weight: 600; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: #0a162890;
  border-bottom: 1px solid var(--cyan-dim);
  z-index: 200;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: #0a1628dd;
  box-shadow: 0 4px 30px #00000060;
}
nav .logo {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyan);
  font-size: .82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .3s;
  flex-shrink: 0;
}
nav .logo:hover { opacity: .7; }
nav .logo span { opacity: .3; }

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
nav .nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Share Tech Mono', monospace;
  transition: color .3s;
  position: relative;
  padding: .3rem 0;
}
nav .nav-links a:hover,
nav .nav-links a.active { color: var(--cyan); }
nav .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 210;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a1628f0;
  backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity .4s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  color: var(--text);
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  text-decoration: none;
  transition: color .3s;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu.open a {
  animation: fadeUp .5s forwards;
}
.mobile-menu.open a:nth-child(1) { animation-delay: .1s; }
.mobile-menu.open a:nth-child(2) { animation-delay: .15s; }
.mobile-menu.open a:nth-child(3) { animation-delay: .2s; }
.mobile-menu.open a:nth-child(4) { animation-delay: .25s; }
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu a.active { color: var(--cyan); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-particles {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero > *:not(.hero-particles):not(.scroll-hint) { position: relative; z-index: 1; }

.hero-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: .7rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--cold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em.hot-grad {
  background: linear-gradient(135deg, var(--hot), #ffb86c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em.cold-grad {
  background: linear-gradient(135deg, var(--cold), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em.green-grad {
  background: linear-gradient(135deg, var(--green), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  max-width: 600px;
  font-size: 1.08rem;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp .8s .7s forwards;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-sub { min-height: 70vh; padding-top: 9rem; }

/* Hero CTA buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp .8s .9s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text-dim);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeUp .8s 1.1s forwards;
  z-index: 1;
}
.scroll-hint span {
  font-family: 'Share Tech Mono', monospace;
  font-size: .6rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-arrow {
  width: 18px; height: 28px;
  border: 1.5px solid var(--cyan-mid);
  border-radius: 9px;
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  width: 3px; height: 7px;
  background: var(--cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.5s infinite;
}

/* ═══════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════ */
.breadcrumb {
  font-family: 'Share Tech Mono', monospace;
  font-size: .68rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .6s .2s forwards;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { margin: 0 .5rem; opacity: .4; }

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: .68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .7rem;
}
.section-label.hot { color: var(--hot); }
.section-label.cold { color: var(--cold); }
.section-label.green { color: var(--green); }
section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.2rem;
}
section p {
  max-width: 720px;
  margin-bottom: 1.1rem;
  font-size: .98rem;
}
section .lead {
  font-size: 1.08rem;
  color: var(--text);
  max-width: 660px;
}

/* ═══════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 3rem 2rem;
  max-width: 1140px;
  margin: 0 auto;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  background: var(--bg2);
  transition: border-color var(--transition), transform var(--transition);
}
.stat:hover {
  border-color: var(--cyan-mid);
  transform: translateY(-3px);
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-number.hot { color: var(--hot); }
.stat-number.cold { color: var(--cold); }
.stat-number.green { color: var(--green); }
.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.cards.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: linear-gradient(145deg, var(--bg2), #0d1a32);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .4s, transform .3s, box-shadow .4s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  border-color: var(--cyan-mid);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px #00000040;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.card.hot::before { background: linear-gradient(90deg, transparent, var(--hot), transparent); }
.card.cold::before { background: linear-gradient(90deg, transparent, var(--cold), transparent); }
.card.neutral::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.card.green::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.card.purple::before { background: linear-gradient(90deg, transparent, var(--purple), transparent); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.card.hot .card-icon { background: var(--hot-dim); color: var(--hot); }
.card.cold .card-icon { background: var(--cold-dim); color: var(--cold); }
.card.neutral .card-icon { background: var(--cyan-dim); color: var(--cyan); }
.card.green .card-icon { background: var(--green-dim); color: var(--green); }
.card.purple .card-icon { background: var(--purple-dim); color: var(--purple); }

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.card p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: .68rem;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  opacity: .5;
  transition: opacity .3s, gap .3s;
}
.card:hover .card-link { opacity: 1; gap: .7rem; }

/* ═══════════════════════════════════════════════
   SCHEMA BOX
   ═══════════════════════════════════════════════ */
.schema-container {
  margin: 2.5rem auto;
  max-width: 1000px;
  background: var(--bg2);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  overflow-x: auto;
}
.schema-container::before {
  content: attr(data-title);
  position: absolute;
  top: 10px; right: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: .56rem;
  letter-spacing: 3px;
  color: var(--cyan-mid);
}
.schema-svg { width: 100%; height: auto; min-width: 600px; }

/* ═══════════════════════════════════════════════
   DETAIL BLOCKS
   ═══════════════════════════════════════════════ */
.detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3.5rem 0;
}
.detail-block.reverse { direction: rtl; }
.detail-block.reverse > * { direction: ltr; }
.detail-visual {
  background: var(--bg2);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.detail-text h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: .78rem;
  letter-spacing: 3px;
  margin-bottom: .6rem;
}
.detail-text h3.hot { color: var(--hot); }
.detail-text h3.cold { color: var(--cold); }
.detail-text h3.neutral { color: var(--cyan); }
.detail-text h3.green { color: var(--green); }

/* ═══════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════ */
.tabs {
  margin: 2.5rem 0;
}
.tab-nav {
  display: flex;
  gap: .5rem;
  border-bottom: 1px solid var(--cyan-dim);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: .8rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color .3s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--cyan);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
}
.tab-btn.hot.active { color: var(--hot); }
.tab-btn.hot.active::after { background: var(--hot); }
.tab-btn.cold.active { color: var(--cold); }
.tab-btn.cold.active::after { background: var(--cold); }

.tab-panel {
  display: none;
  animation: fadeIn .4s;
}
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════════════
   PROCESS STEPS
   ═══════════════════════════════════════════════ */
.process {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  left: 24px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan-dim), var(--hot-dim), var(--cold-dim), var(--cyan-dim));
}
.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.2rem 0;
  position: relative;
}
.step-num {
  width: 50px; height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: .82rem;
  color: var(--cyan);
  z-index: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.step:hover .step-num { box-shadow: 0 0 15px var(--cyan-dim); }
.step.hot .step-num { border-color: var(--hot-dim); color: var(--hot); }
.step.hot:hover .step-num { box-shadow: 0 0 15px var(--hot-dim); }
.step.cold .step-num { border-color: var(--cold-dim); color: var(--cold); }
.step.cold:hover .step-num { box-shadow: 0 0 15px var(--cold-dim); }
.step.green .step-num { border-color: var(--green-dim); color: var(--green); }
.step-content { padding-top: .2rem; }
.step-content h4 {
  font-weight: 600;
  color: var(--white);
  margin-bottom: .3rem;
  font-size: 1rem;
}
.step-content p {
  font-size: .9rem;
  color: var(--text-dim);
  margin: 0;
}

/* ═══════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 500px;
}
.spec-table th {
  font-family: 'Share Tech Mono', monospace;
  font-size: .66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: left;
  padding: .8rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--cyan-dim);
  position: sticky;
  top: 0;
}
.spec-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid #1a2a4520;
  color: var(--text);
}
.spec-table tr:hover td { background: #ffffff04; }
.spec-table tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: .12rem .55rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.badge.hot { background: var(--hot-dim); color: var(--hot); }
.badge.cold { background: var(--cold-dim); color: var(--cold); }
.badge.green { background: var(--green-dim); color: var(--green); }
.badge.cyan { background: var(--cyan-dim); color: var(--cyan); }
.badge.purple { background: var(--purple-dim); color: var(--purple); }

/* ═══════════════════════════════════════════════
   INFO BOX / CALLOUT
   ═══════════════════════════════════════════════ */
.callout {
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--cyan);
  background: var(--bg2);
  margin: 1.5rem 0;
  font-size: .92rem;
}
.callout.hot { border-color: var(--hot); }
.callout.cold { border-color: var(--cold); }
.callout.green { border-color: var(--green); }
.callout-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--cyan);
}
.callout.hot .callout-title { color: var(--hot); }
.callout.cold .callout-title { color: var(--cold); }
.callout.green .callout-title { color: var(--green); }

/* ═══════════════════════════════════════════════
   COMPARISON (side by side)
   ═══════════════════════════════════════════════ */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.comparison-col {
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--cyan-dim);
  background: var(--bg2);
}
.comparison-col h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: .75rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.comparison-col.pros h4 { color: var(--green); }
.comparison-col.cons h4 { color: var(--hot); }
.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.comparison-col li {
  font-size: .9rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
}
.comparison-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.comparison-col.pros li::before { background: var(--green); }
.comparison-col.cons li::before { background: var(--hot); }

/* ═══════════════════════════════════════════════
   GLOSSARY
   ═══════════════════════════════════════════════ */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.glossary-item {
  padding: 1.2rem;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.glossary-item:hover { border-color: var(--cyan-dim); }
.glossary-term {
  font-family: 'Share Tech Mono', monospace;
  font-size: .78rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: .25rem;
}
.glossary-def {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--cyan-dim);
  color: var(--cyan);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, border-color .3s;
  z-index: 90;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { border-color: var(--cyan); }

/* ═══════════════════════════════════════════════
   PROGRESS BAR (reading progress)
   ═══════════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 58px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  z-index: 199;
  transition: width .1s;
  box-shadow: 0 0 8px var(--cyan-mid);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--cyan-dim);
  margin-top: 3rem;
  background: var(--bg2);
}
footer p {
  font-family: 'Share Tech Mono', monospace;
  font-size: .68rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: .8rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .3s;
}
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  font-size: .6rem;
  color: var(--text-dim);
  opacity: .5;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; top: 5px; }
  50% { opacity: 1; top: 13px; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--cyan-dim); }
  50% { box-shadow: 0 0 20px 5px var(--cyan-dim); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: .4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: .5s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .detail-block, .detail-block.reverse,
  .comparison {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  nav { padding: 0 1.2rem; }
  nav .nav-links { display: none; }
  .hamburger { display: flex; }

  section { padding: 3.5rem 1.2rem; }
  .hero { padding: 6rem 1.2rem 3rem; }
  .hero-sub { min-height: 55vh; padding-top: 7rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .schema-container { padding: 1rem; margin: 2rem -1.2rem; border-radius: 0; border-left: none; border-right: none; }

  .stats-bar { padding: 2rem 1.2rem; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.6rem; }

  .cards { gap: 1rem; }
  .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }

  .tab-nav { gap: .2rem; }
  .tab-btn { padding: .6rem 1rem; font-size: .65rem; }

  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .cards, .cards.cols-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .glossary { grid-template-columns: 1fr; }
}
