:root,
[data-theme="obsidian"] {
  --bg-void: #040508;
  --bg-surface: rgba(11, 14, 23, 0.72);
  --bg-glass: rgba(16, 21, 34, 0.65);
  --accent-primary: #F5D77F;
  --accent-primary-dim: rgba(245, 215, 127, 0.16);
  --accent-secondary: #00F0FF;
  --accent-secondary-dim: rgba(0, 240, 255, 0.14);
  --accent-danger: #FF3366;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 215, 127, 0.38);
  --shadow-aura: 0 20px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 215, 127, 0.12);
}

[data-theme="cryo"] {
  --bg-void: #020813;
  --bg-surface: rgba(7, 20, 38, 0.75);
  --bg-glass: rgba(10, 28, 52, 0.65);
  --accent-primary: #00F0FF;
  --accent-primary-dim: rgba(0, 240, 255, 0.16);
  --accent-secondary: #7B61FF;
  --accent-secondary-dim: rgba(123, 97, 255, 0.16);
  --accent-danger: #FF3366;
  --text-main: #F0F9FF;
  --text-muted: #7DD3FC;
  --border-subtle: rgba(0, 240, 255, 0.14);
  --border-glow: rgba(0, 240, 255, 0.45);
  --shadow-aura: 0 20px 60px -15px rgba(0, 12, 28, 0.9), 0 0 40px rgba(0, 240, 255, 0.16);
}

[data-theme="supernova"] {
  --bg-void: #090306;
  --bg-surface: rgba(24, 9, 16, 0.75);
  --bg-glass: rgba(34, 12, 22, 0.65);
  --accent-primary: #FF3366;
  --accent-primary-dim: rgba(255, 51, 102, 0.16);
  --accent-secondary: #FFB800;
  --accent-secondary-dim: rgba(255, 184, 0, 0.14);
  --accent-danger: #FF0055;
  --text-main: #FFF1F2;
  --text-muted: #FDA4AF;
  --border-subtle: rgba(255, 51, 102, 0.15);
  --border-glow: rgba(255, 51, 102, 0.45);
  --shadow-aura: 0 20px 60px -15px rgba(20, 0, 8, 0.9), 0 0 40px rgba(255, 51, 102, 0.18);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-void);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
}

/* Custom Magnetic Cursor */
@media (pointer: fine) {
  body, a, button, select, input {
    cursor: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent-primary);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease;
}

.cursor-ring.hovered {
  width: 74px;
  height: 74px;
  background: rgba(245, 215, 127, 0.12);
  border-color: var(--accent-primary);
  backdrop-filter: blur(4px);
}

.cursor-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: center;
}

.cursor-ring.hovered .cursor-label {
  opacity: 1;
}

/* Background Canvas & Overlays */
#cosmos-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 15%, var(--accent-primary-dim), transparent 40%),
    radial-gradient(circle at 15% 80%, var(--accent-secondary-dim), transparent 45%);
}

/* Top Telemetry Bar */
.telemetry-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(3, 5, 10, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.telemetry-left, .telemetry-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

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

.gold-text { color: var(--accent-primary) !important; }
.cyan-text { color: var(--accent-secondary) !important; }

.telemetry-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.telemetry-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 2px;
}

.theme-chip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 99px;
  transition: all 0.25s ease;
}

.theme-chip.active {
  background: var(--accent-primary);
  color: #05070B;
  font-weight: 700;
}

.icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Orbital Floating Header */
.orbital-header {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1340px, 94vw);
  height: 68px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 22px;
  box-shadow: var(--shadow-aura);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-emblem {
  width: 38px;
  height: 38px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover .logo-emblem {
  transform: rotate(90deg) scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.18em;
}

.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-island {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(3, 5, 10, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
}

.nav-link {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.nav-link.active, .nav-link:hover {
  color: var(--text-main);
}

.nav-pill-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--accent-primary-dim), var(--accent-secondary-dim));
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-trigger-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  height: 42px;
  padding: 0 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.cmd-trigger-btn:hover {
  border-color: var(--accent-secondary);
  color: var(--text-main);
}

.kbd-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Morphing Header Button */
.morph-btn {
  position: relative;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-glow);
  background: rgba(245, 215, 127, 0.08);
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-btn .morph-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.morph-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-primary-dim);
}

