@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --deep-space: #030611;
  --deep-space-mid: #080D1A;
  --lunar-platinum: #F8FAFC;
  --lunar-silver: #E2E8F0;
  --crescent-blue: #8FB5E8;
  --crescent-blue-bright: #5A94E8;
  --royal-blue: #1A56DB;
  --royal-blue-bright: #2563EB;
  --cosmic-cyan: #00E5FF;
  --cosmic-cyan-muted: #06B6D4;
  --solar-gold: #FFB800;
  --solar-gold-muted: #F59E0B;
  --emerald: #10B981;
  --accent: var(--cosmic-cyan); /* primary accent like ZRK uses orange */
}

/* TYPOGRAPHY */
html {
  font-size: 1rem;
}

@media (min-width: 992px) {
  html {
    font-size: 1vw;
  }
}

.h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

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

body {
  position: relative;
  background: var(--deep-space);
  color: var(--lunar-platinum);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hide scrollbar */
body::-webkit-scrollbar {
  display: none;
}
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   HEADER (.header) — SPACEX TACTICAL FLOATING CAPSULES
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  pointer-events: none;
  padding: 1.25rem 2.5rem 0;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: none;
}

.header.scrolled {
  padding-top: 0.75rem;
}

.header-container {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  gap: 1.5rem;
}

/* 1. LEFT CAPSULE: Brand & Telemetry Locale */
.header-left {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.45rem 1.35rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.header-left:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.15);
}

.brand-link {
  display: flex;
  align-items: center;
}

.logo {
  height: clamp(24px, 2.2vw, 34px);
  width: auto;
  max-width: clamp(200px, 18vw, 290px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-link:hover .logo {
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.5));
  transform: scale(1.02);
}

.header-logo-line {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.16);
}

.header-left-info {
  display: flex;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  padding: 0.28rem 0.65rem;
  background: transparent;
  border: none;
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.75;
}

.lang-btn.active {
  background: var(--cosmic-cyan);
  color: #030611 !important;
  font-weight: 800;
  opacity: 1;
  text-shadow: none;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

.lang-btn:hover:not(.active) {
  color: #FFFFFF;
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

/* 2. CENTER CAPSULE: Flight Navigation Deck */
.header-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.65rem 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-nav:hover {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.15);
}

.nav-link {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--lunar-platinum);
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
  padding: 0.2rem 0;
}

.nav-link:hover {
  opacity: 1;
  color: var(--cosmic-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cosmic-cyan);
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s ease;
  box-shadow: 0 0 8px var(--cosmic-cyan);
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(1);
}

/* 3. RIGHT CAPSULE: Action Hub */
.header-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-right .btn-hud {
  background: rgba(3, 6, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  padding: 0.65rem 1.6rem;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-right .btn-hud::before,
.header-right .btn-hud::after {
  display: none;
}

.header-right .btn-hud:hover {
  background: var(--accent);
  color: #030611 !important;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.7);
  transform: scale(1.03);
}

/* PROGRESS BAR AT TOP VIEWPORT */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1005;
  pointer-events: none;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crescent-blue), var(--cosmic-cyan));
  box-shadow: 0 0 10px var(--cosmic-cyan);
  width: 0%;
  transition: width 0.1s linear;
}

.btn-hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-radius: 4px;
}

.btn-hud::before, .btn-hud::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: var(--accent);
  transition: all 0.3s;
  pointer-events: none;
}

.btn-hud::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.btn-hud::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.btn-hud:hover, .btn-hud.active {
  background: var(--accent);
  color: #030611 !important;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Specific Tour Button Styling */
#startTourBtn {
  color: #FFFFFF !important;
  font-weight: 700;
  border-color: var(--cosmic-cyan);
}

#startTourBtn:hover,
#startTourBtn.active {
  background: var(--cosmic-cyan) !important;
  color: #030611 !important;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
}

.mob-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 38px;
  height: 38px;
}

.mob-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lunar-platinum);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mob-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mob-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mob-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mob-menu {
  position: fixed;
  top: 4.5rem;
  left: 0;
  width: 100%;
  background: rgba(3, 6, 17, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
  transform: translateY(-140%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-menu.open {
  transform: translateY(0);
}

.mob-menu-link {
  font-size: 1rem;
  color: var(--lunar-silver);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s, padding-left 0.3s;
}

.mob-menu-link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* SECTION SYSTEM */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-fullscreen {
  height: 100vh;
}

.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-bg video, .section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 17, 0.7) 0%, rgba(3, 6, 17, 0.4) 50%, rgba(3, 6, 17, 0.85) 100%);
}

/* SECTION NUMBERING */
.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 50%;
  right: 3rem;
  transform: translateY(-50%);
  line-height: 1;
  z-index: 1;
  user-select: none;
}

/* SECTION NAME BADGE */
.section-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-badge .mono {
  opacity: 0.5;
}

.section-badge-line {
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(6.2rem, 12vh, 8.5rem);
  padding-bottom: clamp(2rem, 4vh, 3.2rem);
  box-sizing: border-box;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 6, 17, 0.85) 0%,
    rgba(3, 6, 17, 0.2) 30%,
    rgba(3, 6, 17, 0.65) 68%,
    var(--deep-space) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: 90rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  padding: 0.42rem 1.1rem;
  font-size: 0.72rem;
  color: var(--lunar-silver);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.08em;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.telemetry-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.25);
}

.telemetry-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: telemetry-pulse 2s infinite ease-in-out;
}

@keyframes telemetry-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.hero-tagline {
  max-width: min(64rem, 90vw);
  text-shadow: 0 4px 30px rgba(3, 6, 17, 0.95);
  font-size: clamp(2.1rem, 3.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  text-shadow: 0 2px 16px rgba(3, 6, 17, 0.95), 0 0 35px rgba(3, 6, 17, 0.85);
  color: var(--lunar-platinum);
  font-size: clamp(0.95rem, 1.15vw, 1.12rem);
  line-height: 1.6;
  max-width: 48rem;
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-actions .btn-hud {
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

/* STATS BAR — AEROSPACE TELEMETRY MODULES */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  padding: 3rem 0;
  border-top: none;
}

.stat-item {
  background: rgba(8, 13, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.15);
}

.stat-value {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  margin-top: 0.65rem;
  opacity: 0.75;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--lunar-silver);
}

/* MISSION 4-PHASE CARDS */
.mission-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.mission-phase-card {
  background: rgba(8, 13, 26, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.mission-phase-card:nth-child(4) {
  border-left-color: var(--solar-gold);
}

.mission-phase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: var(--accent);
  background: rgba(8, 13, 26, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 229, 255, 0.12);
}

.mission-phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mission-phase-num {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mission-phase-card:nth-child(4) .mission-phase-num {
  color: var(--solar-gold);
}

.mission-phase-tag {
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--lunar-silver);
  letter-spacing: 0.05em;
}

.mission-phase-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lunar-platinum);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.mission-phase-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #CBD5E1;
  opacity: 0.85;
}

