/* ============================================
   DYNAMIC DESIGN TOKENS
   ============================================ */
:root {
  --bg: #03040a;
  --bg-elev: #080a14;
  --bg-card: rgba(12, 15, 26, 0.6);
  --border: rgba(120, 200, 255, 0.1);
  --border-strong: rgba(120, 200, 255, 0.28);
  --text: #e8eef7;
  --text-muted: #8a94a8;
  --text-dim: #4a5262;
  --accent: #00e5ff;
  --accent-2: #7b6cff;
  --accent-3: #ff4ecb;
  --accent-glow: rgba(0, 229, 255, 0.4);
  --gradient: linear-gradient(135deg, #00e5ff 0%, #7b6cff 50%, #ff4ecb 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,229,255,0.1) 0%, rgba(123,108,255,0.08) 50%, rgba(255,78,203,0.06) 100%);
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.2, 0.9, 0.4, 1);
  --max-w: 1320px;
}

body[data-theme="missions"] { --accent: #00e5ff; --accent-2: #7b6cff; }
body[data-theme="tech"]     { --accent: #7b6cff; --accent-2: #ff4ecb; }
body[data-theme="launch"]   { --accent: #ff4ecb; --accent-2: #ffb84e; }
body[data-theme="gallery"]  { --accent: #4effb8; --accent-2: #00e5ff; }

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 1s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; outline: none; border: none; }

/* ============================================
   DYNAMIC BACKGROUND
   ============================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
}

.nebula-1 {
  width: 700px; height: 700px;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(123, 108, 255, 0.55) 0%, transparent 70%);
  animation: drift1 30s ease-in-out infinite;
}

.nebula-2 {
  width: 600px; height: 600px;
  top: 40%; right: -10%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.4) 0%, transparent 70%);
  animation: drift2 40s ease-in-out infinite;
}

.nebula-3 {
  width: 500px; height: 500px;
  bottom: -10%; left: 30%;
  background: radial-gradient(circle, rgba(255, 78, 203, 0.35) 0%, transparent 70%);
  animation: drift3 35s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.2); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 100px) scale(1.15); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -120px) scale(1.25); }
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  will-change: transform;
}

.stars-1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 160px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 240px 180px, rgba(0,229,255,0.8), transparent),
    radial-gradient(1px 1px at 320px 90px, #fff, transparent);
  background-size: 400px 400px;
  animation: starsScroll 200s linear infinite;
  opacity: 0.9;
}

.stars-2 {
  background-image:
    radial-gradient(1px 1px at 50px 80px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 150px 40px, rgba(123,108,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 280px 200px, #fff, transparent),
    radial-gradient(1px 1px at 380px 140px, rgba(255,78,203,0.5), transparent);
  background-size: 500px 500px;
  animation: starsScroll 400s linear infinite reverse;
  opacity: 0.6;
}

@keyframes starsScroll {
  from { transform: translate(0, 0); }
  to { transform: translate(-500px, -500px); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

section { padding: 8rem 0; position: relative; z-index: 1; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: color 0.6s var(--ease);
}

.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: background 0.6s var(--ease);
}

.section-head {
  max-width: 720px;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #03040a;
  font-weight: 700;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 40px 4px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
  transform: translateY(-2px);
}

.btn svg { width: 14px; height: 14px; }

/* ============================================
   FLOATING CAPSULE NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 1.5rem;
  left: 0; right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  pointer-events: none;
  transition: top 0.4s var(--ease);
}

.site-header.scrolled { top: 0.85rem; }

.nav-capsule {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.5rem;
  border-radius: 100px;
  background: rgba(8, 10, 20, 0.55);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  position: relative;
  transition: all 0.4s var(--ease);
}

.site-header.scrolled .nav-capsule {
  background: rgba(8, 10, 20, 0.85);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 60px -20px var(--accent-glow);
}

.nav-capsule::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease);
}

.logo:hover { transform: scale(1.02); }

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  animation: logoSpin 20s linear infinite;
}

@keyframes logoSpin {
  to { transform: rotate(360deg); }
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
}

.logo-text b {
  color: var(--text);
  font-weight: 700;
}

.logo-text span {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.39rem;
  font-weight: 500;
  transition: color 0.6s var(--ease);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  position: relative;
  padding: 0.35rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-links a {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  z-index: 2;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-indicator {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  height: calc(100% - 0.7rem);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 20px -6px var(--accent-glow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta .btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.7rem;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.6s var(--ease);
}

.nav-status .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
}

.menu-toggle svg { width: 18px; height: 18px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 11rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.04);
  color: var(--accent);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.6s var(--ease);
}

.hero-badge .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 520px;
}

.hero-stat .value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================
   FULL SOLAR SYSTEM — 8 Planets
   ============================================ */
.solar-system {
  position: relative;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  perspective: 1400px;
}

.solar-system-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: tiltScene 50s ease-in-out infinite;
}

@keyframes tiltScene {
  0%, 100% { transform: rotateX(14deg) rotateZ(0deg); }
  50% { transform: rotateX(18deg) rotateZ(-4deg); }
}

/* The Sun */
.sun {
  position: absolute;
  top: 50%; left: 50%;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 100;
  animation: sunPulse 4s ease-in-out infinite;
  box-shadow:
    0 0 40px #ff8a1a,
    0 0 80px rgba(255, 138, 26, 0.6),
    0 0 160px rgba(255, 107, 26, 0.4),
    0 0 240px rgba(255, 107, 26, 0.2);
  will-change: transform, box-shadow;
}
.sun img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: sunRotate 120s linear infinite;
  filter: saturate(1.15) contrast(1.05) brightness(1.05);
}
.sun::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 78, 0.4) 0%, transparent 70%);
  animation: sunFlare 6s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes sunRotate {
  to { transform: rotate(360deg); }
}
@keyframes sunFlare {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Orbit rings — all 8 planets */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, 0.1);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  will-change: transform;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, 0.03);
}

