/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --bg-primary: #07091a;
  --bg-secondary: #0b0e1f;
  --bg-alt: #0d1124;
  --bg-card: #111627;
  --bg-card-hover: #161d32;
  --accent: #f7931a;
  --accent-dim: rgba(247, 147, 26, 0.12);
  --accent-border: rgba(247, 147, 26, 0.25);
  --gold: #fbbf24;
  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #5a6480;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245, 158, 11, 0.15);
  --green: #10b981;
  --blue: #3b82f6;
  --nav-height: 64px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-secondary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold); }

strong { color: var(--text-primary); font-weight: 600; }
em { color: var(--text-secondary); font-style: italic; }

.accent {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(7, 9, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(7, 9, 26, 0.95);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav-symbol {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  gap: 48px;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(247, 147, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 147, 26, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 560px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.hero-stat-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(247, 147, 26, 0.35);
}

.hero-cta:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(247, 147, 26, 0.5);
}

.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bitcoin-glyph {
  font-size: clamp(120px, 16vw, 220px);
  color: var(--accent);
  opacity: 0.08;
  font-weight: 700;
  user-select: none;
  text-shadow: 0 0 120px rgba(247, 147, 26, 0.4);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.14; }
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-subheader {
  margin: 64px 0 32px;
}

.section-subheader h3 {
  margin-bottom: 8px;
}

.section-subheader p {
  color: var(--text-secondary);
}

/* ===========================
   CHART CARDS
=========================== */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.chart-header {
  margin-bottom: 28px;
}

.chart-header h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.chart-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  width: 100%;
}

.chart-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.note-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-style: normal;
  font-size: 0.9rem;
}

/* ===========================
   STATS GRID
=========================== */
.stats-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.three-col { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.stat-card.highlight {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-card), rgba(247, 147, 26, 0.05));
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===========================
   QUOTE BLOCK
=========================== */
.quote-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px 36px;
  margin: 48px 0;
  position: relative;
}

.quote-marks {
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0.6;
  margin-bottom: 12px;
  display: block;
}

.quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.quote-author {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===========================
   INSIGHT BOX
=========================== */
.insight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.insight-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.insight-content h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.insight-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.insight-content p:last-child { margin-bottom: 0; }

.insight-list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.insight-list li { margin-bottom: 10px; }

.insight-emphasis {
  color: var(--accent) !important;
  font-weight: 500;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px !important;
}

/* ===========================
   METRICS ROW
=========================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.metric-card.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(239, 68, 68, 0.05));
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-card.danger .metric-value { color: var(--red); }

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===========================
   TABLE
=========================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table thead {
  background: rgba(247, 147, 26, 0.08);
  border-bottom: 1px solid var(--accent-border);
}

.data-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.row-highlight td {
  background: rgba(247, 147, 26, 0.05) !important;
}

.row-highlight td strong { color: var(--accent); }

/* Comparison table specific */
.th-gold { color: #fbbf24 !important; }
.th-fiat { color: var(--text-secondary) !important; }
.th-btc { color: var(--accent) !important; }

.td-gold { color: #fbbf24 !important; }
.td-fiat { color: var(--text-muted) !important; }
.td-btc { color: var(--accent) !important; font-weight: 500; }

/* ===========================
   BADGES
=========================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-red {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-yellow {
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-orange {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ===========================
   BOOK INTRO
=========================== */
.book-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.book-visual {
  flex-shrink: 0;
}

.book-3d {
  display: flex;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.7));
}

.book-spine {
  width: 28px;
  background: linear-gradient(to right, #1a0e00, #3d2200);
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 147, 26, 0.4);
  font-size: 1rem;
  writing-mode: vertical-rl;
  min-height: 220px;
}

.book-front {
  width: 148px;
  min-height: 220px;
  background: linear-gradient(145deg, #1a1200, #2a1d00, #3d2a00);
  border-radius: 0 8px 8px 0;
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-left: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.08) 0%, transparent 60%);
}

.book-front-content {
  text-align: center;
  padding: 20px 16px;
  position: relative;
}

.book-front-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 10px;
}

.book-front-divider {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto;
  opacity: 0.5;
}

.book-front-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.book-front-year {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.book-summary h3 {
  margin-bottom: 16px;
}

.book-summary p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.book-summary p:last-child { margin-bottom: 0; }

/* ===========================
   FACTS GRID
=========================== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.fact-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.fact-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.fact-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.fact-stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.2;
}

.fact-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===========================
   ACCORDION
=========================== */
.deep-dives {
  margin-top: 64px;
}

.deep-dives h3 {
  margin-bottom: 8px;
}

.deep-dives-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.accordion-item.open {
  border-color: var(--accent-border);
}

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.accordion-btn:hover {
  background: rgba(255,255,255,0.02);
  color: var(--accent);
}

.accordion-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 24px 24px;
}

.accordion-item.open .accordion-body {
  display: block;
}

.accordion-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.accordion-body p:last-child { margin-bottom: 0; }