/* STATION SECTIONS */
.station-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.station-text {
}

.station-media {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.station-media video, .station-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   AUTHENTIC ZRK STATION CARD SYSTEM
   Matches exact layout from ZRK: Left spec + video, Right giant HD photo + HUD
   ========================================================================== */
.zrk-station-wrapper {
  margin-bottom: 5rem;
  position: relative;
}

.zrk-station-card {
  display: grid;
  grid-template-columns: 40% 60%;
  background: #040814;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transition: border-color 0.4s ease;
}

.zrk-station-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
}

/* Technical Corner Markings like ZRK */
.zrk-corner-coord {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
  z-index: 10;
  pointer-events: none;
}
.zrk-corner-coord.bl { bottom: 0.75rem; left: 1rem; }
.zrk-corner-coord.br { bottom: 0.75rem; right: 1rem; }

/* LEFT PANE */
.zrk-card-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  background: radial-gradient(circle at top left, rgba(8, 13, 26, 0.8), #030611 80%);
}

.zrk-card-num {
  font-size: clamp(4.5rem, 6vw, 7.5rem);
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #00E5FF 0%, #38BDF8 50%, #E0F2FE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cosmic-cyan);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  user-select: none;
  filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.5));
}

.zrk-card-cross {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: var(--cosmic-cyan);
  margin-bottom: 1.75rem;
  font-weight: 700;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.zrk-card-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--lunar-platinum);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.zrk-card-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

/* Compact Video Preview embedded in left column */
.zrk-card-video-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s;
}

.zrk-card-video-box:hover {
  border-color: var(--accent);
}

.zrk-card-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zrk-video-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 229, 255, 0.3);
  z-index: 2;
  pointer-events: none;
}

.zrk-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zrk-card-actions .btn-hud {
  border: 1px solid var(--cosmic-cyan);
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zrk-card-actions .btn-hud::before,
.zrk-card-actions .btn-hud::after {
  border-color: var(--cosmic-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.zrk-card-actions .btn-hud:hover {
  background: var(--cosmic-cyan);
  color: #030611 !important;
  border-color: var(--cosmic-cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.65);
  transform: translateY(-2px);
}

.zrk-card-pagination {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
}

.zrk-card-pagination .active-num {
  color: var(--cosmic-cyan);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* RIGHT PANE (GIANT HD PHOTO + HUD OVERLAYS) */
.zrk-card-right {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.zrk-card-right-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.zrk-card-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.05);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.zrk-station-card:hover .zrk-card-right-img {
  transform: scale(1.03);
}

.zrk-card-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 17, 0.6) 0%, rgba(3, 6, 17, 0.15) 45%, rgba(3, 6, 17, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Top Code Telemetry Block like ZRK */
.zrk-hud-code {
  position: relative;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(3, 6, 17, 0.7);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 24rem;
  align-self: flex-start;
}

.zrk-hud-code-prefix {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* Reticle Cluster Overlay (+ + + +) */
.zrk-reticle-cluster {
  position: absolute;
  bottom: 6rem;
  right: 3.5rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1.8rem);
  grid-template-rows: repeat(2, 1.8rem);
  gap: 0.5rem;
  pointer-events: none;
}

.zrk-reticle-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

/* Right Telemetry Footer */
.zrk-card-right-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 17, 0.5));
}

.zrk-card-right-footer-meta {
  display: flex;
  gap: 2rem;
}

@media (max-width: 991px) {
  .zrk-station-card {
    grid-template-columns: 1fr;
  }
  .zrk-card-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
  }
  .zrk-card-right {
    min-height: 24rem;
    padding: 1.5rem;
  }
  .zrk-reticle-cluster {
    display: none;
  }
}

/* INTERACTIVE MAP SECTION */
.map-section {
  position: relative;
  min-height: 100vh;
  background: var(--deep-space-mid);
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
}

.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

.map-img.night {
  opacity: 0;
}

.map-stage.is-night .map-img.day {
  opacity: 0;
}

.map-stage.is-night .map-img.night {
  opacity: 1;
}

.map-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

.hotspot-beacon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  background: rgba(3, 6, 17, 0.7);
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.map-hotspot:hover .hotspot-beacon, .map-hotspot.active .hotspot-beacon {
  background: var(--accent);
  color: var(--deep-space);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.map-hotspot.gold .hotspot-beacon {
  border-color: var(--solar-gold);
  color: var(--solar-gold);
}

.map-hotspot.gold:hover .hotspot-beacon, .map-hotspot.gold.active .hotspot-beacon {
  background: var(--solar-gold);
  color: var(--deep-space);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

.hotspot-label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--lunar-silver);
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(3, 6, 17, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 0.15rem;
  pointer-events: none;
}

.map-hotspot:hover .hotspot-label {
  opacity: 1;
}

/* ASTRONAUT AVATAR */
#astronautAvatar {
  position: absolute;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1), top 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
  pointer-events: none;
}

/* MAP CONTROLS */
.map-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.map-mode-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--lunar-silver);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0.15rem;
}

.map-mode-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
}