/* Orbit sizes — scaled for all 8 planets in a 780px canvas */
.orbit-1  { width: 130px; height: 130px; animation: spin 8s   linear infinite; }  /* Mercury */
.orbit-2  { width: 175px; height: 175px; animation: spin 13s  linear infinite; }  /* Venus */
.orbit-3  { width: 225px; height: 225px; animation: spin 18s  linear infinite; }  /* Earth */
.orbit-4  { width: 280px; height: 280px; animation: spin 24s  linear infinite; }  /* Mars */
.orbit-5  { width: 400px; height: 400px; animation: spin 38s  linear infinite; }  /* Jupiter */
.orbit-6  { width: 510px; height: 510px; animation: spin 52s  linear infinite; }  /* Saturn */
.orbit-7  { width: 610px; height: 610px; animation: spin 68s  linear infinite; }  /* Uranus */
.orbit-8  { width: 720px; height: 720px; animation: spin 88s  linear infinite; }  /* Neptune */

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Planet base */
.planet {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    inset -6px -6px 14px rgba(0, 0, 0, 0.75),
    inset 3px 3px 10px rgba(255, 255, 255, 0.2),
    0 0 18px -3px currentColor;
  will-change: transform;
  z-index: 5;
}

.planet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Planet sizes — scaled realistically (relative) */
.planet-1 { width: 12px; height: 12px; color: #a89078; }  /* Mercury */
.planet-2 { width: 18px; height: 18px; color: #e8b85c; }  /* Venus */
.planet-3 { width: 20px; height: 20px; color: #4a9eff; }  /* Earth */
.planet-4 { width: 16px; height: 16px; color: #d4553c; }  /* Mars */
.planet-5 { width: 40px; height: 40px; color: #d4a06a; }  /* Jupiter */
.planet-6 { width: 34px; height: 34px; color: #d4c48a; }  /* Saturn */
.planet-7 { width: 24px; height: 24px; color: #8ee8e8; }  /* Uranus */
.planet-8 { width: 23px; height: 23px; color: #4a6ee8; }  /* Neptune */

/* Counter-rotate planets so they stay upright */
.orbit-1 .planet { animation: counterSpin 8s   linear infinite; }
.orbit-2 .planet { animation: counterSpin 13s  linear infinite; }
.orbit-3 .planet { animation: counterSpin 18s  linear infinite; }
.orbit-4 .planet { animation: counterSpin 24s  linear infinite; }
.orbit-5 .planet { animation: counterSpin 38s  linear infinite; }
.orbit-6 .planet { animation: counterSpin 52s  linear infinite; }
.orbit-7 .planet { animation: counterSpin 68s  linear infinite; }
.orbit-8 .planet { animation: counterSpin 88s  linear infinite; }

@keyframes counterSpin {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Planet glow halo */
.planet::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 65%);
  opacity: 0.4;
  z-index: -1;
  filter: blur(5px);
  pointer-events: none;
}


/* Uranus tilt ring (planet-7) */
.planet-7 .ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 200%;
  height: 12%;
  margin: -6% 0 0 -100%;
  border-radius: 50%;
  border: .7px solid rgba(142, 232, 232, 0.4);
  transform: rotate(80deg);
  pointer-events: none;
}

/* HUD corner labels */
.hero-hud {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.7;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 200;
}

.hud-tl { top: 4%; left: 0; }
.hud-tr { top: 4%; right: 0; text-align: right; }
.hud-bl { bottom: 4%; left: 0; }
.hud-br { bottom: 4%; right: 0; text-align: right; }

.hero-hud .hud-line {
  display: block;
  margin-bottom: 0.3rem;
}

.hero-hud .hud-line::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.5rem;
  box-shadow: 0 0 8px var(--accent);
  vertical-align: middle;
  animation: pulse 2s infinite;
}

/* ============================================
   TICKER
   ============================================ */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 20, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  gap: 4rem;
  animation: scroll 45s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.ticker-item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================
   MISSIONS
   ============================================ */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.mission-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 2;
}

.mission-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 60px -20px var(--accent-glow);
}

.mission-card:hover::before { opacity: 1; }

.mission-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mission-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  opacity: 0.55;
}

.mission-card:hover .mission-card-img img { transform: scale(1.08); opacity: 0.7; }

.mission-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,4,10,0.3) 0%, rgba(3,4,10,0.95) 100%);
}