.morph-btn:hover .morph-bg {
  opacity: 1;
  transform: scaleX(1);
}

.morph-btn .morph-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.morph-btn:hover .morph-content {
  color: #030508;
}

/* Holographic Burger Button */
.holo-menu-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.holo-menu-trigger:hover {
  border-color: var(--accent-primary);
  transform: rotate(90deg);
}

.burger-line {
  width: 18px;
  height: 1.5px;
  background: var(--text-main);
  transition: all 0.3s ease;
}

/* Fullscreen Holographic Mega Menu */
.holo-mega-menu {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.96);
  backdrop-filter: blur(28px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.holo-mega-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.holo-menu-container {
  width: min(1240px, 100%);
}

.holo-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.holo-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.holo-close-btn:hover {
  border-color: var(--accent-danger);
  color: var(--accent-danger);
}

.holo-menu-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.holo-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.holo-nav-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.holo-nav-item:hover {
  transform: translateX(14px);
  border-color: var(--accent-primary);
  background: var(--accent-primary-dim);
}

.holo-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent-primary);
}

.holo-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.holo-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.holo-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.holo-arrow {
  font-size: 22px;
  color: var(--accent-secondary);
}

.holo-telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.holo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

.stratoport-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stratoport-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.stratoport-row strong {
  display: block;
  font-size: 13px;
}

.stratoport-row small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.mono-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-secondary);
}

.holo-card-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.holo-card-footer code {
  display: block;
  margin-top: 6px;
  padding: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--accent-secondary-dim);
  border-radius: 8px;
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Main Layout */
main {
  position: relative;
  z-index: 2;
  padding-top: 140px;
}

section {
  width: min(1340px, 92vw);
  margin: 0 auto 140px auto;
}

/* HERO SECTION */
.hero-section {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-primary-dim);
  border: 1px solid var(--border-glow);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4.7rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-gold {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #FFFFFF 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 610px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

/* Liquid Morphing Launch Button */
.liquid-launch-btn {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-launch-btn .btn-aura {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 200% 100%;
  animation: auraFlow 4s linear infinite;
  filter: blur(8px);
  opacity: 0.65;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

@keyframes auraFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.liquid-launch-btn .btn-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px 12px 14px;
  border-radius: 999px;
  background: #070A12;
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-launch-btn .btn-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #04060A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.45s ease;
}

.liquid-launch-btn .btn-text-stack {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.btn-sub-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--accent-primary);
}

.btn-arrow-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.35s ease, background 0.35s ease;
}

.liquid-launch-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.liquid-launch-btn:hover .btn-icon-box {
  transform: rotate(45deg) scale(1.1);
  border-radius: 14px;
}

.liquid-launch-btn:hover .btn-arrow-pill {
  transform: translateX(5px);
  background: var(--accent-primary);
  color: #030508;
}

/* Hold-to-Ignite Button */
.hold-ignite-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  user-select: none;
  transition: all 0.3s ease;
}

.hold-ignite-btn:hover {
  border-color: var(--accent-secondary);
  background: rgba(0, 240, 255, 0.06);
}

.hold-ignite-btn.ignited {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.progress-ring-fill {
  fill: transparent;
  stroke: var(--accent-secondary);
  stroke-width: 3.5;
  stroke-dasharray: 144.5;
  stroke-dashoffset: 144.5;
  transition: stroke-dashoffset 0.08s linear;
}

.hold-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hold-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.hold-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}

/* Hero Metrics */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
}

.metric-val {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.metric-val small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-primary);
  margin-left: 6px;
}