/* MAP DRAWER */
.map-drawer {
  position: fixed;
  top: 0;
  right: -28rem;
  width: 28rem;
  height: 100vh;
  background: rgba(8, 13, 26, 0.95);
  backdrop-filter: blur(16px);
  z-index: 2000;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.map-drawer.open {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--lunar-platinum);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.drawer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.drawer-badge {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.drawer-title {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.drawer-media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--deep-space);
}

.drawer-media video, .drawer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.drawer-impact {
  font-size: 0.8rem;
  padding: 1rem;
  background: rgba(0, 229, 255, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 0.25rem 0.25rem 0;
}

.drawer-impact.gold {
  background: rgba(255, 184, 0, 0.05);
  border-left-color: var(--solar-gold);
}

/* ═══════════════ 05 — MERCHANDISE EXPANDING STRIP ═══════════════ */
.merch-strip {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  width: 100%;
  height: clamp(440px, 48vh, 560px);
  margin-top: 3rem;
  position: relative;
}

.merch-strip-item {
  position: relative;
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #02050E;
  transition: flex 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              transform 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.merch-strip-item:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 229, 255, 0.15);
}

.merch-strip-item.is-expanded {
  flex: 3.6;
  border-color: var(--cosmic-cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.25);
  cursor: default;
}

.merch-strip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.9);
}

.merch-strip-item:hover .merch-strip-img,
.merch-strip-item.is-expanded .merch-strip-img {
  filter: brightness(1.02);
}

.merch-strip-item.is-expanded .merch-strip-img {
  transform: scale(1.03);
}

.merch-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(3, 6, 17, 0.15) 0%, 
    transparent 40%, 
    rgba(3, 6, 17, 0.4) 60%, 
    rgba(3, 6, 17, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
  transition: background 0.4s ease;
}

.merch-strip-num {
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--cosmic-cyan);
  background: rgba(3, 6, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.merch-strip-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.merch-strip-title {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  margin: 0;
  transition: opacity 0.3s ease;
}

.merch-strip-item:not(.is-expanded) .merch-strip-title {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.merch-zoom-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid var(--cosmic-cyan);
  color: var(--cosmic-cyan);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.merch-zoom-btn svg {
  width: 14px;
  height: 14px;
}

.merch-strip-item.is-expanded .merch-zoom-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.merch-zoom-btn:hover {
  background: var(--cosmic-cyan);
  color: var(--deep-space);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .merch-strip {
    height: 440px;
    gap: 0.85rem;
  }
}

@media (max-width: 768px) {
  .merch-strip {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }
  .merch-strip-item {
    height: 130px;
    flex: none;
    width: 100%;
  }
  .merch-strip-item.is-expanded {
    height: 380px;
    flex: none;
  }
  .merch-strip-item:not(.is-expanded) .merch-strip-title {
    font-size: 1rem;
    white-space: normal;
  }
  .merch-zoom-btn {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* ═══════════════ MERCH LIGHTBOX MODAL ═══════════════ */
.merch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 2rem;
}

.merch-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.merch-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 17, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.merch-lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.merch-lightbox.is-open .merch-lightbox-container {
  transform: scale(1);
}

.merch-lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.merch-lightbox-close:hover {
  border-color: var(--cosmic-cyan);
  color: var(--cosmic-cyan);
  transform: rotate(90deg);
}

.merch-lightbox-body {
  background: #02050E;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.2);
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.merch-lightbox-img {
  max-width: 85vw;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.merch-lightbox-footer {
  padding: 1.1rem 1.75rem;
  background: rgba(8, 13, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.merch-lightbox-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.merch-lightbox-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
}

.merch-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.merch-lightbox-nav.prev { left: -4.5rem; }
.merch-lightbox-nav.next { right: -4.5rem; }

.merch-lightbox-nav:hover {
  border-color: var(--cosmic-cyan);
  color: var(--cosmic-cyan);
  background: rgba(0, 229, 255, 0.15);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .merch-lightbox-nav.prev { left: 0.5rem; }
  .merch-lightbox-nav.next { right: 0.5rem; }
  .merch-lightbox-close { top: -3rem; right: 0; }
  .merch-lightbox-footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding: 0.85rem 1.25rem; }
}

/* BUSINESS MODEL SECTION — ELITE VANGUARD HUD CARDS */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.biz-card {
  position: relative;
  padding: 2.75rem 2.5rem;
  background: radial-gradient(circle at top left, rgba(8, 13, 26, 0.75), #030611 90%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.biz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cosmic-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.biz-card:hover {
  border-color: var(--cosmic-cyan);
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.08), #030611 80%);
  transform: translateY(-0.35rem);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.15);
}

.biz-card:hover::before {
  opacity: 1;
}

.biz-card.gold-card {
  border-color: rgba(255, 184, 0, 0.45);
}

.biz-card.gold-card::before {
  background: linear-gradient(90deg, transparent, var(--solar-gold), transparent);
}

.biz-card.gold-card:hover {
  border-color: var(--solar-gold);
  background: radial-gradient(circle at top left, rgba(255, 184, 0, 0.08), #030611 80%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 184, 0, 0.2);
}

.biz-card.emerald-card {
  border-color: rgba(16, 185, 129, 0.35);
}

.biz-card.emerald-card::before {
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
}

.biz-card.emerald-card:hover {
  border-color: var(--emerald);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), #030611 80%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}

.biz-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.biz-badge-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Telemetry Mini Icons */
.telemetry-icon-svg {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Map Mode Switch Icons */
.map-switch-icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
}

.curtain-label-svg {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

/* Ecosystem Checkmark SVG Icons */
.ecosystem-check-svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* Astronaut Helmet SVG */
.astronaut-helmet-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.astronaut-avatar-hud {
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.7));
  animation: avatar-float 3s ease-in-out infinite alternate;
}

@keyframes avatar-float {
  0% { transform: translate(-50%, -50%) translateY(0); }
  100% { transform: translate(-50%, -50%) translateY(-5px); }
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

input, textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--lunar-platinum);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  border-bottom-color: var(--accent);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  background: var(--accent);
  color: var(--deep-space);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 2rem;
}

.btn-submit:hover {
  background: var(--crescent-blue-bright);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* FORM VALIDATION STATES */
.form-field {
  position: relative;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-bottom-color: #FF4D4D;
}

.form-field input.is-valid,
.form-field textarea.is-valid {
  border-bottom-color: #10B981;
}

.form-error {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #FF4D4D;
  margin-top: 0.4rem;
  min-height: 1rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.form-error.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FORM STATUS BANNER */
.form-status {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
  animation: statusFadeIn 0.3s ease forwards;
}

.form-status.visible {
  display: flex;
}

.form-status.status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
}

.form-status.status-error {
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #FF4D4D;
}

.form-status.status-sending {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent);
}

@keyframes statusFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
.footer {
  padding: 4.5rem 3rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(8, 13, 26, 0.7) 0%, var(--deep-space) 100%);
  position: relative;
}

.footer-container {
  max-width: 90rem;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* 1. LUNAR MISSION LOGO (MUCH LARGER) */
.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-link:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.45));
}

