@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Bebas+Neue&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
  --red: #8B1A1A;
  --red-bright: #C41E3A;
  --red-dim: #5a1010;
  --red-glow: rgba(196,30,58,0.3);
  --gold: #B8960C;
  --gold-bright: #D4AF37;
  --gold-glow: rgba(212,175,55,0.25);
  --gunmetal: #2C3539;
  --crimson: #8B0000;
  --bg: #060407;
  --bg-panel: rgba(8,6,10,0.94);
  --border: rgba(184,150,12,0.18);
  --border-bright: rgba(184,150,12,0.4);
  --text: #c4bdb0;
  --text-dim: rgba(196,189,176,0.5);
  --mono: 'Share Tech Mono', monospace;
  --display: 'Bebas Neue', sans-serif;
  --body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  cursor: crosshair;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 9999;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  z-index: 9998;
}
#city-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
#scroll-container { position: relative; z-index: 10; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: linear-gradient(180deg, rgba(6,4,7,0.98) 0%, rgba(6,4,7,0.88) 100%);
  border-bottom: 2px solid var(--gold-bright);
  box-shadow: 0 0 30px rgba(212,175,55,0.15);
  backdrop-filter: blur(2px);
}
.nav-logo {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 10px;
  color: var(--gold-bright);
  text-shadow: 0 0 30px var(--gold-glow), 0 0 80px rgba(212,175,55,0.12);
}
.nav-logo span { color: rgba(196,189,176,0.4); font-size: 12px; letter-spacing: 4px; font-family: var(--mono); vertical-align: middle; margin-left: 8px; }
.nav-status {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(184,150,12,0.5);
}
.status-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold-bright);
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 2s infinite;
  box-shadow: 0 0 6px var(--gold-bright);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.45;
  transition: all 0.3s;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--gold-bright); opacity: 1; text-shadow: 0 0 10px var(--gold-glow); }
.nav-center {
   display: flex;
   gap: 50px;
   align-items: center;
}
.nav-links {
   display: flex;
   gap: 36px;
   font-family: var(--mono);
   font-size: 11px;
   letter-spacing: 2px;
}
.nav-links a {
   color: var(--text);
   text-decoration: none;
   opacity: 0.7;
   transition: all 0.3s;
   text-transform: uppercase;
   border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--gold-bright); opacity: 1; text-shadow: 0 0 15px var(--gold-glow); border-bottom-color: var(--gold-bright); }

.nav-social {
   display: flex;
   gap: 14px;
   align-items: center;
}
.social-link {
   width: 42px;
   height: 42px;
   border: 1px solid var(--gold-bright);
   border-radius: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--bg);
   background: var(--gold-bright);
   text-decoration: none;
   transition: all 0.3s;
   font-size: 18px;
   opacity: 1;
   box-shadow: 0 0 18px rgba(212,175,55,0.28);
}
.social-link:hover {
   border-color: #fff;
   color: #fff;
   background: transparent;
   box-shadow: 0 0 28px rgba(212,175,55,0.55);
   transform: translateY(-1px);
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-bright);
  background: rgba(6,4,7,0.92);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold-bright);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── SECTIONS ─── */
section { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 80px 60px; }

