/* ===== BASE ===== */
:root {
  --bg: #0a0e17;
  --bg2: #0f1520;
  --bg3: #141c2b;
  --accent: #ff3d3d;
  --accent2: #ff6b35;
  --gold: #d4a843;
  --text: #e8e6e3;
  --text2: #b0b8c8;
  --text3: #556178;
  --border: #1e2a3a;
  --card: #111927;
  --card2: #0d1420;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

#particles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,61,61,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,67,0.02) 0%, transparent 50%);
}

.accent { color: var(--accent); }

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active {
  color: var(--accent);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  position: relative;
  background:
    linear-gradient(180deg, var(--bg) 0%, #060a12 50%, var(--bg) 100%);
}

.hero-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--accent);
  background: rgba(255,61,61,0.1);
  border: 1px solid rgba(255,61,61,0.3);
  padding: 0.4rem 1.5rem;
  margin-bottom: 2rem;
  display: inline-block;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline {
  font-size: 1.5rem;
  color: #c8cdd8;
  font-style: italic;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text3);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b0b8c8;
  margin-top: 0.3rem;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s;
  margin-bottom: 4rem;
}

.cta-btn:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,61,61,0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text3);
}

.scroll-arrow {
  font-size: 1.2rem;
  color: var(--text3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== TIMELINE ===== */
#timeline {
  background: linear-gradient(180deg, var(--bg) 0%, #060810 30%, #040608 70%, var(--bg) 100%);
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), var(--gold), var(--accent), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.left { justify-content: flex-start; padding-right: 55%; }
.timeline-item.right { justify-content: flex-end; padding-left: 55%; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 15px rgba(255,61,61,0.5);
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.timeline-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--gold);
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
}

.timeline-item::before {
  content: attr(data-depth);
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(calc(-50% + 25px));
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text3);
  opacity: 0.5;
}

/* ===== NETWORK ===== */
#network {
  background: var(--bg2);
}

.network-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.network-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.network-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.network-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
}

.tier-1::before { background: var(--accent); }
.tier-2::before { background: var(--accent2); }
.tier-3::before { background: var(--gold); }
.tier-4::before { background: #4a9eff; }
.tier-5::before { background: #8b5cf6; }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.card-icon { font-size: 1.2rem; }

.card-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text3);
}

.network-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.card-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.network-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

.card-source {
  display: block;
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text3);
}

/* ===== FLIGHT MAP (NEW) ===== */
#flight-map {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

#map-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

#leaflet-map {
  width: 100%;
  height: 550px;
  border: 1px solid var(--border);
  background: var(--bg);
  z-index: 1;
}

/* Dark map tiles override */
.leaflet-tile-pane { filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7); }
.leaflet-control-zoom a { background: var(--card) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-control-attribution { background: rgba(10,14,23,0.8) !important; color: var(--text3) !important; font-size: 0.65rem !important; }
.leaflet-control-attribution a { color: var(--text3) !important; }
.leaflet-popup-content-wrapper { background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--accent) !important; border-radius: 0 !important; box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255,61,61,0.1) !important; }
.leaflet-popup-tip { background: var(--card) !important; border: 1px solid var(--accent) !important; }
.leaflet-popup-content { font-family: 'Source Sans Pro', sans-serif; font-size: 0.85rem; }
.leaflet-popup-content h4 { font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 0.3rem; }
.leaflet-popup-content .popup-code { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 0.75rem; }
.leaflet-popup-content .popup-flights { color: var(--text2); font-size: 0.8rem; margin-top: 0.5rem; max-height: 200px; overflow-y: auto; }
.leaflet-popup-content .popup-flights div { padding: 0.2rem 0; border-bottom: 1px solid var(--border); }

.map-legend {
  position: absolute;
  bottom: 30px;
  left: 10px;
  background: rgba(10,14,23,0.9);
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  z-index: 500;
  font-size: 0.7rem;
  backdrop-filter: blur(8px);
}
.map-legend .legend-title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  font-size: 0.6rem;
}
.map-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b0b8c8;
  margin-bottom: 0.25rem;
}
.legend-line-map {
  width: 20px;
  height: 0;
  border-top-style: solid;
  border-top-color: #ff3d3d;
  flex-shrink: 0;
}
.legend-line-map.thick { border-top-width: 5px; opacity: 0.8; }
.legend-line-map.medium { border-top-width: 3px; opacity: 0.5; }
.legend-line-map.thin { border-top-width: 1px; opacity: 0.3; }
.legend-dot-map {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4a843;
  box-shadow: 0 0 6px rgba(212,168,67,0.5);
  flex-shrink: 0;
}

.map-info-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 280px;
  background: rgba(17,25,39,0.95);
  border: 1px solid var(--border);
  padding: 1rem;
  z-index: 500;
  backdrop-filter: blur(10px);
}

.map-info-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.map-info-body {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== EMAIL EXPLORER (NEW) ===== */
#emails {
  background: var(--bg2);
}

.email-explorer {
  max-width: 1200px;
  margin: 0 auto;
}

.email-controls {
  margin-bottom: 1.5rem;
}

.email-search-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--card);
  border: 2px solid #2a3a50;
  color: var(--text);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.email-search-input::placeholder { color: var(--text3); }
.email-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,61,61,0.15); }

.email-stats-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text3);
}

.email-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
}

.email-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.email-table thead {
  background: var(--card2);
  position: sticky;
  top: 0;
}

.email-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.email-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: top;
}