.footer-logo-img {
  height: clamp(4.2rem, 6vw, 5.8rem);
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.25));
}

/* 2. PARTNERS: WIZOR & WIZOR SPACE */
.footer-partners {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-partners-label {
  font-size: 0.65rem;
  color: var(--cosmic-cyan);
  letter-spacing: 0.16em;
  opacity: 0.85;
}

.footer-partners-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.partner-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

.partner-logo {
  height: clamp(1.8rem, 2.4vw, 2.3rem);
  width: auto;
  object-fit: contain;
  display: block;
}

.partner-logo.partner-space {
  height: clamp(2.1rem, 2.8vw, 2.7rem);
}

.footer-partner-separator {
  width: 1px;
  height: 1.6rem;
  background: rgba(255, 255, 255, 0.16);
}

/* 3. CONTACT LINKS */
.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* 4. DIVIDER & BOTTOM ROW */
.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3rem 0 1.75rem;
}

.footer-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-copy {
  opacity: 0.5;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* VIDEO MODAL */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.video-modal.active,
.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  position: relative;
  width: 90vw;
  max-width: 1080px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 229, 255, 0.25);
  background: #02050E;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .video-modal-container {
  transform: scale(1);
}

.video-modal-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(3, 6, 17, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-modal-close:hover {
  border-color: var(--cosmic-cyan);
  color: var(--cosmic-cyan);
  transform: rotate(90deg) scale(1.05);
}

@media (max-width: 768px) {
  .video-modal-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* SCROLL ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-left {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* TEXT FLICKER */
@keyframes text-flicker {
  0% { opacity: 1; }
  4% { opacity: 0.2; color: var(--accent); }
  5% { opacity: 1; color: inherit; }
  8% { opacity: 0.3; }
  9% { opacity: 1; }
  13% { color: var(--accent); }
  14% { color: inherit; }
  30% { opacity: 0.5; }
  32% { opacity: 1; }
  100% { opacity: 1; color: inherit; }
}

.text-flicker .char {
  display: inline-block;
  animation: text-flicker 0.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: calc(var(--i) * 25ms);
}


/* PRELOADER STYLES DEFINED IN PRELOADER v3 SECTION BELOW */

/* RESPONSIVE */
@media (max-width: 991px) {
  .header {
    padding: 0.75rem 1.25rem 0;
  }
  .header-left {
    padding: 0.35rem 0.95rem;
    gap: 0.85rem;
  }
  .logo {
    height: clamp(20px, 3.5vw, 26px);
    max-width: 220px;
  }
  .header-nav {
    display: none;
  }
  .header-right .btn-hud {
    display: none;
  }
  .mob-toggle {
    display: flex;
    pointer-events: auto;
    background: rgba(3, 6, 17, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
  .mob-menu {
    top: 4.25rem;
  }
  .hero {
    padding-top: clamp(5.4rem, 10vh, 6.5rem);
    padding-bottom: 2.2rem;
  }
  .hero-tagline {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    max-width: min(50rem, 92vw);
  }
  .station-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mission-phase-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .biz-grid {
    grid-template-columns: 1fr;
  }
  .section-number {
    font-size: 8rem;
    right: 1rem;
  }
  .section-content {
    padding: 4rem 1.5rem;
  }
  .hero-content {
    padding: 0 1.5rem;
  }
  .map-drawer {
    width: 100%;
    right: -100%;
  }
}

@media (min-width: 992px) {
  .mob-menu,
  .mob-toggle {
    display: none !important;
  }
}

/* SHORT VIEWPORT ADAPTATION (Laptops, small screens, resized browser windows) */
@media (max-height: 760px) and (min-width: 768px) {
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-top: 5rem !important;
    padding-bottom: 1.8rem !important;
    box-sizing: border-box !important;
  }
  .hero-telemetry {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    gap: 0.5rem !important;
  }
  .telemetry-pill {
    padding: 0.32rem 0.85rem !important;
    font-size: 0.65rem !important;
  }
  .section-badge {
    margin-bottom: 0.5rem !important;
  }
  .h1.hero-tagline {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem) !important;
    line-height: 1.15 !important;
    max-width: min(56rem, 90vw) !important;
    color: #FFFFFF !important;
    text-shadow: 0 4px 30px rgba(3, 6, 17, 0.95), 0 0 40px rgba(0, 0, 0, 0.8) !important;
  }
  .hero-subtitle {
    font-size: 0.88rem !important;
    margin-top: 0.65rem !important;
    line-height: 1.45 !important;
    max-width: 44rem !important;
    color: #E2E8F0 !important;
  }
  .hero-actions {
    margin-top: 1rem !important;
    gap: 0.75rem !important;
  }
  .hero-actions .btn-hud {
    padding: 0.52rem 1.25rem !important;
    font-size: 0.68rem !important;
  }
  .scroll-indicator {
    margin-top: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  .scroll-indicator-text {
    font-size: 0.62rem !important;
    margin-bottom: 0.2rem !important;
  }
  .mouse {
    width: 18px !important;
    height: 28px !important;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 0.65rem 1rem 0 !important;
  }
  .header-left {
    padding: 0.35rem 0.8rem;
    gap: 0.65rem;
  }
  .logo {
    height: 20px;
    max-width: 165px;
  }

  /* ═══ 1. HERO SECTION: CINEMATIC LOWER ANCHOR & UNOBSTRUCTED VIDEO ═══ */
  .hero {
    height: 100svh !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-top: 4.8rem !important;
    padding-bottom: 4.8rem !important; /* anchors mouse & rocket right at bottom edge */
    box-sizing: border-box !important;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(3, 6, 17, 0.55) 0%,
      rgba(3, 6, 17, 0.15) 25%,
      rgba(3, 6, 17, 0.55) 55%,
      rgba(3, 6, 17, 0.92) 80%,
      var(--deep-space) 100%
    ) !important;
  }
  .hero-content {
    padding: 0 1.15rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
  }
  .hero-telemetry {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.45rem !important;
  }
  .telemetry-pill {
    width: auto !important;
    padding: 0.28rem 0.65rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.05em !important;
    font-weight: 600 !important;
    background: rgba(3, 6, 17, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
  }
  .telemetry-pill.telemetry-coords {
    display: none !important;
  }
  .section-badge {
    margin-bottom: 0.35rem !important;
    gap: 0.45rem !important;
  }
  .section-badge .mono {
    font-size: 0.62rem !important;
  }
  .section-badge-line {
    width: 1.2rem !important;
  }
  .h1 {
    font-size: clamp(1.15rem, 4.4vw, 1.45rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 0.35rem !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 14px rgba(3, 6, 17, 0.95), 0 0 30px rgba(0, 0, 0, 0.8) !important;
  }
  .hero-tagline {
    max-width: 22rem !important;
  }
  .hero-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.65rem !important;
    color: #E2E8F0 !important;
    text-shadow: 0 2px 12px rgba(3, 6, 17, 0.95) !important;
    opacity: 0.92 !important;
    max-width: 100% !important;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    margin-top: 0.35rem !important;
    width: 100% !important;
  }
  .hero-actions .btn-hud {
    width: 100% !important;
    text-align: center !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
  }
  .scroll-indicator {
    margin-top: 0.65rem !important;
    margin-bottom: 0 !important;
  }
  .scroll-indicator-text {
    font-size: 0.58rem !important;
    margin-bottom: 0.15rem !important;
    letter-spacing: 0.15em !important;
  }
  .mouse {
    width: 18px !important;
    height: 28px !important;
  }

  /* ═══ 2. BASE MAP SECTION: FULL-WIDTH STAGE & ROCKET PASSES BEHIND ═══ */
  #base-map {
    position: relative;
    z-index: 100; /* Cohete (#neon-svg-overlay z-index: 95) pasa por DETRÁS de la base en mobile */
    overflow-x: clip;
  }
  #base-map .section-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  #base-map .map-container {
    width: 100%;
  }
  #base-map .map-stage {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
    max-width: 100vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
  }

  /* ═══ 3. TACTICAL HUD DAY/NIGHT SEGMENTED CONTROL ═══ */
  .map-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    background: rgba(8, 13, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  .map-switch-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.5rem;
    border-radius: 7px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    min-height: 44px;
    text-align: left;
    transition: all 0.3s ease;
  }
  .map-switch-btn.night {
    flex-direction: row;
    text-align: left;
  }
  .map-switch-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .map-switch-icon-svg {
    width: 18px;
    height: 18px;
  }
  .map-switch-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }
  .map-switch-title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }
  .map-switch-sub {
    font-size: 0.6rem;
    opacity: 0.75;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  .sub-extra {
    display: none;
  }
  .map-switch-btn.day.active {
    background: rgba(255, 184, 0, 0.15);
    border-color: rgba(255, 184, 0, 0.6);
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.22), inset 0 0 10px rgba(255, 184, 0, 0.1);
  }
  .map-switch-btn.day.active .map-switch-title {
    color: #FFB800;
  }
  .map-switch-btn.night.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.22), inset 0 0 10px rgba(0, 229, 255, 0.1);
  }
  .map-switch-btn.night.active .map-switch-title {
    color: #00E5FF;
  }

  .curtain-label { top: 0.45rem; padding: 0.35rem 0.55rem; }
  .curtain-label.day { left: 0.45rem; }
  .curtain-label.night { right: 0.45rem; }
  .curtain-label strong { font-size: 0.7rem; }

  /* ═══ OTHER MOBILE UTILITIES ═══ */
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .map-controls {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .hotspot-beacon {
    width: 2rem;
    height: 2rem;
    font-size: 0.55rem;
  }
  .astronaut-avatar-hud {
    width: 2.2rem;
    height: 2.2rem;
  }
  .zrk-hud-code {
    max-width: 100%;
    word-break: break-word;
  }
  .footer {
    padding: 3.5rem 1.5rem 2.5rem;
  }
  .footer-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.25rem;
  }
  .footer-partners {
    align-items: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   PRELOADER v3 — 50% LARGER LOGO, IMMERSIVE TAGLINE & ROCKET PLASMA FLAME TRAIL
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #070D1E 0%, #030611 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.85rem;
  width: 100%;
  max-width: 90vw;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

.preloader.logo-out .preloader-inner {
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.06);
}