.metric-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* 3D Globe Visualizer Frame */
.globe-hud-frame {
  position: relative;
  background: radial-gradient(circle at center, rgba(16, 24, 42, 0.8), rgba(4, 6, 11, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow-aura);
  overflow: hidden;
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent-primary);
  border-style: solid;
  pointer-events: none;
}

.hud-corner.top-left { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.hud-corner.top-right { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.hud-corner.bottom-left { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.hud-corner.bottom-right { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.hud-overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hud-live-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--accent-secondary-dim);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

#orbital-globe-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

.hud-overlay-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.hud-mini-stat span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}

.hud-mini-stat strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-primary);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* FLEET 3D TILT CARDS */
.fleet-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1200px;
}

.tilt-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 32px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tilt-card.featured-card {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-aura);
}

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

.card-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 215, 127, 0.13), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover .card-spotlight {
  opacity: 1;
}

.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mach-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  border: 1px solid var(--border-glow);
}

.mach-pill.cyan {
  background: var(--accent-secondary-dim);
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.aircraft-schematic {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(3, 5, 10, 0.5);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
}

.schematic-svg {
  width: 90%;
  height: 90%;
}

.thruster-node {
  animation: pulseGlow 1.4s infinite;
}

.aircraft-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.aircraft-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.aircraft-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.spec-item span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}

.spec-item strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-main);
}

/* Morphing Aircraft Select Button */
.morph-select-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-select-btn .state-active {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #04060A;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-select-btn:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-dim);
}

.morph-select-btn.selected {
  border-color: var(--accent-primary);
  border-radius: 999px;
}

.morph-select-btn.selected .state-active {
  transform: translateY(0%);
}

/* SIMULATOR & BOOKING CONSOLE */
.simulator-console {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 38px;
  box-shadow: var(--shadow-aura);
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.input-group input,
.input-group select {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(3, 5, 10, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-primary-dim);
}

.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 99px;
  padding: 0 !important;
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
}

.sim-telemetry-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(3, 5, 10, 0.65);
  border: 1px solid var(--border-subtle);
}

.sim-stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-top: 4px;
}

/* Morphing Submit Button (3 States) */
.morph-submit-btn {
  position: relative;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  background: linear-gradient(135deg, var(--accent-primary), #D4A137);
  color: #04060A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-submit-btn.full-width {
  width: 100%;
  margin-top: 10px;
}

.morph-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-primary-dim);
  border-radius: 999px;
}

.morph-submit-btn .btn-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.morph-submit-btn .state-idle {
  transform: translateY(0);
  opacity: 1;
}

.morph-submit-btn .state-loading,
.morph-submit-btn .state-success {
  transform: translateY(100%);
  opacity: 0;
}

.morph-submit-btn.loading {
  background: #0A1324;
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  border-radius: 999px;
}

.morph-submit-btn.loading .state-idle { transform: translateY(-100%); opacity: 0; }
.morph-submit-btn.loading .state-loading { transform: translateY(0); opacity: 1; }

.morph-submit-btn.success {
  background: #10B981;
  color: #030705;
  border-color: #10B981;
  border-radius: 999px;
}

.morph-submit-btn.success .state-idle,
.morph-submit-btn.success .state-loading { transform: translateY(-100%); opacity: 0; }
.morph-submit-btn.success .state-success { transform: translateY(0); opacity: 1; }

.spinner-orb {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--accent-secondary);
  border-right-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spinOrb 0.7s linear infinite;
}

@keyframes spinOrb {
  to { transform: rotate(360deg); }
}

/* Right Trajectory Arc Canvas Panel */
.sim-arc-panel {
  background: rgba(3, 5, 10, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arc-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#trajectory-arc-canvas {
  width: 100%;
  height: auto;
  margin: 12px 0;
}

.arc-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stage-pill {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.stage-pill.active {
  border-color: var(--accent-secondary);
  background: var(--accent-secondary-dim);
}

.stage-pill small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}

.stage-pill strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
}

