/* ==========================================================================
   QZL (QUETZALCOATL) — PROFESSIONAL DEFENSE SHOWCASE & MOTION SYSTEM
   Pure Black & White | Aerospace Grade Engineering Aesthetic
   ========================================================================== */

/* ---------- NAVBAR CONTROLS ---------- */
.nav-sfx-btn {
  display: none !important;
}

/* ---------- FULL BACKGROUND ODIN VIDEO & PHOTO PRESENTATION (ZERO BLUR / FULL PICTURE) ---------- */
.hero-bg-rover-video,
.hero-bg-odin-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
  filter: none;
  transform: scale(1.0);
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
  background: #000000;
}

.hero-bg-scrim {
  display: none;
}

.hero-headline,
.hero-headline .headline-line,
.hero-headline .accent-line {
  color: #ffffff !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

.hero-tactical-reticle,
.reticle-corner,
.reticle-data,
.reticle-data-top,
.reticle-data-bottom {
  display: none !important;
}

.hero-rover-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(20px, 4vw, 80px);
  pointer-events: none;
  overflow: hidden;
}

.hero-rover-glow-backdrop {
  position: absolute;
  width: 650px;
  height: 650px;
  right: 5%;
  top: 45%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 60, 20, 0.12) 0%, rgba(255, 255, 255, 0.03) 35%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: roverGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes roverGlowPulse {
  0% { transform: translateY(-50%) scale(0.95); opacity: 0.7; }
  100% { transform: translateY(-50%) scale(1.1); opacity: 1; }
}

.hero-rover-img-wrapper {
  position: relative;
  width: min(840px, 58vw);
  max-width: 840px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1);
}

.hero-rover-img {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 45px rgba(255, 45, 0, 0.15));
  mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  transition: filter 0.4s ease;
}

.hero-rover-img-wrapper:hover .hero-rover-img {
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 60px rgba(255, 50, 0, 0.24));
}

/* ---------- INTERACTIVE HOTSPOTS ---------- */
.hero-hotspot {
  position: absolute;
  top: var(--hs-top, 50%);
  left: var(--hs-left, 50%);
  transform: translate(-50%, -50%);
  z-index: 15;
  cursor: pointer;
  pointer-events: auto;
}

.hotspot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: hotspotWave 2.4s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  pointer-events: none;
}

@keyframes hotspotWave {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.hero-hotspot:hover .hotspot-dot {
  transform: scale(1.35);
  background: #ff4500;
  box-shadow: 0 0 18px #ff4500;
}

.hero-hotspot:hover .hotspot-pulse {
  border-color: #ff4500;
}

.hotspot-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 250px;
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 60, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.hotspot-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(10, 11, 15, 0.92) transparent transparent transparent;
}

.hero-hotspot:hover .hotspot-card,
.hero-hotspot.active .hotspot-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hotspot-tag {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #ff5722;
  text-transform: uppercase;
}

.hotspot-title {
  font-family: var(--font-body, sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.hotspot-detail {
  font-family: var(--font-body, sans-serif);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ---------- FLOATING TELEMETRY HUD ---------- */
.hero-telemetry-hud {
  display: none !important;
}

.hero-telemetry-hud:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.98), 0 0 35px rgba(255, 60, 0, 0.08);
  transform: translateY(-2px);
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
}

.hud-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 8px #00ff66;
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hud-code {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
}

.hud-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
}

.hud-label {
  font-family: var(--font-mono, monospace);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  font-size: 9px;
  text-transform: uppercase;
}

.hud-val {
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 9.5px;
}

.hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.14em;
}

.hud-footer-text {
  color: rgba(255, 255, 255, 0.4);
}

.hud-live-tag {
  color: #ff5722;
  font-weight: 700;
}