/* 1. LOGO: 50% LARGER + AERO GLOW */
.preloader-logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: clamp(210px, 22vw, 340px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.45)) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
  animation: preloader-logo-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes preloader-logo-in {
  from {
    opacity: 0;
    filter: blur(10px) drop-shadow(0 0 10px rgba(0, 229, 255, 0.2));
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 35px rgba(0, 229, 255, 0.45));
    transform: scale(1);
  }
}

/* 2. TAGLINE BLOCK: "UNA EXPERIENCIA INMERSIVA" */
.preloader-tagline-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.preloader-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--cosmic-cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preloader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cosmic-cyan);
  box-shadow: 0 0 10px var(--cosmic-cyan), 0 0 20px var(--cosmic-cyan);
  animation: preloader-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes preloader-dot-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.3); }
}

.preloader-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35), 0 0 40px rgba(0, 229, 255, 0.2);
}

/* 3. LAUNCH SYSTEM: ROCKET + PLASMA FIRE TRAIL */
.preloader-launch-system {
  width: clamp(280px, 35vw, 480px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.preloader-track {
  position: relative;
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8);
  overflow: visible;
}

/* Fill bar is the burning rocket jet trail */
.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: linear-gradient(90deg, 
    rgba(0, 229, 255, 0.2) 0%, 
    rgba(255, 69, 0, 0.75) 45%, 
    #FF8C00 75%, 
    #FFD700 92%, 
    #FFFFFF 100%
  );
  box-shadow: 
    0 0 18px rgba(255, 102, 0, 0.9),
    0 0 35px rgba(255, 68, 0, 0.6),
    inset 0 0 6px rgba(255, 255, 255, 0.8);
  transition: width 0.08s linear;
}