/* ─── HERO ─── */
#hero { flex-direction: column; justify-content: flex-end; padding-bottom: 100px; }
.hero-content { max-width: 900px; opacity: 0; transform: translateY(40px); }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.7;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-glow);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.88;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 60px rgba(212,175,55,0.12);
  margin-bottom: 4px;
}
.hero-title .gold { color: var(--gold-bright); text-shadow: 0 0 40px var(--gold-glow), 0 0 100px rgba(212,175,55,0.1); }
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 1px;
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
  margin-top: 20px;
}
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  padding: 16px 44px;
  background: var(--gold-bright);
  color: #060407;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 20px rgba(255,255,255,0.08);
  font-weight: 600;
  text-decoration: none;
}
.btn-primary:hover { background: #fff; color: var(--bg); box-shadow: 0 0 60px var(--gold-glow); }
.btn-ghost {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  padding: 15px 44px;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(196,189,176,0.25);
  cursor: pointer;
  text-transform: uppercase;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
}
.btn-ghost:hover { background: rgba(196,189,176,0.08); border-color: rgba(196,189,176,0.5); box-shadow: 0 0 20px rgba(196,189,176,0.08); }

/* ─── HUD CORNERS ─── */
.hud-corner { position: absolute; width: 50px; height: 50px; }
.hud-corner.tl { top: 20px; left: 20px; border-top: 1px solid var(--gold-bright); border-left: 1px solid var(--gold-bright); opacity: 0.4; }
.hud-corner.tr { top: 20px; right: 20px; border-top: 1px solid var(--gold-bright); border-right: 1px solid var(--gold-bright); opacity: 0.4; }
.hud-corner.bl { bottom: 20px; left: 20px; border-bottom: 1px solid var(--gold-bright); border-left: 1px solid var(--gold-bright); opacity: 0.4; }
.hud-corner.br { bottom: 20px; right: 20px; border-bottom: 1px solid var(--gold-bright); border-right: 1px solid var(--gold-bright); opacity: 0.4; }

/* ─── TICKER ─── */
.ticker-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,4,7,0.97);
  border-top: 1px solid var(--border);
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-bright);
  padding: 0 20px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.8;
}
.ticker-track { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; will-change: transform; }
.ticker-item { font-family: var(--mono); font-size: 9px; color: rgba(184,150,12,0.45); padding: 0 40px; border-right: 1px solid rgba(184,150,12,0.08); }
.ticker-item .val { color: var(--gold-bright); margin-left: 8px; }
.ticker-item .confirmed { color: rgba(180,200,160,0.7); }

/* ─── SECTION TYPOGRAPHY ─── */
#mission { flex-direction: column; align-items: center; text-align: center; background: linear-gradient(180deg, transparent 0%, rgba(6,4,7,0.97) 30%, rgba(6,4,7,0.97) 70%, transparent 100%); }
#mission .section-label { justify-content: center; }
#missionTitle { text-align: left; }
.section-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
}
.section-label::after { content: ''; display: block; width: 80px; height: 1px; background: linear-gradient(90deg, var(--gold-bright), transparent); opacity: 0.5; }
.section-title {
  font-family: var(--display);
  font-size: clamp(50px, 7vw, 100px);
  line-height: 0.95;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 30px;
  opacity: 0;
}
.section-title .accent { color: var(--gold-bright); }

/* ─── MISSION CARDS ─── */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: 1200px; width: 100%; margin: 40px auto 0; align-self: center; }
.mission-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.mission-card::before { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 100%; background: linear-gradient(180deg, var(--gold-bright), transparent); opacity: 0.5; }
.mission-card:hover { border-color: var(--border-bright); box-shadow: 0 0 40px rgba(184,150,12,0.06), inset 0 0 30px rgba(184,150,12,0.02); }
.card-icon { font-size: 9px; font-family: var(--mono); color: var(--gold-bright); letter-spacing: 3px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; opacity: 0.7; }
.card-icon-sym { width: 30px; height: 30px; border: 1px solid var(--border-bright); display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 0 10px var(--gold-glow); color: var(--gold-bright); }
.card-title { font-family: var(--display); font-size: 30px; letter-spacing: 3px; color: #fff; margin-bottom: 12px; }
.card-body { font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--text-dim); }
.card-stat { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; color: rgba(184,150,12,0.5); display: flex; justify-content: space-between; align-items: center; }
.card-stat .num { font-size: 20px; color: var(--gold-bright); font-family: var(--display); letter-spacing: 2px; }
.card-classified { font-family: var(--mono); font-size: 8px; letter-spacing: 3px; color: rgba(196,30,58,0.6); margin-top: 8px; }

/* ─── COMMAND / VAULT INTERFACE ─── */
#command { flex-direction: column; background: linear-gradient(180deg, transparent 0%, rgba(6,4,7,0.98) 20%, rgba(6,4,7,0.98) 80%, transparent 100%); }
.command-interface { width: 100%; max-width: 1400px; display: grid; grid-template-columns: 280px 1fr 280px; gap: 2px; height: 700px; }
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
  overflow: hidden;
  opacity: 0;
}
.panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); opacity: 0.3; }
.panel-header {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--gold-bright);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.7;
}
.panel-header-dot { width: 5px; height: 5px; background: var(--gold-bright); border-radius: 50%; animation: blink 2s infinite; box-shadow: 0 0 5px var(--gold-bright); }