/* ---------- MOBILE HERO & RESPONSIVE FRAMING ---------- */
@media (max-width: 992px) {
  .hero-rover-stage,
  .hero-tactical-reticle,
  .hero-telemetry-hud {
    display: none !important;
  }

  .hero-bg-rover-video,
  .hero-bg-odin-img {
    object-fit: cover !important;
    object-position: center 30% !important;
    transform: scale(1.0) !important;
    filter: brightness(0.72) contrast(1.1) !important;
  }

  .hero {
    min-height: 100svh;
    height: auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding-top: calc(var(--nav-h, 72px) + 24px);
    padding-bottom: 32px;
    position: relative;
    box-sizing: border-box;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.96) 95%),
                linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 clamp(16px, 5vw, 24px) !important;
    margin: 0 !important;
    margin-top: auto !important;
    text-align: left !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
  }

  .hero-label {
    font-size: 10px !important;
    letter-spacing: 0.22em !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .hero-headline {
    font-size: clamp(3.4rem, 15vw, 5.2rem) !important;
    line-height: 0.9 !important;
    margin-bottom: 14px !important;
    text-align: left !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
  }

  .hero-subtext {
    font-size: clamp(0.92rem, 3.4vw, 1.05rem) !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  }

  .hero-status-strip {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    background: rgba(10, 10, 14, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .hero-status-strip .status-divider-slash {
    display: none !important;
  }

  .hero-status-strip .status-live-badge {
    font-size: 10.5px !important;
    letter-spacing: 0.18em !important;
    color: #ffffff !important;
  }

  .hero-status-strip .status-detail-text {
    font-size: 9.5px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-align: left !important;
  }

  .hero-ctas {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    flex: 1;
    min-width: 130px;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 16px;
    background: transparent;
  }

  .stat-number {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem) !important;
    font-family: var(--font-display, sans-serif);
    color: #ffffff;
    font-weight: 700;
  }

  .stat-label {
    font-size: 8px !important;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    font-family: var(--font-mono, monospace);
  }
}

@media (max-width: 576px) {
  .hero-bg-rover-video,
  .hero-bg-odin-img {
    object-position: 65% 35% !important;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
  }
}

/* ---------- ODIN DUAL-DOMAIN MORPHING HUD CONTROLLER ---------- */
.odin-morph-hud {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(36px, 6vh, 64px);
  width: min(380px, calc(100vw - 48px));
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 18px 22px;
  z-index: 25;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.odin-morph-hud:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.98), 0 0 40px rgba(255, 255, 255, 0.05);
}

.morph-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.morph-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
}

.morph-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulse 1.8s ease-in-out infinite;
}

.morph-hud-telemetry {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Mode Buttons */
.morph-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.morph-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 12px;
  border-radius: 2px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.morph-mode-btn .mode-num {
  font-size: 8.5px;
  opacity: 0.5;
}

.morph-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.morph-mode-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}

.morph-mode-btn.active .mode-num {
  opacity: 0.8;
}

/* Morph Scrub Range Slider */
.morph-slider-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.morph-slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.morph-pct-val {
  font-weight: 700;
  color: #ffffff;
  font-size: 9.5px;
}

.morph-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.morph-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.morph-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.25);
  box-shadow: 0 0 20px #ffffff;
}

.morph-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  cursor: grab;
}

/* Footer / Hint & Auto demo */
.morph-hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.morph-hint {
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.morph-auto-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 2px;
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.morph-auto-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.morph-auto-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* ==========================================================================
   SKYDIO / ANDURIL STYLE FULL-SCREEN PRODUCT SHOWCASE STAGE
   ========================================================================== */
.systems-showcase-section {
  padding: 0 !important;
  margin: 0;
  width: 100%;
  overflow: visible; /* CRITICAL: Must be visible so position:sticky operates reliably across browsers */
  background: #000000;
  position: relative;
}

/* Quick-Jump System Navigator Bar (Integrated Top Rail Inside Sticky Stage) */
.systems-nav-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  background: rgba(5, 6, 9, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
  width: 100%;
}

.systems-nav-rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(20px, 4vw, 48px);
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
}

.sys-rail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  padding: 7px 16px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.sys-rail-num {
  font-size: 9.5px;
  opacity: 0.6;
}

.rail-name-short {
  display: none;
}

.rail-name-full {
  display: inline;
}

.sys-rail-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sys-rail-btn.active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
}

.sys-rail-progress-bar {
  height: 2px;
  background: #ffffff;
  width: 20%;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* FULL-SCREEN IMMERSIVE SCROLL SHOWCASE */
.systems-scroll-showcase {
  position: relative;
  width: 100%;
  height: 350vh; /* Smooth, responsive scroll runway */
  overflow: visible;
}

/* Pinned Sticky Stage (Full-Screen Viewport Behind/Around Floating Text) */
.systems-sticky-stage {
  position: -webkit-sticky;
  position: sticky;
  top: var(--nav-h, 80px);
  height: calc(100vh - var(--nav-h, 80px));
  width: 100%;
  overflow: hidden;
  z-index: 10;
  background: #000000;
}

.system-bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  will-change: opacity, transform;
  transform: scale(1.02);
  pointer-events: none;
  transition: none; /* Driven continuously by JS requestAnimationFrame */
}