/* ===========================
   PROPERTIES GRID
=========================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.property-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.property-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.property-card h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.property-card p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.property-stat {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-block;
  line-height: 1.3;
}

/* ===========================
   COMPARISON SECTION
=========================== */
.comparison-section {
  margin-bottom: 48px;
}

.comparison-section h3 {
  margin-bottom: 24px;
}

.comparison-table .data-table { font-size: 0.85rem; }

/* ===========================
   RESOURCES
=========================== */
.resources-section {
  margin-top: 64px;
}

.resources-section h3 { margin-bottom: 10px; }

.resources-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.resource-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.resource-card.resource-featured {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-card), rgba(247, 147, 26, 0.04));
}

.resource-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.resource-author {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.resource-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-symbol {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer-sources {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   SOURCE LINKS
=========================== */
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.71rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  margin-top: 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.source-link:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.table-source-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -36px;
  margin-bottom: 48px;
  padding: 10px 18px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ===========================
   BIBLIOGRAPHY
=========================== */
.bibliography {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.bib-header {
  margin-bottom: 48px;
}

.bib-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.bib-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.bib-sections {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.bib-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.bib-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bib-entry {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.bib-num {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: right;
  padding-top: 2px;
  flex-shrink: 0;
}

.bib-content {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bib-content strong {
  color: var(--text-primary);
}

.bib-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  text-decoration: none;
  margin-top: 5px;
  opacity: 0.8;
}

.bib-url:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===========================
   BEFORE / AFTER COMPARISON
=========================== */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.ba-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ba-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.ba-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ba-col {
  flex: 1;
  text-align: center;
}

.ba-year {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.ba-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.ba-value-ok { color: var(--green); }
.ba-value-bad { color: var(--red); }

.ba-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ba-change {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ===========================
   DEBASEMENT TIMELINE
=========================== */
.timeline {
  position: relative;
  padding-left: 196px;
  margin-bottom: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 168px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 8%, var(--border) 92%, transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg-secondary);
  z-index: 1;
  box-sizing: border-box;
}

.timeline-item.item-red::before { background: var(--red); }
.timeline-item.item-orange::before { background: var(--yellow); }

.timeline-item.item-btc::before {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(247, 147, 26, 0.5);
  width: 16px;
  height: 16px;
  left: -6px;
}

.timeline-year {
  position: absolute;
  left: -196px;
  top: 11px;
  width: 156px;
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.timeline-item.item-btc .timeline-content {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-card), rgba(247, 147, 26, 0.04));
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.timeline-item.item-btc .timeline-content h4 { color: var(--accent); }

.timeline-content p {
  font-size: 0.87rem;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.timeline-content p:last-child { margin-bottom: 0; }

.timeline-stat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 5px 10px;
  margin: 10px 0;
}

/* ===========================
   LAYERED MONEY
=========================== */
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.layer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.layer-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.layer-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 3px;
}

.layer-examples {
  font-size: 0.76rem;
  opacity: 0.7;
}

.layer-trust {
  font-size: 0.7rem;
  text-align: right;
  line-height: 1.4;
  flex-shrink: 0;
  max-width: 180px;
}

.layer-1 {
  background: rgba(247, 147, 26, 0.14);
  border: 1px solid rgba(247, 147, 26, 0.35);
  color: var(--accent);
}

.layer-2 {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
}

.layer-3 {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.18);
  color: #67e8f9;
}

.layer-4 {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.layer-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 64px;
  line-height: 1.65;
  padding: 14px;
  border-top: 1px solid var(--border);
}

/* ===========================
   MILESTONES GRID
=========================== */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.milestone-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.milestone-card-btc {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--bg-card), rgba(247, 147, 26, 0.04));
}

.milestone-year {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.milestone-card-btc .milestone-year { color: var(--accent); }

.milestone-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.milestone-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.58;
  flex: 1;
}

.milestone-verdict {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
  line-height: 1.4;
}

.milestone-good {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.milestone-warn {
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.milestone-bad {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.milestone-btc {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 48px);
  }

  .hero-visual { display: none; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .before-after-grid { grid-template-columns: repeat(2, 1fr); }
  .milestones-grid { grid-template-columns: repeat(2, 1fr); }
  .layer-item { grid-template-columns: 60px 1fr; }
  .layer-trust { display: none; }
  .timeline { padding-left: 120px; }
  .timeline::before { left: 92px; }
  .timeline-year { left: -120px; width: 80px; font-size: 0.72rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(7, 9, 26, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-toggle { display: block; }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .three-col { grid-template-columns: 1fr; }
  .book-intro { grid-template-columns: 1fr; gap: 32px; }
  .book-visual { display: flex; justify-content: center; }

  .chart-card { padding: 20px 16px; }
  .quote-block { padding: 24px 20px; }
  .insight-box { flex-direction: column; }

  .timeline {
    padding-left: 0;
    border-left: 2px solid var(--border);
    margin-left: 16px;
  }
  .timeline::before { display: none; }
  .timeline-item { padding: 0 0 32px 28px; }
  .timeline-item::before { left: -7px; }
  .timeline-year {
    position: relative;
    left: auto; top: auto;
    width: auto;
    text-align: left;
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
  }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .before-after-grid { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: 1fr 1fr; }
}