/* Rocket positioned at the leading edge of the progress fill */
.preloader-rocket {
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  height: 38px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 68, 0, 0.85)) drop-shadow(0 0 22px rgba(255, 170, 0, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  animation: rocket-thrust-vibe 0.12s ease-in-out infinite alternate;
}

.rocket-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.rocket-flame {
  animation: rocket-flame-flicker 0.1s ease-in-out infinite alternate;
  transform-origin: 33px 26px;
}

.rocket-flame-core {
  animation: rocket-flame-flicker-core 0.08s ease-in-out infinite alternate;
  transform-origin: 33px 26px;
}

.flame-puff {
  animation: flame-puff-burst 0.22s linear infinite;
  transform-origin: 20px 26px;
}

@keyframes rocket-thrust-vibe {
  0% { transform: translateY(-52%) rotate(-0.6deg); }
  50% { transform: translateY(-49%) rotate(0.5deg); }
  100% { transform: translateY(-51%) rotate(-0.3deg); }
}

@keyframes rocket-flame-flicker {
  0% { transform: scaleX(0.88) scaleY(0.92); opacity: 0.9; }
  100% { transform: scaleX(1.18) scaleY(1.08); opacity: 1; }
}

@keyframes rocket-flame-flicker-core {
  0% { transform: scaleX(0.92); opacity: 0.95; }
  100% { transform: scaleX(1.22); opacity: 1; }
}

@keyframes flame-puff-burst {
  0% { transform: translateX(0) scale(1); opacity: 0.9; }
  100% { transform: translateX(-6px) scale(0.3); opacity: 0; }
}

/* 4. TELEMETRY STATUS */
.preloader-telemetry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloader-status {
  color: var(--cosmic-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.preloader-percent {
  color: #FFFFFF;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   SCROLL FLIGHT OVERLAY — THE ROCKET NAVIGATING THE ENTIRE WEBSITE
   ========================================================================== */
#neon-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
  overflow: visible;
}

.scroll-path-track {
  fill: none;
  stroke: rgba(0, 229, 255, 0.08);
  stroke-width: 1px;
  stroke-dasharray: 4 6;
  opacity: 0.6;
}

.scroll-path-neon {
  fill: none;
  stroke: rgba(0, 229, 255, 0.55);
  stroke-width: 2.2px;
  stroke-linecap: round;
  filter: url(#scroll-neon-glow);
  transition: stroke-dasharray 0.05s linear;
}

.scroll-path-ignition {
  fill: none;
  stroke: url(#scroll-plasma-gradient);
  stroke-width: 1.8px;
  stroke-linecap: round;
  filter: url(#scroll-ignition-glow);
  transition: stroke-dasharray 0.04s linear;
}

#scroll-rocket {
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 16px rgba(255, 102, 0, 0.9)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

#scroll-rocket-chassis {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#scroll-rocket.is-flying #flight-flames .rocket-flame {
  animation: rocket-flame-flicker 0.08s ease-in-out infinite alternate;
}

#scroll-rocket.is-flying #flight-flames .rocket-flame-core {
  animation: rocket-flame-flicker-core 0.06s ease-in-out infinite alternate;
}

#scroll-rocket.is-idle #flight-flames {
  opacity: 0.65;
  transform: scaleX(0.75);
  transition: all 0.3s ease;
}

#scroll-rocket.is-landed {
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.85)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

#scroll-rocket.is-landed #scroll-rocket-chassis {
  transform: scale(1.02) translate(-29px, -26px) !important;
}

#scroll-rocket.is-docked #flight-flames,
#scroll-rocket.is-docked #flight-halo,
#scroll-rocket.is-landed #flight-flames,
#scroll-rocket.is-landed #flight-halo {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

#scroll-rocket #landing-shadow {
  opacity: 0;
  transition: opacity 0.4s ease;
}

#scroll-rocket.is-landed #landing-shadow {
  opacity: 1;
}

@media (max-width: 768px) {
  #scroll-rocket-chassis {
    transform: scale(0.60) translate(-29px, -26px) !important;
  }
  #scroll-rocket.is-landed #scroll-rocket-chassis {
    transform: scale(0.85) translate(-29px, -26px) !important;
  }
  .scroll-path-track {
    stroke-width: 0.9px;
  }
  .scroll-path-neon {
    stroke-width: 1.8px;
  }
  .scroll-path-ignition {
    stroke-width: 1.5px;
  }
}

/* ─── SCROLL INDICATOR (CALL TO ACTION MOUSE) ─── */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.2rem, 2.4vh, 2rem);
  user-select: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateY(3px);
}

.scroll-indicator-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: #9EB7DA;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0.85;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(158, 183, 218, 0.6);
  border-radius: 13px;
  position: relative;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
  background: rgba(3, 6, 17, 0.45);
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  height: 7px;
  background: var(--cosmic-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cosmic-cyan);
  animation: mouse-scroll 1.8s infinite;
}

@keyframes mouse-scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 13px);
    opacity: 0;
  }
}

/* ─── LUNAR LANDING ZONE & ASTRONAUT SEQUENCE ─── */
.lunar-landing-zone {
  width: 100%;
  height: 150px;
  margin: 0 0 2rem 0;
  position: relative;
  pointer-events: none;
}

#lunar-surface-base {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
}

#scroll-astronaut {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.5));
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#scroll-astronaut.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

#astro-scaler {
  transform-origin: 0 29px;
  transform: scale(0.85);
}

#astro-flag {
  opacity: 1;
  visibility: visible;
  transform-origin: -24px 28px;
}

#astro-flag.astro-flag-sequence {
  animation: flagPlantUnrollLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards, flagFlutterLeft 2.2s ease-in-out infinite alternate;
  animation-delay: 2.0s, 2.85s;
}

/* CONTINUOUS Friendly Wave: Raised right arm waves to the spectator/camera non-stop */
#astro-wave-arm {
  transform-origin: 4px 3px;
  animation: astroContinuousWave 1.1s ease-in-out infinite alternate;
}

@keyframes astroContinuousWave {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(26deg);
  }
  100% {
    transform: rotate(-16deg);
  }
}

/* Firmly plants the flagpole into lunar soil */
.astro-plant-sequence {
  animation: armPlantFlagLeft 0.8s ease forwards;
  animation-delay: 2.0s;
}

