/* ============================================================
   PROJECT 2050 — CIVILIZATION BLUEPRINT
   Oroboros Labs — DARK ROYAL with accent white band
   ============================================================ */

:root {
  --royal: #002366;
  --royal-deep: #001233;
  --royal-ink: #00081a;
  --azure: #1656c7;
  --azure-bright: #2a6fd6;
  --sky: #6aa8ff;
  --ice: #eaf1fb;
  --paper: #ffffff;
  --gold: #e6c04a;
  --gold-deep: #c9a227;

  --text: #eef3ff;
  --text-mute: #a9b8d9;
  --text-dim: #7283a6;
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-gold: rgba(230, 192, 74, 0.30);

  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.30), 0 16px 40px rgba(0, 0, 0, 0.30);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.35), 0 28px 60px rgba(0, 0, 0, 0.45);

  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Inter", "Helvetica Neue", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--royal-ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(106, 168, 255, 0.35);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: #fff; border-bottom-color: #fff; }

/* ============================================================
   CLASSIFICATION STRIPS
   ============================================================ */

.classification-bar {
  background: linear-gradient(90deg, var(--royal-deep), var(--royal), var(--royal-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  position: relative;
  z-index: 10;
}
.classification-bar.top { border-top: none; }
.classification-bar .sep {
  display: inline-block;
  color: var(--gold);
  margin: 0 10px;
  font-weight: 900;
}

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 8, 26, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
}
.brand svg { width: 28px; height: 28px; color: var(--gold); }
.brand .bar { color: var(--gold); }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-mute);
  border: none;
}
.nav-links a:hover { color: var(--gold); }

/* ============================================================
   HERO — giant globe on right, content on left, dark field
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background:
    radial-gradient(900px 500px at 90% 40%, rgba(42, 111, 214, 0.28) 0%, transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(230, 192, 74, 0.10) 0%, transparent 65%),
    linear-gradient(180deg, var(--royal-ink) 0%, var(--royal-deep) 100%);
  padding: 120px 28px 140px;
}

/* scanline texture overlay (noir-style) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.016) 0px,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
  z-index: 1;
}

.hero .inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  display: block;
}
.hero .inner > div:first-child {
  position: relative;
  z-index: 3;
  max-width: 780px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.hero h1 .highlight {
  display: inline-block;
  background: linear-gradient(180deg, transparent 62%, rgba(230, 192, 74, 0.45) 62%);
  padding: 0 6px;
  color: #fff;
}
.hero .kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero p.lede {
  font-size: 20px;
  color: var(--text-mute);
  max-width: 620px;
  margin: 0 0 36px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--royal-ink);
  box-shadow: var(--shadow-1);
  border-color: var(--gold);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* hero globe — just the gold ring, large, mostly off-page right, 30% */
.hero-globe {
  position: absolute;
  right: -252px;
  top: 50%;
  transform: translateY(-50%);
  width: 540px;
  max-width: 90vw;
  aspect-ratio: 1 / 1;
  z-index: 1;            /* BEHIND the text */
  pointer-events: none;
  opacity: 0.55;
}
.hero-globe svg,
.hero-globe canvas,
.hero-globe img {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
  animation: earthSpin 80s linear infinite;
}

@keyframes earthSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   X-STYLE CARDS
   ============================================================ */