/* Society ranks list (left panel) */
.rank-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(184,150,12,0.06); font-family: var(--mono); font-size: 10px; }
.rank-badge { width: 28px; height: 28px; border: 1px solid var(--border-bright); display: flex; align-items: center; justify-content: center; font-size: 9px; flex-shrink: 0; color: var(--gold-bright); }
.rank-badge.mythic { border-color: var(--gold-bright); box-shadow: 0 0 10px var(--gold-glow); }
.rank-badge.legendary { border-color: rgba(184,150,12,0.7); }
.rank-badge.elite { border-color: rgba(184,150,12,0.45); }
.rank-badge.rare { border-color: rgba(184,150,12,0.25); }
.rank-badge.recruit { border-color: rgba(184,150,12,0.12); }
.rank-name { color: #fff; font-size: 11px; }
.rank-desc { color: var(--text-dim); font-size: 9px; }
.rank-access { margin-left: auto; font-size: 9px; }
.rank-access.full { color: var(--gold-bright); }
.rank-access.elevated { color: rgba(184,150,12,0.7); }
.rank-access.standard { color: var(--text-dim); }
.rank-classified {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(184,150,12,0.12);
  background: rgba(184,150,12,0.025);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.rank-classified strong { color: var(--gold-bright); font-weight: 400; }

/* Vault metrics */
.center-panel { display: flex; flex-direction: column; gap: 2px; }
.center-top { background: var(--bg-panel); border: 1px solid var(--border); flex: 1; position: relative; overflow: hidden; opacity: 0; }
.center-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.metric-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  position: relative;
  opacity: 0;
}
.metric-box::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--gold-bright); opacity: 0.3; }
.metric-val { font-family: var(--display); font-size: 34px; letter-spacing: 2px; color: var(--gold-bright); text-shadow: 0 0 20px var(--gold-glow); display: block; }
.metric-val.secured { color: rgba(180,200,160,0.8); text-shadow: 0 0 12px rgba(180,200,160,0.3); }
.metric-val.classified { color: rgba(196,30,58,0.8); text-shadow: 0 0 12px rgba(196,30,58,0.2); }
.metric-label { font-family: var(--mono); font-size: 8px; letter-spacing: 3px; color: rgba(184,150,12,0.4); text-transform: uppercase; margin-top: 4px; }

/* Log feed */
.log-feed { display: flex; flex-direction: column; gap: 4px; overflow: hidden; height: 100%; }
.log-entry { font-family: var(--mono); font-size: 9px; line-height: 1.8; border-left: 2px solid transparent; padding-left: 8px; animation: slideInLog 0.3s ease; }
.log-entry.ok { border-color: rgba(180,200,160,0.6); color: rgba(180,200,160,0.7); }
.log-entry.warn { border-color: var(--gold-bright); color: rgba(184,150,12,0.8); }
.log-entry.crit { border-color: var(--red-bright); color: rgba(196,30,58,0.9); animation: blink 1.2s infinite; }
.log-entry .ts { color: rgba(196,189,176,0.25); margin-right: 8px; }

/* ─── ECOSYSTEM PILLARS ─── */
#capabilities { flex-direction: column; background: linear-gradient(180deg, transparent 0%, rgba(6,4,7,0.97) 20%, rgba(6,4,7,0.97) 80%, transparent 100%); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 1300px; width: 100%; margin-top: 60px; }
.cap-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
}
.cap-item:hover { border-color: var(--border-bright); }
.cap-item:hover .cap-bg-sym { opacity: 0.05; }
.cap-bg-sym { position: absolute; bottom: -10px; right: -10px; font-family: var(--display); font-size: 100px; color: var(--gold-bright); opacity: 0.02; transition: opacity 0.4s; pointer-events: none; line-height: 1; }
.cap-label { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; color: var(--gold-bright); margin-bottom: 20px; opacity: 0.6; display: flex; align-items: center; gap: 10px; }
.cap-label::before { content: ''; display: block; width: 16px; height: 1px; background: var(--gold-bright); opacity: 0.5; }
.cap-title { font-family: var(--display); font-size: 26px; letter-spacing: 2px; color: #fff; margin-bottom: 14px; }
.cap-desc { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--text-dim); }
.cap-tag { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 8px; letter-spacing: 2px; padding: 4px 12px; border: 1px solid var(--border); color: rgba(184,150,12,0.5); text-transform: uppercase; }