.mission-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: flex-start;
}

.mission-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.mission-status.active { color: #4effb8; background: rgba(78, 255, 184, 0.08); border-color: rgba(78, 255, 184, 0.3); }
.mission-status.upcoming { color: #ffb84e; background: rgba(255, 184, 78, 0.08); border-color: rgba(255, 184, 78, 0.3); }
.mission-status.completed { color: #8a94a8; background: rgba(138, 148, 168, 0.08); border-color: rgba(138, 148, 168, 0.3); }

.mission-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.mission-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.mission-meta div { display: flex; flex-direction: column; gap: 0.15rem; }

.mission-meta .meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mission-meta .meta-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.mission-lg { grid-column: span 8; }
.mission-md { grid-column: span 4; }
.mission-sm { grid-column: span 4; }

/* ============================================
   CAPABILITIES
   ============================================ */
.capabilities {
  background: rgba(8, 10, 20, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cap-item {
  background: rgba(12, 15, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.5rem 2rem;
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}

.cap-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.cap-item:hover { background: rgba(15, 18, 30, 0.9); }
.cap-item:hover::after { transform: scaleX(1); }

.cap-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
  background: rgba(0, 229, 255, 0.04);
  transition: all 0.6s var(--ease);
}

.cap-item:hover .cap-icon {
  border-color: var(--accent);
  box-shadow: 0 0 24px -6px var(--accent-glow);
}

.cap-icon svg { width: 22px; height: 22px; }

.cap-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.cap-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

.cap-item .cap-index {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ============================================
   LAUNCHES
   ============================================ */
.launch-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(12, 15, 26, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.launch-row {
  display: grid;
  grid-template-columns: 120px 1.6fr 1fr 1fr 1fr;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, padding 0.3s;
  gap: 1rem;
  position: relative;
}

.launch-row:last-child { border-bottom: none; }

.launch-row:hover {
  background: rgba(0, 229, 255, 0.03);
  padding-left: 2.5rem;
}

.launch-row:hover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.launch-row.head {
  background: rgba(8, 10, 20, 0.8);
  border-bottom-color: var(--border-strong);
  padding: 1rem 2rem;
}

.launch-row.head:hover { background: rgba(8, 10, 20, 0.8); padding-left: 2rem; }
.launch-row.head:hover::before { display: none; }

.launch-row.head span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.launch-row .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.6s var(--ease);
}

.launch-row .mission-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
}

.launch-row .vehicle,
.launch-row .site,
.launch-row .status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.launch-row .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.launch-row .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
}

.launch-row .status.go::before { background: #4effb8; box-shadow: 0 0 8px #4effb8; }
.launch-row .status.tbd::before { background: #ffb84e; }
.launch-row .status.success::before { background: #8a94a8; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 60px -10px var(--accent-glow);
  transform: translateY(-4px);
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(3,4,10,0.98) 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}

.gallery-item:hover .caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item .caption .mono {
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.gallery-item .caption strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  margin: -400px 0 0 -400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
  filter: blur(60px);
  animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.cta-section h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  font-size: 1.05rem;
  position: relative;
}

.cta-section .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: rgba(3, 4, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo { margin-bottom: 1.25rem; }

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
  font-weight: 300;
}

.footer-col a:hover { color: var(--accent); padding-left: 4px; }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s;
}

.newsletter-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1); }

.newsletter-form button {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #03040a;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  font-weight: 700;
}

.newsletter-form button:hover { box-shadow: 0 0 28px var(--accent-glow); transform: translateX(2px); }
.newsletter-form button svg { width: 18px; height: 18px; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}

.socials { display: flex; gap: 0.6rem; }

.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

.socials svg { width: 15px; height: 15px; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #03040a;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
  z-index: 500;
  box-shadow: 0 12px 28px -8px var(--accent-glow);
}

.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px) scale(1.05); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================
   MOBILE NAV
   ============================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: rgba(8, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-strong);
  z-index: 1100;
  padding: 5rem 2rem 2rem;
  transition: right 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav.open { right: 0; }

.mobile-nav a {
  padding: 1rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ============================================
   REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