.x-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.x-card {
  position: relative;
  border-radius: 18px;
  padding: 30px 28px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.x-card:hover { transform: translateY(-3px); }

/* globe watermark inside each card */
.x-card .card-globe {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  animation: earthSpin 80s linear infinite;
}
.x-card .card-globe img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.x-card > * { position: relative; z-index: 1; }

/* card header row */
.x-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.x-card-header .x-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-card-header .x-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.x-card-header .x-handle {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.x-card-header .x-sub {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.x-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.x-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 auto;
  opacity: 0.80;
}
.x-card-footer {
  margin-top: 28px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ── BLACK variant ── */
.x-card.x-black {
  background: #000;
  border: 1px solid rgba(255,255,255,0.13);
  color: #fff;
  box-shadow: 0 4px 28px rgba(0,0,0,0.6);
}
.x-card.x-black:hover { box-shadow: 0 8px 48px rgba(0,0,0,0.8); }
.x-card.x-black .x-handle { color: #fff; }
.x-card.x-black .x-card-footer { border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.x-card.x-black .x-card-footer .x-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
}
.x-card.x-black .x-logo { background: rgba(255,255,255,0.08); }

/* ── BLUEPRINT variant ── */
.x-card.x-blueprint {
  background: #000d2e;
  border: 1px solid rgba(42,111,214,0.55);
  color: #fff;
  box-shadow: 0 4px 40px rgba(22,86,199,0.25);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(42,111,214,0.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(42,111,214,0.06) 40px);
}
.x-card.x-blueprint:hover { box-shadow: 0 8px 60px rgba(22,86,199,0.40); }
.x-card.x-blueprint h3 { color: var(--sky); }
.x-card.x-blueprint .x-handle { color: var(--sky); }
.x-card.x-blueprint .x-logo { background: rgba(42,111,214,0.15); border: 1px solid rgba(42,111,214,0.4); }
.x-card.x-blueprint .x-card-footer { border-top: 1px solid rgba(42,111,214,0.25); color: rgba(106,168,255,0.65); }
.x-card.x-blueprint .x-tag {
  background: rgba(42,111,214,0.15);
  border: 1px solid rgba(42,111,214,0.4);
  color: var(--sky);
  padding: 5px 12px;
  border-radius: 999px;
}
.x-card.x-blueprint .card-globe { opacity: 0.08; mix-blend-mode: screen; }

/* ── NEUTRAL / WHITE variant ── */
.x-card.x-neutral {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.x-card.x-neutral:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.18); }
.x-card.x-neutral h3 { color: #000; }
.x-card.x-neutral p { color: #3a3a3a; opacity: 1; }
.x-card.x-neutral .x-handle { color: #000; }
.x-card.x-neutral .x-sub { color: #555; }
.x-card.x-neutral .x-logo { background: #f0f0f0; border: 1px solid rgba(0,0,0,0.10); }
.x-card.x-neutral .x-card-footer { border-top: 1px solid rgba(0,0,0,0.10); color: #888; }
.x-card.x-neutral .x-tag {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.15);
  color: #333;
  padding: 5px 12px;
  border-radius: 999px;
}
.x-card.x-neutral .card-globe { opacity: 0.07; }

@media (max-width: 700px) {
  .x-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADVERTISEMENT CARDS — all royal blue, no globes
   ============================================================ */

.ad-section {
  padding: 120px 28px;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(42, 111, 214, 0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(230, 192, 74, 0.06), transparent 65%),
    var(--royal-ink);
  position: relative;
}

/* the ONE white gradient band — used by the documents section */
.ad-section.alt {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(0, 35, 102, 0.10), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  border-top: 1px solid rgba(0, 35, 102, 0.10);
  border-bottom: 1px solid rgba(0, 35, 102, 0.10);
}
.ad-section.alt .section-header h2 { color: var(--royal); }
.ad-section.alt .section-header p { color: #3a4a6b; }
.ad-section.alt .section-header .eyebrow { color: var(--gold-deep); }

.section-header {
  max-width: 1240px;
  margin: 0 auto 56px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.section-header .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 52px);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 16px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 720px;
  margin: 0 auto;
}

.ad-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 2;
}

/* unified glass card */
.ad-card,
.ad-card.royal {
  position: relative;
  background: rgba(0, 18, 64, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.ad-card:hover,
.ad-card.royal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(230, 192, 74, 0.35);
}

/* ── GOLD-GRADE HOUSING CARD ─────────────────────────────────── */
.ad-card.gold-grade {
  background:
    linear-gradient(135deg, rgba(230, 192, 74, 0.16) 0%, rgba(201, 162, 39, 0.07) 55%, rgba(0, 10, 42, 0.22) 100%);
  border: 1px solid rgba(230, 192, 74, 0.42);
  box-shadow: 0 0 38px rgba(230, 192, 74, 0.14), var(--shadow-1);
}
.ad-card.gold-grade:hover {
  border-color: rgba(230, 192, 74, 0.68);
  box-shadow: 0 0 64px rgba(230, 192, 74, 0.24), var(--shadow-2);
}
.ad-card.gold-grade h3 {
  background: linear-gradient(135deg, #f5e070, #e6c04a, #c9a227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ad-card.gold-grade .card-eyebrow { color: #f0d060; }
.ad-card.gold-grade .tag {
  background: rgba(230, 192, 74, 0.14);
  border-color: rgba(230, 192, 74, 0.30);
  color: var(--gold);
}
.ad-card.gold-grade .card-footer { border-top-color: rgba(230, 192, 74, 0.28); }
.ad-card.gold-grade::before {
  background: radial-gradient(circle, rgba(230, 192, 74, 0.18) 0%, transparent 65%);
}

/* subtle interior glow (replaces the old globe image) */
.ad-card::before {
  content: "";
  position: absolute;
  right: -40%;
  bottom: -40%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(42, 111, 214, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* hide any legacy globe markup still present in the HTML */
.ad-card .globe { display: none !important; }

.ad-card > .content { position: relative; z-index: 2; }

.card-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.ad-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}
.ad-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}
.ad-card ul {
  padding-left: 18px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
}
.ad-card li { margin-bottom: 6px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-footer a { color: var(--gold); border-bottom-color: rgba(230, 192, 74, 0.40); }
.card-footer a:hover { color: #fff; border-bottom-color: #fff; }

/* corner ouroboros logos — removed on every card */
.ad-card .corner { display: none !important; }

/* in the white documents band, flip card surfaces to light royal */
.ad-section.alt .ad-card,
.ad-section.alt .ad-card.royal {
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  color: var(--royal-ink);
  border: 1px solid rgba(0, 35, 102, 0.18);
  box-shadow: 0 6px 24px rgba(0, 35, 102, 0.10);
}
.ad-section.alt .ad-card::before {
  background: radial-gradient(circle, rgba(42, 111, 214, 0.10) 0%, transparent 65%);
}
.ad-section.alt .ad-card h3 { color: var(--royal); }
.ad-section.alt .ad-card p { color: #364864; }
.ad-section.alt .ad-card .card-eyebrow { color: var(--gold-deep); }
.ad-section.alt .ad-card .tag {
  background: rgba(0, 35, 102, 0.06);
  color: var(--royal);
  border-color: rgba(0, 35, 102, 0.15);
}
.ad-section.alt .ad-card .card-footer {
  border-top-color: rgba(0, 35, 102, 0.15);
  color: #4a5a77;
}
.ad-section.alt .ad-card .card-footer a {
  color: var(--royal);
  border-bottom-color: rgba(0, 35, 102, 0.35);
}

/* ============================================================
   KEY JUDGMENTS BLOCK
   ============================================================ */

.kj-section {
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(42, 111, 214, 0.20), transparent 60%),
    var(--royal-deep);
  color: #fff;
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.kj-section .inner { max-width: 1240px; margin: 0 auto; position: relative; }
.kj-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 52px);
  margin: 0 0 48px;
  letter-spacing: -0.01em;
  color: #fff;
}
.kj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.kj-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.kj-card .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
}
.kj-card p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 16px; }

/* ============================================================
   TIMELINE STRIP
   ============================================================ */

.timeline {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 28px;
  color: #fff;
}
.timeline .section-header h2 { color: #fff; }
.timeline .section-header p { color: var(--text-mute); }
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 40px;
}
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--azure-bright), var(--gold));
  opacity: 0.6;
}
.phase {
  position: relative;
  padding: 0 12px;
  text-align: center;
}
.phase .dot {
  width: 22px; height: 22px;
  background: var(--royal-ink);
  border: 4px solid var(--gold);
  border-radius: 999px;
  margin: 38px auto 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(230, 192, 74, 0.15);
}
.phase .years {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 4px;
}
.phase h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.phase p { font-size: 14px; color: var(--text-mute); margin: 0; }

/* ============================================================
   DOC READER PAGES
   ============================================================ */

.doc-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 28px 120px;
  color: var(--text);
}
.doc-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.doc-wrap h2 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.doc-wrap h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--sky);
  margin: 32px 0 10px;
}
.doc-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-family: var(--font-display);
  font-size: 14px;
}
.doc-wrap th, .doc-wrap td {
  border: 1px solid var(--line-dark);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}
.doc-wrap th { background: rgba(255, 255, 255, 0.04); color: var(--gold); }
.doc-wrap code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--sky);
}
.doc-wrap pre {
  font-family: var(--font-mono);
  background: #000412;
  color: var(--ice);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid var(--line-dark);
}
.doc-wrap pre code { background: transparent; color: inherit; padding: 0; }
.doc-wrap blockquote {
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #000412;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 28px 32px;
  border-top: 1px solid var(--line-dark);
}
.site-footer .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.site-footer h5 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); border: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .hero-globe { width: 468px; right: -216px; opacity: 0.3; }
}

@media (max-width: 900px) {
  .hero { padding: 80px 20px 96px; min-height: 560px; }
  .hero-globe {
    right: -192px;
    width: 408px;
    max-width: 120vw;
    opacity: 0.28;
  }
  .nav-links { gap: 14px; font-size: 12px; }
  .site-footer .inner { grid-template-columns: 1fr; }
  .timeline-track { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .timeline-track::before { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .hero p.lede { font-size: 17px; }
  .brand { font-size: 13px; }
  .nav-links { display: none; }
  .ad-card { padding: 32px 22px 24px; }
  .ad-card h3 { font-size: 22px; }
}