@keyframes armPlantFlagLeft {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-20deg) translate(-2px, 3px);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Flag unrolls & flutters in space */
@keyframes flagPlantUnrollLeft {
  0% {
    transform: scale(0.65) rotate(16deg);
  }
  55% {
    transform: scale(1.06) rotate(-3deg);
  }
  80% {
    transform: scale(0.98) rotate(1.5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes flagFlutterLeft {
  0% {
    transform: skewY(0deg) scaleX(1);
  }
  50% {
    transform: skewY(-2.2deg) scaleX(0.97);
  }
  100% {
    transform: skewY(2.2deg) scaleX(1.02);
  }
}

/* Fast, agile small walking strides moving the legs (NOT jumping!) towards the clean LEFT side */
.astro-run-sequence {
  animation: astroWalkStrideLeft 2.1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.astro-run-sequence .astro-leg-front {
  animation: astroLegWalkFront 0.30s linear 7 alternate;
  transform-origin: -4px 14px;
}

.astro-run-sequence .astro-leg-back {
  animation: astroLegWalkBack 0.30s linear 7 alternate;
  transform-origin: 4px 14px;
}

@keyframes astroLegWalkFront {
  0% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(18deg);
  }
}

@keyframes astroLegWalkBack {
  0% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-18deg);
  }
}

@keyframes astroWalkStrideLeft {
  0% {
    opacity: 0;
    transform: translate(6px, 0);
  }
  8% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: translate(-95px, 0);
  }
}

@media (max-width: 768px) {
  #astro-scaler {
    transform: scale(0.72);
  }
  .astro-run-sequence {
    animation-name: astroWalkStrideLeftMobile;
  }
}

@keyframes astroWalkStrideLeftMobile {
  0% {
    opacity: 0;
    transform: translate(4px, 0);
  }
  8% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 1;
    transform: translate(-65px, 0);
  }
}

/* ==========================================================================
   HERO PLAYLIST — two videos chained with a soft crossfade
   ========================================================================== */
.hero-video-bg .hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video-bg .hero-vid.is-active {
  opacity: 1;
}

/* ==========================================================================
   MAP — Day / Night switch + curtain comparison slider
   ========================================================================== */
.map-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.map-switch-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(8, 13, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--lunar-silver);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.35s, background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.map-switch-btn.night {
  flex-direction: row-reverse;
  text-align: right;
}
.map-switch-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.map-switch-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.map-switch-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lunar-platinum);
}
.map-switch-sub {
  font-size: 0.65rem;
  opacity: 0.75;
  color: var(--lunar-silver);
}
.map-switch-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.map-switch-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.map-switch-btn.day.active {
  border-color: var(--solar-gold);
  background: rgba(255, 184, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 0, 0.35), 0 0 24px rgba(255, 184, 0, 0.2);
}
.map-switch-btn.night.active {
  border-color: var(--cosmic-cyan);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 24px rgba(0, 229, 255, 0.25);
}

/* Curtain: day image underneath, night image clipped from the split to the right */
.map-stage.curtain .map-img.day,
.map-stage.curtain .map-img.night {
  opacity: 1;
  user-select: none;
  -webkit-user-drag: none;
}
.map-stage.curtain .map-img.night {
  clip-path: inset(0 0 0 var(--split));
  -webkit-clip-path: inset(0 0 0 var(--split));
}