.system-bg-item.active {
  opacity: 1;
  transform: scale(1);
}

.system-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.92) contrast(1.06);
}

/* Cinematic Gradient Scrim (Guarantees Left-Side Text Legibility over Photo) */
.system-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 4, 7, 0.96) 0%, rgba(3, 4, 7, 0.85) 38%, rgba(3, 4, 7, 0.35) 68%, rgba(3, 4, 7, 0.72) 100%),
              radial-gradient(circle at 75% 45%, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

/* Custom Alignment for ODIN (Matching Q-SERIES / Supratika Cinematic Scrim & Framing) */
#bg-odin .system-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 48%;
  filter: brightness(1.0) contrast(1.08);
}

#bg-odin .system-bg-scrim {
  background: linear-gradient(90deg, rgba(3, 4, 7, 0.98) 0%, rgba(3, 4, 7, 0.88) 26%, rgba(3, 4, 7, 0.18) 52%, transparent 72%),
              radial-gradient(circle at 82% 50%, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

.slide-mobile-img-odin,
.slide-mobile-img[src*="odin"] {
  object-fit: cover !important;
  object-position: 72% 55% !important;
}

/* Custom Alignment for VRITRA (VTOL2): Frame aircraft cleanly on the right */
#bg-vritra .system-bg-img {
  object-position: 65% center;
  filter: brightness(0.96) contrast(1.06);
}

.slide-mobile-img-vritra,
.slide-mobile-img[src*="vtol2"] {
  object-position: 65% center !important;
}

/* Custom Alignment for Supratika Heavy: Shift drone to the right for maximum visibility */
#bg-supratika-heavy .system-bg-img {
  object-position: 22% center;
  transform: translateX(12vw) scale(1.05);
  width: calc(100% + 12vw);
  max-width: none;
  filter: brightness(1.0) contrast(1.08);
}

#bg-supratika-heavy .system-bg-scrim {
  background: linear-gradient(90deg, rgba(3, 4, 7, 0.98) 0%, rgba(3, 4, 7, 0.88) 26%, rgba(3, 4, 7, 0.18) 52%, transparent 72%),
              radial-gradient(circle at 82% 50%, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

/* Custom Alignment for Q-SERIES: Shift drone to the right and upwards for maximum visibility */
#bg-qseries .system-bg-img {
  object-position: 20% 88%;
  transform: translate(12vw, -4vh) scale(1.03);
  width: calc(100% + 12vw);
  height: calc(100% + 8vh);
  max-width: none;
  filter: brightness(1.0) contrast(1.08);
}