/* ─── INTELLIGENCE TERMINAL ─── */
#roadmap { flex-direction: column; background: rgba(6,4,7,0.98); }
.roadmap-grid { width: 100%; max-width: 1300px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 50px; counter-reset: roadmap; }
.roadmap-phase {
  min-height: 210px;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.roadmap-phase::before {
  counter-increment: roadmap;
  content: "0" counter(roadmap);
  position: absolute;
  right: 18px;
  bottom: -18px;
  font-family: var(--display);
  font-size: 100px;
  color: var(--gold-bright);
  opacity: 0.025;
}
.roadmap-phase::after { content: ''; position: absolute; top: 0; left: 0; width: 36px; height: 1px; background: var(--gold-bright); box-shadow: 0 0 12px var(--gold-glow); }
.phase-number { font-family: var(--mono); font-size: 9px; letter-spacing: 4px; color: var(--gold-bright); opacity: 0.65; margin-bottom: 22px; }
.phase-title { font-family: var(--display); font-size: 28px; letter-spacing: 2px; color: #fff; }
.phase-status { margin-top: 42px; font-family: var(--mono); font-size: 8px; letter-spacing: 2px; color: var(--text-dim); }

#alerts { background: rgba(6,4,7,0.98); flex-direction: column; }
.alert-terminal {
  width: 100%;
  max-width: 1200px;
  background: rgba(4,3,6,0.97);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  position: relative;
  opacity: 0;
}
.terminal-bar {
  background: rgba(184,150,12,0.06);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--gold-bright);
  letter-spacing: 3px;
  opacity: 0.8;
}
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.td-gold { background: var(--gold-bright); box-shadow: 0 0 6px var(--gold-bright); }
.td-dim { background: rgba(184,150,12,0.3); }
.td-red { background: rgba(196,30,58,0.7); }
.terminal-body { padding: 24px; height: 400px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.t-line { display: flex; gap: 16px; line-height: 1.6; animation: slideInLog 0.3s ease; }
.t-time { color: rgba(196,189,176,0.25); flex-shrink: 0; }
.t-level { flex-shrink: 0; width: 72px; }
.t-level.CRIT { color: rgba(196,30,58,0.9); }
.t-level.WARN { color: var(--gold-bright); }
.t-level.INFO { color: rgba(184,150,12,0.5); }
.t-level.OK { color: rgba(180,200,160,0.7); }
.t-msg { color: rgba(196,189,176,0.65); }
.t-source { color: rgba(196,189,176,0.25); margin-left: auto; flex-shrink: 0; }

/* ─── FINAL CTA ─── */
#cta-final { flex-direction: column; text-align: center; background: radial-gradient(ellipse at center, rgba(184,150,12,0.04) 0%, transparent 70%); padding-bottom: 120px; }
.cta-pre { font-family: var(--mono); font-size: 10px; letter-spacing: 8px; color: var(--gold-bright); text-transform: uppercase; margin-bottom: 20px; opacity: 0; }
.cta-title { font-family: var(--display); font-size: clamp(60px, 9vw, 120px); line-height: 0.95; color: #fff; letter-spacing: 4px; margin-bottom: 24px; text-shadow: 0 0 80px rgba(184,150,12,0.1); opacity: 0; }
.cta-title .gold { color: var(--gold-bright); text-shadow: 0 0 40px var(--gold-glow); }
.cta-sub { font-size: 17px; font-weight: 300; color: var(--text-dim); max-width: 500px; margin: 0 auto 48px; line-height: 1.75; opacity: 0; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; opacity: 0; }

/* ─── ANIMATIONS ─── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slideInLog { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* ─── RADAR ─── */
.radar-wrap { width: 120px; height: 120px; position: relative; margin: 20px auto; }
.radar-svg { width: 100%; height: 100%; animation: spin 6s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-dot { position: absolute; width: 5px; height: 5px; background: var(--gold-bright); border-radius: 50%; box-shadow: 0 0 6px var(--gold-bright); animation: blink 2s infinite; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-bright); opacity: 0.5; }

.waveform { display: flex; align-items: center; gap: 2px; height: 24px; margin-top: 12px; }
.wave-bar { width: 2px; background: var(--gold-bright); border-radius: 2px; animation: wavePulse var(--d, 0.8s) ease-in-out infinite alternate; opacity: 0.35; }
@keyframes wavePulse { from { height: 3px; } to { height: var(--h, 18px); } }

.prog-bar-wrap { margin-top: 10px; }
.prog-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8px; color: rgba(196,189,176,0.4); margin-bottom: 4px; }
.prog-track { height: 2px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 2px; box-shadow: 0 0 6px var(--gold-glow); transition: width 2s ease; width: 0%; }
.prog-fill.alt-fill { background: linear-gradient(90deg, rgba(180,200,160,0.4), rgba(180,200,160,0.7)); box-shadow: none; }

.map-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(184,150,12,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(184,150,12,0.02) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }

.cursor-glow { position: fixed; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(184,150,12,0.03) 0%, transparent 70%); pointer-events: none; z-index: 9997; transform: translate3d(-300px, -300px, 0); transition: opacity 0.3s; will-change: transform; }
.wire-h { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); opacity: 0.15; animation: wireScan 5s linear infinite; }
@keyframes wireScan { from { left: -100%; width: 40%; } to { left: 150%; width: 40%; } }