.curtain-label {
  position: absolute;
  top: 1rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 1.1rem;
  background: rgba(3, 6, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: opacity 0.25s linear;
}
.curtain-label .mono { font-size: 0.6rem; opacity: 0.75; }
.curtain-label strong { font-size: 0.95rem; color: var(--lunar-platinum); }
.curtain-label.day   { left: 1rem;  border-left: 2px solid var(--solar-gold); }
.curtain-label.night { right: 1rem; border-right: 2px solid var(--cosmic-cyan); text-align: right; }

/* ==========================================================================
   DUAL ECOSYSTEM CARDS: DÍA (STEAM) vs. NOCHE (MOON NIGHTS B2B)
   Mobile First Design
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.ecosystem-card {
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.35s ease;
  position: relative;
  cursor: pointer;
}

@media (max-width: 767px) {
  .ecosystem-card {
    padding: 1.6rem 1.25rem;
  }
}

.ecosystem-card.day {
  border-top: 3px solid var(--solar-gold);
}

.ecosystem-card.night {
  border-top: 3px solid var(--cosmic-cyan);
}

.ecosystem-card.day:hover,
.ecosystem-card.day.is-active {
  border-color: rgba(255, 184, 0, 0.4);
  border-top-color: var(--solar-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 184, 0, 0.15);
  transform: translateY(-3px);
}

.ecosystem-card.night:hover,
.ecosystem-card.night.is-active {
  border-color: rgba(0, 229, 255, 0.4);
  border-top-color: var(--cosmic-cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.15);
  transform: translateY(-3px);
}

.ecosystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.ecosystem-card.day .ecosystem-badge {
  color: var(--solar-gold);
}

.ecosystem-card.night .ecosystem-badge {
  color: var(--cosmic-cyan);
}

.ecosystem-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.ecosystem-tagline {
  font-size: 0.95rem;
  color: #CBD5E1;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ecosystem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0;
  margin: 0;
}

.ecosystem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ecosystem-check {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  flex-shrink: 0;
}

.ecosystem-card.day .ecosystem-check {
  color: var(--solar-gold);
}

.ecosystem-card.night .ecosystem-check {
  color: var(--cosmic-cyan);
}

.ecosystem-item-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.ecosystem-item-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.ecosystem-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  position: relative;
}

.ecosystem-emblem::before,
.ecosystem-emblem::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
}

.ecosystem-emblem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  font-size: 1.2rem;
  margin: 0 1rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.curtain-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 44px;
  margin-left: -22px;
  z-index: 8;
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.curtain-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cosmic-cyan), #ffffff 50%, var(--solar-gold));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}
.curtain-knob {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(3, 6, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.curtain-handle:hover .curtain-knob,
.curtain-handle.dragging .curtain-knob {
  transform: scale(1.1);
  border-color: var(--accent);
}
.curtain-handle:focus-visible {
  outline: none;
}
.curtain-handle:focus-visible .curtain-knob {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (HIGHEST CASCADE SPECIFICITY)
   ========================================================================== */
@media (max-width: 768px) {
  /* ═══ 1. BASE MAP FULL BLEED & ROCKET PASSING BEHIND ═══ */
  #base-map {
    position: relative !important;
    z-index: 100 !important; /* Rocket overlay (z-index: 95) passes behind on mobile */
    overflow-x: clip;
  }
  #base-map .section-content {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  #base-map .map-container {
    width: 100% !important;
  }
  #base-map .map-stage {
    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
    width: calc(100% + 2.5rem) !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    aspect-ratio: 16 / 9 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75) !important;
  }

  /* ═══ 2. TACTICAL HUD DAY/NIGHT SWITCH ═══ */
  .map-mode-switch {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 4px !important;
    background: rgba(8, 13, 26, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    margin-bottom: 0.85rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .map-switch-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    padding: 0.5rem 0.45rem !important;
    border-radius: 7px !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: none !important;
    min-height: 44px !important;
    min-width: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
  .map-switch-btn.night {
    flex-direction: row !important;
    text-align: left !important;
  }
  .map-switch-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .map-switch-icon-svg {
    width: 18px !important;
    height: 18px !important;
  }
  .map-switch-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
  }
  .map-switch-title {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .map-switch-sub {
    font-size: 0.58rem !important;
    opacity: 0.75 !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .sub-extra {
    display: none !important;
  }
  .map-switch-btn.day.active {
    background: rgba(255, 184, 0, 0.15) !important;
    border-color: rgba(255, 184, 0, 0.6) !important;
    box-shadow: 0 0 16px rgba(255, 184, 0, 0.22), inset 0 0 10px rgba(255, 184, 0, 0.1) !important;
  }
  .map-switch-btn.day.active .map-switch-title {
    color: #FFB800 !important;
  }
  .map-switch-btn.night.active {
    background: rgba(0, 229, 255, 0.15) !important;
    border-color: rgba(0, 229, 255, 0.6) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.22), inset 0 0 10px rgba(0, 229, 255, 0.1) !important;
  }
  .map-switch-btn.night.active .map-switch-title {
    color: #00E5FF !important;
  }

  .curtain-label {
    top: 0.45rem !important;
    padding: 0.35rem 0.55rem !important;
  }
  .curtain-label.day { left: 0.45rem !important; }
  .curtain-label.night { right: 0.45rem !important; }
  .curtain-label strong { font-size: 0.7rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg .hero-vid,
  .preloader-inner,
  .preloader-logo {
    transition: none;
    animation: none;
    opacity: 1;
  }
}

/* ==========================================================================
   PDF TEAM ADJUSTMENTS: HERO GOLD HIGHLIGHT, 4-COLUMN PHASES, OSBP POPOVER & FAQ
   ========================================================================== */
.hero-subtitle-gold {
  color: var(--solar-gold);
  font-weight: 600;
}

/* 4-Column Horizontal Mission Phase Grid */
.mission-phase-grid.mission-phase-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.mission-phase-grid.mission-phase-grid-horizontal .mission-phase-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 3px solid var(--accent);
}

.mission-phase-grid.mission-phase-grid-horizontal .mission-phase-card:nth-child(4) {
  border-top-color: var(--solar-gold);
}

.mission-phase-grid.mission-phase-grid-horizontal .mission-phase-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: var(--accent);
}

.mission-phase-grid.mission-phase-grid-horizontal .mission-phase-card:nth-child(4):hover {
  border-top-color: var(--solar-gold);
}

@media (max-width: 1100px) {
  .mission-phase-grid.mission-phase-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .mission-phase-grid.mission-phase-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* NASA OSBP Golden Helmet Button & Popover inside Moon Nights Card */
.ecosystem-card.night {
  overflow: visible;
}

.ecosystem-emblem.osbp-trigger-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
}

.ecosystem-emblem.osbp-trigger-wrap::before,
.ecosystem-emblem.osbp-trigger-wrap::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.45), transparent);
}

.osbp-dash {
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: var(--solar-gold);
  border-radius: 2px;
  opacity: 0.9;
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.5);
}

.ecosystem-emblem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--solar-gold);
  color: #030611;
  border: 2px solid #FFE082;
  cursor: pointer;
  padding: 0;
  margin: 0 0.25rem;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, background 0.28s ease;
  position: relative;
  z-index: 12;
}

.ecosystem-emblem-btn:hover,
.ecosystem-emblem-btn.is-active {
  transform: scale(1.1);
  background: #FFC629;
  box-shadow: 0 0 34px rgba(255, 184, 0, 0.85), 0 0 12px rgba(255, 255, 255, 0.4);
}

.osbp-helmet-svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.osbp-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  width: min(27rem, calc(100vw - 2.5rem));
  background: #060C1C;
  border: 1.5px solid var(--solar-gold);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 30px rgba(255, 184, 0, 0.22);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s ease;
  text-align: left;
  cursor: default;
}

.osbp-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Downward golden pointer arrow connecting popover to helmet button */
.osbp-popover::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #060C1C;
  border-right: 1.5px solid var(--solar-gold);
  border-bottom: 1.5px solid var(--solar-gold);
  transform: translateX(-50%) rotate(45deg);
}

.osbp-popover-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lunar-silver);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.osbp-popover-close:hover {
  border-color: var(--solar-gold);
  color: var(--solar-gold);
  background: rgba(255, 184, 0, 0.1);
}

.osbp-popover-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--solar-gold);
  line-height: 1.3;
  margin: 0 1.75rem 0.25rem 0;
}

.osbp-popover-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--crescent-blue);
  margin: 0 0 0.9rem 0;
  letter-spacing: 0.02em;
}

.osbp-popover-p {
  font-size: 0.84rem;
  line-height: 1.58;
  color: #E2E8F0;
  margin: 0 0 0.75rem 0;
}

.osbp-popover-p:last-child {
  margin-bottom: 0;
}

/* Footer FAQ Button */
.footer-faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--cosmic-cyan);
  background: rgba(0, 229, 255, 0.06);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-faq-btn:hover {
  background: var(--cosmic-cyan);
  color: var(--deep-space);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