/* BENTO ARCHITECTURE GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.bento-item.bento-wide {
  grid-column: span 2;
}

.bento-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

.bento-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.bento-item p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14.5px;
}

.bento-big-stat {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-secondary);
  margin-top: 24px;
}

.plasma-wave-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 46px;
  margin-top: 24px;
}

.plasma-wave-bar span {
  flex: 1;
  background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
  border-radius: 4px;
  animation: waveBar 1.4s ease-in-out infinite;
}

.plasma-wave-bar span:nth-child(odd) { animation-duration: 0.9s; }
.plasma-wave-bar span:nth-child(3n) { animation-duration: 1.7s; }

@keyframes waveBar {
  0%, 100% { height: 25%; opacity: 0.5; }
  50% { height: 100%; opacity: 1; }
}

.hull-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.layer-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(245, 215, 127, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--accent-primary);
}

/* HANGAR SECTION (SQLITE DASHBOARD) */
.hangar-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 38px;
  box-shadow: var(--shadow-aura);
}

.commander-profile-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.commander-id-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.commander-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #030508;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commander-meta h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
}

.commander-badges {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.badge-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
}

.charters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.boarding-pass-card {
  background: rgba(3, 5, 10, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.boarding-pass-card:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-4px);
}

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pass-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
}

.pass-code {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-primary);
}

.pass-city {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.pass-vector-line {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-secondary);
}

.pass-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.pass-details span {
  color: var(--text-muted);
  display: block;
  font-size: 9.5px;
}

.pass-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.abort-mission-btn {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: var(--accent-danger);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  transition: all 0.25s ease;
}

.abort-mission-btn:hover {
  background: var(--accent-danger);
  color: #fff;
}

/* MODALS (AUTH & COMMAND PALETTE) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 9, 0.85);
  backdrop-filter: blur(18px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-glass-card {
  width: min(500px, 100%);
  background: #080B14;
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-aura);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-glass-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.scanner-reticle {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px auto;
  color: var(--accent-secondary);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: laserScan 2.2s ease-in-out infinite;
}

@keyframes laserScan {
  0%, 100% { top: 6px; }
  50% { top: 50px; }
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.auth-tab {
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 9px;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: var(--accent-primary);
  color: #030508;
}

.demo-credentials-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent-secondary-dim);
  border: 1px solid rgba(0, 240, 255, 0.3);
  margin-bottom: 18px;
  font-size: 12px;
}

.quick-fill-btn {
  background: var(--accent-secondary);
  color: #02060D;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.auth-form.active {
  display: flex;
}

.form-feedback {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  min-height: 16px;
}

.error-msg { color: var(--accent-danger); }

/* Command Palette */
.cmd-palette-box {
  width: min(620px, 100%);
  background: #080C16;
  border: 1px solid var(--border-glow);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-aura);
}

.cmd-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
}

.cmd-esc-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}

.cmd-results {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 14px;
  text-align: left;
  transition: all 0.2s ease;
}

.cmd-item:hover {
  background: var(--accent-primary-dim);
  border-color: var(--border-glow);
}

.cmd-item small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orbital-toast {
  background: rgba(8, 12, 22, 0.95);
  border: 1px solid var(--accent-primary);
  border-left: 4px solid var(--accent-primary);
  border-radius: 14px;
  padding: 14px 20px;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  box-shadow: var(--shadow-aura);
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.orbital-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: rgba(2, 4, 8, 0.9);
  position: relative;
  z-index: 2;
}

.footer-inner {
  width: min(1340px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .simulator-console,
  .fleet-cards-grid,
  .bento-grid,
  .holo-menu-columns {
    grid-template-columns: 1fr;
  }
  .bento-item.bento-wide {
    grid-column: span 1;
  }
  .nav-island, .hide-mobile {
    display: none;
  }
}