/* ─── CLASSIFICATION STAMP ─── */
.classified-stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 4px;
  color: rgba(196,30,58,0.5);
  border: 1px solid rgba(196,30,58,0.25);
  padding: 3px 10px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

footer {
  background: rgba(6,4,7,0.99);
  border-top: 1px solid var(--border);
  padding: 36px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(196,189,176,0.25);
  letter-spacing: 2px;
  position: relative;
  z-index: 10;
}
footer .logo { color: var(--gold-bright); font-size: 18px; letter-spacing: 8px; font-family: var(--display); }

#minimap { position: fixed; top: 80px; right: 20px; width: 160px; height: 100px; background: rgba(6,4,7,0.92); border: 1px solid var(--border); z-index: 500; overflow: hidden; }
#minimap canvas { width: 100%; height: 100%; }
.minimap-label { position: absolute; bottom: 4px; left: 8px; font-family: var(--mono); font-size: 7px; letter-spacing: 2px; color: var(--gold-bright); opacity: 0.5; }

@media (max-width: 980px) {
  nav { padding: 14px 20px; }
  .nav-logo { font-size: 26px; letter-spacing: 7px; }
  .menu-toggle { display: flex; order: 3; }
  .nav-social { margin-left: auto; margin-right: 12px; }
  .nav-center {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    background: rgba(6,4,7,0.98);
    border-bottom: 1px solid var(--gold-bright);
    backdrop-filter: blur(18px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  nav.menu-open .nav-center { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-links { display: grid; gap: 0; padding: 10px 20px 18px; }
  .nav-links a { padding: 15px 5px; border-bottom: 1px solid var(--border); opacity: 0.85; }
  section { min-height: auto; padding: 110px 28px 80px; }
  #hero { min-height: 100svh; padding-bottom: 80px; }
  .mission-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .command-interface { grid-template-columns: 1fr; height: auto; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .center-top { min-height: 420px; }
  .section-title { font-size: clamp(52px, 11vw, 92px); }
  .cta-title { font-size: clamp(48px, 11vw, 88px); }
  footer { gap: 18px; flex-wrap: wrap; }
  #minimap { width: 125px; height: 78px; right: 12px; }
}

@media (max-width: 620px) {
  body { cursor: auto; }
  .cursor-glow { display: none; }
  nav { padding: 11px 14px; }
  .nav-logo { font-size: 23px; letter-spacing: 6px; }
  .nav-social { display: none; }
  .menu-toggle { margin-left: auto; }
  section { padding: 96px 16px 64px; overflow: hidden; }
  #hero { justify-content: flex-end; padding-bottom: 64px; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(60px, 25vw, 105px); letter-spacing: 4px !important; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-ctas, .cta-buttons { width: 100%; flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .section-title { font-size: clamp(48px, 18vw, 76px); margin-bottom: 28px; }
  .mission-grid, .roadmap-grid, .cap-grid { grid-template-columns: 1fr; }
  .mission-card, .roadmap-phase, .cap-item, .panel { padding: 24px 18px; }
  .command-interface { display: block; }
  .command-interface > * { margin-bottom: 14px; }
  .center-top { min-height: 360px; }
  .center-bottom { grid-template-columns: 1fr; }
  .alert-terminal { width: 100%; }
  .terminal-bar { overflow: hidden; white-space: nowrap; }
  .terminal-bar span:last-child { display: none; }
  .terminal-body { overflow-x: auto; }
  .t-line { min-width: 620px; }
  .cta-title { font-size: clamp(44px, 15vw, 68px); }
  footer { padding: 28px 16px; flex-direction: column; align-items: flex-start; }
  #minimap { display: none; }
  .ticker-wrap { bottom: 0; }
  .ticker-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .radar-svg, .wave-bar, .wire-h, .status-dot, .panel-header-dot { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