.email-table tbody tr {
  background: var(--card);
  cursor: pointer;
  transition: background 0.2s;
}

.email-table tbody tr:hover { background: #1a2538; }

.email-table .col-date { width: 110px; }
.email-table .col-from, .email-table .col-to { width: 160px; }
.email-table .col-subject { min-width: 300px; }

.email-table td.td-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text3);
  white-space: nowrap;
}

.email-table td.td-from { color: var(--gold); font-weight: 600; }
.email-table td.td-to { color: var(--gold); font-weight: 600; }
.email-table td.td-subject { color: var(--text); }

.email-table td .redacted {
  color: #556178;
  font-style: italic;
  font-weight: 400;
}

.email-preview-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--accent) !important;
}

.email-preview-content {
  padding: 1rem 1.5rem;
  background: var(--card2);
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.8;
  border-left: 3px solid var(--accent);
  margin: 0;
}

.email-preview-content .preview-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text3);
  margin-bottom: 0.5rem;
}

.email-pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.email-pagination button {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 0.5rem 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.email-pagination button:hover { border-color: var(--accent); color: var(--text); }
.email-pagination button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.email-pagination button.prev-next {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  padding: 0.5rem 1.4rem;
}
.email-pagination button.prev-next:hover {
  background: var(--accent);
  color: white;
}

/* ===== NETWORK VISUALIZATION (NEW) ===== */
#network-viz {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

#network-viz-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--border);
  background: var(--card2);
  overflow: hidden;
}

#network-svg {
  width: 100%;
  height: 600px;
  display: block;
}

.network-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(17,25,39,0.95);
  border: 1px solid var(--accent);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text);
  display: none;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.network-tooltip .tt-name {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.95rem;
}

.network-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(10,14,23,0.9);
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  font-size: 0.7rem;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.network-legend .legend-title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
}
.network-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b0b8c8;
  margin-bottom: 0.3rem;
}
.network-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.network-legend .legend-line {
  flex-shrink: 0;
  width: 20px;
  height: 0;
  border-top: 2px solid #ff3d3d;
}
.network-legend .legend-line.thick { border-top-width: 4px; }
.network-legend .legend-line.thin { border-top-width: 1px; opacity: 0.5; }
.network-legend .legend-note {
  color: #556178;
  font-style: italic;
  margin-top: 0.4rem;
}

.network-tooltip .tt-count {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ===== ISLAND ===== */
#island {
  background: linear-gradient(180deg, var(--bg) 0%, #080c15 100%);
}

.island-content {
  max-width: 900px;
  margin: 0 auto;
}

.island-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

.island-fact {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.3s;
}

.island-fact:hover {
  border-color: var(--gold);
}

.fact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.island-fact h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.island-fact p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ===== FLIGHTS ===== */
#flights {
  background: var(--bg2);
}

.flights-container {
  max-width: 900px;
  margin: 0 auto;
}

.flight-entry {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.flight-header {
  margin-bottom: 0.8rem;
}

.flight-plane {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.flight-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
}

.flight-log {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.log-entry {
  background: var(--card);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
}

.log-route {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.log-freq {
  font-size: 0.75rem;
  color: var(--text3);
  display: block;
  margin-bottom: 0.5rem;
}

.log-entry p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

.flight-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flight-stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.flight-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}

.flight-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
  margin-top: 0.3rem;
  display: block;
}

/* ===== PASSENGER LEADERBOARD (NEW) ===== */
#passengers {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

#passenger-chart-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
}

#passenger-chart {
  width: 100%;
  height: 500px;
  display: block;
}

/* ===== DOCUMENTS ===== */
#documents {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.docs-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s;
}

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

.doc-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--accent);
  background: rgba(255,61,61,0.1);
  border: 1px solid rgba(255,61,61,0.3);
  padding: 0.2rem 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

.doc-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.doc-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text3);
  display: block;
  margin-bottom: 0.8rem;
}

.doc-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

.doc-date {
  display: block;
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
}

/* ===== FACTS ===== */
#facts {
  background: var(--bg);
}

.facts-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.fact-card:hover {
  border-color: var(--accent);
}

.fact-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
}

.fact-card p {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.8;
}

.fact-card strong {
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text3);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,61,61,0.03);
}

.footer-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text2);
}

.footer-token {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255,61,61,0.05);
  border: 1px solid rgba(255,61,61,0.2);
  display: inline-block;
}

.token-label {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.token-ca {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  word-break: break-all;
  cursor: pointer;
  transition: color 0.3s;
}

.token-ca:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10,14,23,0.95);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }

  .timeline-line { left: 20px; }
  .timeline-item { padding-left: 50px !important; padding-right: 0 !important; justify-content: flex-start !important; }
  .timeline-dot { left: 20px !important; }
  .timeline-item::before { left: 40px !important; transform: none !important; }

  .network-grid, .docs-grid { grid-template-columns: 1fr; }
  .island-facts { grid-template-columns: 1fr; }
  .flight-stats { grid-template-columns: repeat(2, 1fr); }

  .fact-card { flex-direction: column; gap: 0.5rem; }

  /* New sections responsive */
  #leaflet-map { height: 400px; }
  .map-info-panel { position: relative; top: auto; right: auto; width: 100%; margin-top: 1rem; }
  #network-svg { height: 400px; }
  #passenger-chart { height: 400px; }
  .email-table .col-from, .email-table .col-to { width: 120px; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle scan line effect */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
}