#bg-qseries .system-bg-scrim {
  background: linear-gradient(90deg, rgba(3, 4, 7, 0.98) 0%, rgba(3, 4, 7, 0.88) 26%, rgba(3, 4, 7, 0.18) 52%, transparent 72%),
              radial-gradient(circle at 82% 50%, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

/* Left-Aligned Floating Text Slide Overlays (Directly Over Photo) */
.system-slide-overlay {
  position: absolute;
  top: calc(50% + 24px);
  left: clamp(24px, 5vw, 64px);
  transform: translateY(-50%);
  max-width: 580px;
  width: calc(100% - clamp(48px, 10vw, 128px));
  z-index: 25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform;
}

.system-slide-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.system-slide-content {
  width: 100%;
  text-align: left;
}

.slide-mobile-media {
  display: none;
}

.slide-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.slide-index {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
}

.slide-total {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.slide-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

.slide-title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.slide-tagline {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.slide-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
  max-width: 580px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Specifications Grid (High-Tech Frosted Glass Cards Above Photo) */
.slide-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
  max-width: 600px;
}

.slide-stat-box {
  background: rgba(14, 17, 25, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-stat-box:hover {
  background: rgba(24, 28, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}

.slide-stat-val {
  font-family: var(--font-display, sans-serif);
  font-size: 1.55rem;
  color: #ffffff;
  line-height: 1;
}

.slide-stat-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Stage Bottom HUD */
.stage-bottom-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  z-index: 35;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.stage-hud-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.stage-hud-tag,
.stage-hud-counter {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.stage-hud-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.stage-nav-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 12px;
  border-radius: 2px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.stage-nav-arrow:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.stage-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* 3D Card Tilt on Other Pages */
.home-link-card, .system-card, .tech-card, .ops-card, .milestone-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s;
}

.home-link-card::before, .system-card::before, .tech-card::before, .ops-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.home-link-card:hover::before, .system-card:hover::before, .tech-card:hover::before, .ops-card:hover::before {
  opacity: 1;
}

/* Short-Viewport Desktop Accommodations (Laptops & Small Heights) */
@media (min-width: 901px) and (max-height: 800px) {
  .system-slide-overlay {
    top: calc(50% + 16px);
    max-width: 530px;
  }
  .slide-indicator {
    margin-bottom: 8px;
    gap: 10px;
  }
  .slide-title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    margin-bottom: 6px;
  }
  .slide-tagline {
    font-size: 9.5px;
    margin-bottom: 8px;
  }
  .slide-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: 510px;
  }
  .slide-stats-grid {
    gap: 8px;
    margin-bottom: 16px;
  }
  .slide-stat-box {
    padding: 8px 12px;
  }
  .slide-stat-val {
    font-size: 1.3rem;
  }
  .slide-stat-lbl {
    font-size: 8px;
  }
  .slide-actions {
    gap: 10px;
  }
  .slide-actions .btn-primary,
  .slide-actions .btn-ghost {
    padding: 9px 18px;
    font-size: 11px;
  }
}

@media (min-width: 901px) and (max-height: 620px) {
  .system-slide-overlay {
    top: calc(50% + 12px);
    max-width: 480px;
  }
  .slide-indicator {
    margin-bottom: 4px;
  }
  .slide-title {
    font-size: 1.9rem;
    margin-bottom: 4px;
  }
  .slide-tagline {
    font-size: 8.5px;
    margin-bottom: 4px;
  }
  .slide-desc {
    font-size: 11.5px;
    line-height: 1.38;
    margin-bottom: 8px;
  }
  .slide-stats-grid {
    gap: 5px;
    margin-bottom: 10px;
  }
  .slide-stat-box {
    padding: 5px 8px;
  }
  .slide-stat-val {
    font-size: 1.1rem;
  }
  .slide-stat-lbl {
    font-size: 7px;
  }
  .slide-actions .btn-primary,
  .slide-actions .btn-ghost {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* ==========================================================================
   SYSTEMS PAGE RESPONSIVE & MOBILE PHONE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1024px) {
  .system-bg-img {
    object-position: center 25% !important;
  }
  .system-bg-scrim {
    background: linear-gradient(180deg, rgba(3, 4, 7, 0.4) 0%, rgba(3, 4, 7, 0.2) 25%, rgba(3, 4, 7, 0.75) 55%, rgba(3, 4, 7, 0.96) 85%, #000000 100%) !important;
  }
  .system-slide-overlay {
    max-width: 520px;
    left: clamp(16px, 4vw, 36px);
    width: calc(100% - clamp(32px, 8vw, 72px));
  }
}

@media (max-width: 900px) {
  .nav-sfx-btn {
    padding: 5px 8px;
    font-size: 9px;
  }
  .nav-sfx-btn .sfx-text {
    display: none;
  }

  /* Make sure the systems section has full black background and proper z-index */
  .systems-showcase-section {
    background: #000000 !important;
    position: relative !important;
    z-index: 5 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Mobile scroll showcase container: natural vertical scrolling flow */
  .systems-scroll-showcase {
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    overflow: visible !important;
    background: #000000 !important;
  }

  /* Mobile sticky stage */
  .systems-sticky-stage {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    background: #000000 !important;
    overflow: visible !important;
  }

  /* Sticky Top Navigation Rail */
  .systems-nav-rail {
    position: sticky !important;
    top: var(--nav-h, 72px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: rgba(8, 9, 12, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .systems-nav-rail-inner {
    padding: 8px 10px !important;
    gap: 5px !important;
    justify-content: space-between !important;
    display: flex !important;
    width: 100% !important;
  }

  .sys-rail-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 7px 4px !important;
    font-size: 8.5px !important;
    letter-spacing: 0.08em !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 4px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease !important;
  }

  .sys-rail-btn .sys-rail-num {
    font-size: 7.5px !important;
    opacity: 0.7 !important;
  }

  .sys-rail-btn .sys-rail-name {
    font-size: 8px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sys-rail-btn.active {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.12) !important;
  }

  .sys-rail-progress-bar {
    display: none !important;
  }

  /* Hide background photo layer on mobile since each card has its own picture */
  .system-bg-item {
    display: none !important;
  }

  /* Mobile System Slide Card - Full vertical list of all 4 products */
  .system-slide-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    padding: 32px clamp(16px, 4vw, 24px) 44px clamp(16px, 4vw, 24px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    scroll-margin-top: calc(var(--nav-h, 72px) + 50px) !important;
    background: transparent !important;
  }

  .system-slide-content {
    width: 100% !important;
  }

  /* Dedicated Mobile Vehicle Photo */
  .slide-mobile-media {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9) !important;
    background: #000000 !important;
  }

  .slide-mobile-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Indicator Line */
  .slide-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  .slide-index {
    font-family: var(--font-mono, monospace) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .slide-total {
    font-family: var(--font-mono, monospace) !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }

  .slide-badge {
    font-family: var(--font-mono, monospace) !important;
    font-size: 9px !important;
    padding: 3px 10px !important;
    letter-spacing: 0.16em !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 2px !important;
  }

  /* Title & Tagline */
  .slide-title {
    font-family: var(--font-display, sans-serif) !important;
    font-size: clamp(2.2rem, 8.5vw, 3rem) !important;
    line-height: 0.98 !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    letter-spacing: 0.02em !important;
  }

  .slide-tagline {
    font-family: var(--font-mono, monospace) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase !important;
    display: block !important;
  }

  .slide-desc {
    font-family: var(--font-body, sans-serif) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    display: block !important;
  }

  /* Stats Grid: 3x2 High-Tech Frosted Badges */
  .slide-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
  }

  .slide-stat-box {
    padding: 10px 8px !important;
    background: rgba(14, 18, 26, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }

  .slide-stat-val {
    font-family: var(--font-display, sans-serif) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1 !important;
  }

  .slide-stat-lbl {
    font-family: var(--font-mono, monospace) !important;
    font-size: 7.5px !important;
    letter-spacing: 0.1em !important;
    color: rgba(255, 255, 255, 0.55) !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  /* Action Buttons */
  .slide-actions {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }

  .slide-actions .btn-primary {
    flex: 1 1 180px !important;
    padding: 12px 18px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.12em !important;
    justify-content: center !important;
    text-align: center !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    white-space: nowrap !important;
  }

  .slide-actions .btn-ghost {
    flex: 1 1 140px !important;
    padding: 12px 18px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.12em !important;
    justify-content: center !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    white-space: nowrap !important;
  }

  /* Hide bottom stage HUD on mobile */
  .stage-bottom-hud {
    display: none !important;
  }

  /* Techsheet Modal Mobile Optimization */
  .techsheet-modal-backdrop {
    padding: 8px;
  }

  .techsheet-modal-dialog {
    padding: 24px 16px;
    max-height: 94svh;
    border-radius: 4px;
  }

  .techsheet-modal-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .techsheet-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 6px;
  }

  .techsheet-punchline {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .techsheet-desc {
    font-size: 12px;
    line-height: 1.55;
  }

  .techsheet-glance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 16px 0 20px;
  }

  .techsheet-glance-box {
    padding: 10px;
  }

  .techsheet-glance-val {
    font-size: 1.35rem;
  }

  .techsheet-specs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .techsheet-table-card {
    padding: 12px 14px;
  }

  .techsheet-table {
    font-size: 11px;
  }

  .techsheet-table td {
    padding: 5px 0;
  }

  .techsheet-feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .systems-nav-rail-inner {
    padding: 6px 6px !important;
    gap: 3px !important;
  }

  .sys-rail-btn {
    padding: 5px 2px !important;
    font-size: 7.8px !important;
    letter-spacing: 0.06em !important;
    gap: 2px !important;
  }

  .sys-rail-num {
    font-size: 7px !important;
  }

  .rail-name-full {
    display: none !important;
  }

  .rail-name-short {
    display: inline !important;
  }

  .slide-title {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem) !important;
  }

  .slide-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .slide-stat-box {
    padding: 8px 6px !important;
  }

  .slide-stat-val {
    font-size: 1.15rem !important;
  }

  .slide-stat-lbl {
    font-size: 7px !important;
  }
}

