/* ============================================================
   MYPATH — ULTRA-LUXURY AEROSPACE DESIGN SYSTEM & SCROLL ENGINE
   Swiss Modernism, Clean Titanium Surfaces, Kinetic Scroll & 3D HUD
   ============================================================ */

/* ──────────────────────────────────────────────
   0. LUXURY DESIGN TOKENS
────────────────────────────────────────────── */
:root {
  /* Surfaces: Clean, Architectural Porcelain & Titanium */
  --color-bg:              #fbfcfe;
  --color-bg-pure:         #ffffff;
  --color-bg-subtle:       #f4f6f9;
  --color-bg-card:         #ffffff;
  --color-bg-card-hover:   #f8fafc;
  --color-surface-glass:   rgba(255, 255, 255, 0.82);
  --color-surface-trans:   rgba(255, 255, 255, 0.65);

  /* High-Contrast Obsidian & Aerospace Grays */
  --color-text-main:       #090d16;  /* Deep Obsidian */
  --color-text-muted:      #334155;  /* Slate 700 */
  --color-text-light:      #64748b;  /* Slate 500 */
  --color-text-faint:      #94a3b8;  /* Slate 400 */

  /* Precision Aerospace Accents */
  --brand-navy:            #0a192f;  /* Deep Cockpit Navy */
  --brand-primary:         #1d4ed8;  /* Royal Aero Cobalt */
  --brand-primary-hover:   #1e40af;
  --brand-electric:        #2563eb;  /* Precision Blue */
  --brand-cyan:            #0284c7;  /* High-Altitude Sky */
  --brand-emerald:         #059669;  /* Climb / Target Green */
  --brand-amber:           #d97706;  /* Caution / Airspace Gold */
  --brand-coral:           #dc2626;  /* Alert / Sinkrate Red */
  --brand-platinum:        #e2e8f0;  /* Titanium Trim */

  /* Architectural Gradients */
  --grad-brand:            linear-gradient(135deg, #090d16 0%, #1e3a8a 100%);
  --grad-brand-light:      linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  --grad-metallic:         linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(244, 246, 249, 0.8) 100%);
  --grad-badge:            linear-gradient(135deg, rgba(29, 78, 216, 0.06) 0%, rgba(2, 132, 199, 0.04) 100%);
  --grad-alt-profile:      linear-gradient(180deg, rgba(29, 78, 216, 0.18) 0%, rgba(29, 78, 216, 0.01) 100%);

  /* Fine Aerospace Borders */
  --border-subtle:         rgba(15, 23, 42, 0.07);
  --border-medium:         rgba(15, 23, 42, 0.12);
  --border-focus:          #1d4ed8;
  --border-glass:          rgba(255, 255, 255, 0.8);

  /* Luxury Shadows */
  --shadow-sm:             0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card:           0 4px 24px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover:     0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.03);
  --shadow-floating:       0 30px 60px -15px rgba(15, 23, 42, 0.16);
  --shadow-inset-top:      inset 0 1px 0 rgba(255, 255, 255, 0.95);

  /* Typography */
  --font-display:          'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:             'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing */
  --container-max:         1260px;
  --section-py:            clamp(80px, 9vw, 150px);
  --radius-xs:             6px;
  --radius-sm:             10px;
  --radius-md:             16px;
  --radius-lg:             24px;
  --radius-pill:           9999px;

  /* Transitions */
  --ease-spring:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:           cubic-bezier(0.4, 0, 0.2, 1);
  --glass-blur:            blur(20px) saturate(190%);
}

/* ──────────────────────────────────────────────
   1. BASE & MODERN GRID TEXTURE
────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  /* Aeronautical Micro-Grid */
  background-image: radial-gradient(rgba(15, 23, 42, 0.065) 1px, transparent 1px);
  background-size: 32px 32px;
}

::selection {
  background-color: rgba(29, 78, 216, 0.15);
  color: var(--brand-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* ──────────────────────────────────────────────
   2. FIXED AEROSPACE ALTITUDE RULER (SCROLL TRACKER)
────────────────────────────────────────────── */
.altitude-scroll-ruler {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.altitude-scroll-ruler.active {
  opacity: 1;
}

.altitude-tape-track {
  width: 3px;
  height: 220px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 2px;
  position: relative;
}

.altitude-tape-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--brand-primary);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.6);
}

.altitude-bead-marker {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--brand-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: top 0.08s linear;
}

.altitude-readout-pill {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.altitude-readout-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.altitude-readout-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────
   3. TYPOGRAPHY & LUXURY BADGES
────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-text-main);
  letter-spacing: -0.035em;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--color-text-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.section-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 8px rgba(29, 78, 216, 0.7);
  animation: radarPulse 2.4s infinite;
}

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

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 18px;
}

.section-title-highlight {
  background: var(--grad-brand-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.65;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ──────────────────────────────────────────────
   4. BUTTONS & CONTROLS (Clean, Tactile, High-End)
────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.28s var(--ease-spring);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text-main);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.25), var(--shadow-inset-top);
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text-main);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-accent {
  background: var(--grad-brand-light);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px -4px rgba(29, 78, 216, 0.4);
}

.btn-accent:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(29, 78, 216, 0.5);
}

.btn-ghost {
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--brand-primary);
  background: rgba(29, 78, 216, 0.05);
}

/* ──────────────────────────────────────────────
   5. NAVIGATION (Apple-Style Frosted Light Header)
────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  background: rgba(251, 252, 254, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: height 0.3s var(--ease-smooth), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  height: 68px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  transition: transform 0.2s ease;
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 24px);
  margin: 0 12px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 4px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

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

.nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-link-subtle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-subtle:hover {
  color: var(--brand-primary);
  background: rgba(29, 78, 216, 0.05);
}

.nav-cta-btn {
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}

/* Modern Animated Hamburger Toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.nav-mobile-toggle:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--border-subtle);
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-main);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.2s ease;
  transform-origin: center;
}

.nav-mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Drawer (Frosted Glass Slide-Down) */
.mobile-menu-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.navbar.scrolled ~ .mobile-menu-drawer {
  top: 68px;
  max-height: calc(100vh - 68px);
}

.mobile-menu-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text-main);
  background: transparent;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mobile-nav-link svg {
  color: var(--color-text-light);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: var(--color-bg-subtle);
  border-color: var(--border-subtle);
  color: var(--brand-primary);
}

.mobile-nav-link:hover svg, .mobile-nav-link:active svg {
  color: var(--brand-primary);
  transform: translateX(3px);
}

.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

body.nav-open {
  overflow: hidden;
}

/* ──────────────────────────────────────────────
   6. HERO SECTION: CLEAN, ARCHITECTURAL, EDEL
────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(76px + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle at 50% 30%, rgba(29, 78, 216, 0.08) 0%, rgba(2, 132, 199, 0.03) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

/* Fluid, Harmonious Headline without awkward wraps */
.hero-title {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.hero-typewriter-container {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 4px 18px 4px 14px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  margin-left: 6px;
}

.typewriter-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 8px rgba(29, 78, 216, 0.8);
  margin-right: 10px;
  flex-shrink: 0;
}

.hero-typewriter {
  color: var(--brand-primary);
  font-weight: 800;
  display: inline-block;
  min-width: 160px;
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 740px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Key Metrics Bar */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 28px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 880px;
  margin: 0 auto;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.74rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────────
   7. KINETIC WORD-SCRUB TEXT REVEAL ON SCROLL
────────────────────────────────────────────── */
.kinetic-statement-section {
  padding: clamp(60px, 8vw, 120px) 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.kinetic-statement-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.kinetic-headline {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--color-text-main);
}

.kinetic-word {
  opacity: 0.18;
  filter: blur(2px);
  transition: opacity 0.25s ease, filter 0.25s ease, color 0.25s ease;
  will-change: opacity, filter;
  display: inline-block;
  margin-right: 0.25em;
}

.kinetic-word.active {
  opacity: 1;
  filter: blur(0);
  color: var(--color-text-main);
}

.kinetic-word.highlight {
  color: var(--brand-primary);
}

/* ──────────────────────────────────────────────
   8. MASSIVE PINNED 3D SCROLLYTELLING FLIGHT SECTION (350vh)
────────────────────────────────────────────── */
.scrolly-container {
  position: relative;
  height: 350vh; /* Deep scrolling track */
  background: #ffffff;
}

.scrolly-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 90px 40px 40px;
  overflow: hidden;
}

.scrolly-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

.scrolly-flight-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.scrolly-progress-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: rgba(29, 78, 216, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(29, 78, 216, 0.2);
}

/* Central Stage: Full 3D Flight Canvas + Dynamic Stage Overlays */
.scrolly-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#scrollyFlightCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Milestone Cards that Fly in/out on Scroll */
.scrolly-milestone-card {
  position: absolute;
  bottom: 120px;
  left: 60px;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-floating);
  z-index: 10;
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
  pointer-events: none;
}

.scrolly-milestone-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.milestone-phase-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
}

.milestone-title {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.milestone-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Floating Live Instrument HUD (Attitude Indicator, Speed Tape, Altimeter) */
.scrolly-live-hud {
  position: absolute;
  bottom: 60px;
  right: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-floating);
}

.hud-instrument-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 12px;
  border-right: 1px solid var(--border-subtle);
}

.hud-instrument-cell:last-child {
  border-right: none;
}

.hud-inst-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hud-inst-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.hud-inst-unit {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
}

/* Floating mini artificial horizon in HUD */
.hud-mini-horizon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mini-horizon-disc {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8 50%, #b45309 50%);
  transition: transform 0.1s linear;
}

/* ──────────────────────────────────────────────
   9. PINNED INTERACTIVE ALTITUDE & TELEMETRY SCROLLYTELLING (#timelineFeature)
────────────────────────────────────────────── */
.timeline-scrolly-section {
  position: relative;
  height: 320vh;
  background: var(--color-bg);
  border-top: 1px solid var(--border-subtle);
  overflow: visible;
}

.timeline-sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  box-sizing: border-box;
  z-index: 10;
}

/* Scrollytelling Header in Viewport */
.timeline-scrolly-header {
  text-align: center;
  max-width: 860px;
  width: 100%;
  margin-bottom: 12px;
}

.timeline-scrolly-title {
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  color: var(--color-text-main);
  line-height: 1.2;
}

/* 4 Step Navigation Pills */
.timeline-step-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.t-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: var(--shadow-xs);
  user-select: none;
}

.t-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  color: var(--color-text-light);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 800;
  transition: all 0.25s ease;
}

.t-step-pill:hover {
  color: var(--brand-primary);
  border-color: rgba(29, 78, 216, 0.3);
  background: #ffffff;
  transform: translateY(-1px);
}

.t-step-pill.active {
  color: #ffffff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
  transform: scale(1.02);
}

.t-step-pill.active .t-step-num {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Active Step Explanatory Banner */
.timeline-step-banner {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  max-width: 1040px;
  width: 100%;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.step-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.step-banner-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.step-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseBeacon 1.6s infinite;
}

.step-banner-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #38bdf8;
  white-space: nowrap;
}

.step-banner-text {
  min-width: 0;
}

.step-banner-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-banner-desc {
  font-size: 0.77rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-banner-meter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  width: 120px;
}

.step-meter-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #64748b;
  font-weight: 700;
}

.step-meter-track {
  width: 100%;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(30, 41, 59, 0.8);
  overflow: hidden;
}

.step-meter-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 0.15s linear;
}

/* Cockpit Titanium & Obsidian Console Card */
.timeline-console-card {
  position: relative;
  background: rgba(8, 14, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Floating Spotlight Callout Pin */
.console-spotlight-callout {
  position: absolute;
  top: 10px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(2, 132, 199, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 15;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.35s ease;
}

.spotlight-callout-icon {
  color: #38bdf8;
  font-size: 0.8rem;
}

/* Spotlight State 0: Focus on Altitude Profile & Terrain */
.timeline-console-card.spotlight-step-0 {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(2, 132, 199, 0.15);
}

.timeline-console-card.spotlight-step-0 .console-stage-wrap {
  box-shadow: inset 0 0 35px rgba(2, 132, 199, 0.22);
}

.timeline-console-card.spotlight-step-0 #svgAltPolyline {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
  stroke: #38bdf8;
}

.timeline-console-card.spotlight-step-0 .console-header-strip,
.timeline-console-card.spotlight-step-0 .console-bottom-bar {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Spotlight State 1: Focus on Avionics Telemetry Badges */
.timeline-console-card.spotlight-step-1 {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 35px rgba(56, 189, 248, 0.25);
}

.timeline-console-card.spotlight-step-1 .console-header-strip {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.35);
  opacity: 1;
}

.timeline-console-card.spotlight-step-1 .console-badge {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
  transition: all 0.25s ease;
}

.timeline-console-card.spotlight-step-1 .console-stage-wrap,
.timeline-console-card.spotlight-step-1 .console-bottom-bar {
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

/* Spotlight State 2: Focus on Calipers & Flight Segments (Matching User Screenshot!) */
.timeline-console-card.spotlight-step-2 {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 35px rgba(220, 38, 38, 0.25);
}

.timeline-console-card.spotlight-step-2 .console-segments-bar {
  background: rgba(220, 38, 38, 0.08);
  border-bottom-color: rgba(220, 38, 38, 0.4);
}

.timeline-console-card.spotlight-step-2 .console-spotlight-callout {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.7);
  color: #fca5a5;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
}

.timeline-console-card.spotlight-step-2 .console-spotlight-callout .spotlight-callout-icon {
  color: #ef4444;
}

.timeline-console-card.spotlight-step-2 [data-seg-id="s2"] line {
  stroke-width: 2.2;
  filter: drop-shadow(0 0 8px #dc2626);
}

.timeline-console-card.spotlight-step-2 [data-seg-id="s2"] rect {
  filter: drop-shadow(0 0 10px #dc2626) !important;
  height: 5px !important;
}

.timeline-console-card.spotlight-step-2 [data-seg-id="s2"] polygon {
  filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.4));
}

.timeline-console-card.spotlight-step-2 .console-bottom-bar,
.timeline-console-card.spotlight-step-2 .console-header-strip {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Spotlight State 3: Focus on 1-Hz Scrubber & Playback Controls */
.timeline-console-card.spotlight-step-3 {
  border-color: rgba(29, 78, 216, 0.6);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 35px rgba(29, 78, 216, 0.25);
}

.timeline-console-card.spotlight-step-3 .console-bottom-bar {
  opacity: 1;
  background: rgba(8, 14, 26, 0.98);
  border-top-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 -4px 25px rgba(29, 78, 216, 0.35);
}

.timeline-console-card.spotlight-step-3 .console-play-btn {
  box-shadow: 0 0 18px rgba(29, 78, 216, 0.7);
  transform: scale(1.04);
}

.timeline-console-card.spotlight-step-3 #svgPlayheadLine {
  stroke: #38bdf8;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px #38bdf8);
}

.timeline-console-card.spotlight-step-3 #svgPlayheadCircle {
  r: 5.5;
  fill: #ffffff;
  stroke: #38bdf8;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px #38bdf8);
}

.timeline-console-card.spotlight-step-3 .console-spotlight-callout {
  background: rgba(29, 78, 216, 0.25);
  border-color: rgba(96, 165, 250, 0.6);
  color: #bfdbfe;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
}

.timeline-console-card.spotlight-step-3 .console-spotlight-callout .spotlight-callout-icon {
  color: #60a5fa;
}

.timeline-console-card.spotlight-step-3 .console-header-strip,
.timeline-console-card.spotlight-step-3 .console-segments-bar {
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

/* 1. Header Strip: Time & Badges */
.console-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.6);
  gap: 16px;
  flex-wrap: wrap;
}

.console-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.console-live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 10px #dc2626;
  flex-shrink: 0;
  animation: pulseBeacon 1.8s infinite;
}

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

.console-timestamp {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.console-time-span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.console-segment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #f87171;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.console-telemetry-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.console-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #e2e8f0;
  user-select: none;
}

.console-badge-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.console-badge-val {
  font-weight: 800;
  color: #ffffff;
}

.console-badge-val.text-sky {
  color: #38bdf8;
}

.console-badge-sub {
  font-size: 0.65rem;
  color: #94a3b8;
}

.console-badge-arrow {
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.82rem;
}

/* 2. Segment Quick-Jump Bar */
.console-segments-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.console-segments-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  white-space: nowrap;
}

.console-segment-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.seg-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
  transition: all 0.2s ease;
  cursor: pointer;
}

.seg-select-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
}

.seg-select-btn.active {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.8);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

.seg-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* 3. Main Stage & Altitude Curve */
.console-stage-wrap {
  position: relative;
  display: flex;
  height: 200px;
  padding: 12px 24px 28px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(30, 58, 138, 0.15) 0%, rgba(8, 14, 26, 0) 70%);
}

.console-y-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  text-align: right;
  user-select: none;
  height: 100%;
}

.console-svg-stage {
  position: relative;
  flex: 1;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

#consoleAltitudeSvg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Floating Hover Tooltip */
.console-hover-hud {
  position: absolute;
  top: -12px;
  transform: translate(-50%, -100%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}

.console-hover-hud.visible {
  display: flex;
}

.hover-seg-tag {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(220, 38, 38, 0.6);
  color: #fca5a5;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.68rem;
}

.hover-time {
  color: #ffffff;
  font-weight: 700;
}

.hover-msl {
  color: #38bdf8;
  font-weight: 700;
}

.hover-agl, .hover-speed {
  color: #cbd5e1;
}

.hover-vs {
  color: #38bdf8;
  font-weight: 700;
}

.hover-divider {
  color: #475569;
}

.console-x-time-ticks {
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
  pointer-events: none;
  user-select: none;
}

/* 4. Bottom Playback Controls & Status */
.console-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(5, 9, 19, 0.85);
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  gap: 16px;
  flex-wrap: wrap;
}

.console-playback-ctrls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.console-ctrl-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

.console-play-btn {
  width: auto;
  padding: 0 16px;
  gap: 6px;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
}

.console-play-btn:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.console-speed-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.8);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.speed-pill-btn {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-pill-btn:hover {
  color: #ffffff;
}

.speed-pill-btn.active {
  background: rgba(29, 78, 216, 0.35);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.console-status-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.console-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
}

.console-status-lbl {
  color: #64748b;
}

.console-status-val {
  color: #e2e8f0;
  font-weight: 700;
}

.console-status-val.text-sky {
  color: #38bdf8;
}

/* ──────────────────────────────────────────────
   10. INTERACTIVE 3D FLIGHT SIMULATOR (LIVE WIDGET / REAL EMBED)
────────────────────────────────────────────── */
.simulator-section {
  padding: var(--section-py) 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.sim-embed-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22);
  background: #0b1120;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.sim-embed-wrapper:hover {
  box-shadow: 0 28px 70px -10px rgba(15, 23, 42, 0.32);
}

.sim-embed-wrapper iframe {
  width: 100%;
  height: 650px;
  display: block;
  border: 1px solid #1a3558;
  border-radius: 16px;
}

.sim-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.sim-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-aircraft-badge {
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.sim-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  border: 1px solid var(--border-subtle);
  transition: all 0.22s ease;
}

.sim-tool-btn:hover {
  background: #ffffff;
  color: var(--color-text-main);
  border-color: var(--border-medium);
}

.sim-tool-btn.active {
  background: var(--color-text-main);
  color: #ffffff;
  border-color: var(--color-text-main);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.sim-stage {
  position: relative;
  width: 100%;
  height: 540px;
  background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 40%, #f8fafc 100%);
  overflow: hidden;
}

#interactiveFlightCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Artificial Horizon Floating Instrument */
.sim-horizon-gauge {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-text-main);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  pointer-events: none;
}

.horizon-disc {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #38bdf8 50%, #92400e 50%);
  transition: transform 0.1s linear;
}

.horizon-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 2px;
  background: #facc15;
  box-shadow: 0 0 3px #000;
}

.horizon-reticle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #facc15;
}

/* Maneuver Badges in Live Simulator */
.sim-maneuver-badges {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 270px;
}

.maneuver-badge-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
  border-left: 4px solid var(--brand-primary);
}

.maneuver-badge-card:hover, .maneuver-badge-card.active {
  transform: translateX(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-card);
}

.maneuver-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.maneuver-badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.maneuver-badge-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-weight: 700;
}

.maneuver-badge-note {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Altitude Scrub Timeline */
.sim-timeline-wrap {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 20px 28px;
}

.sim-playback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.sim-play-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-pause-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.2s ease;
}

.play-pause-btn:hover {
  transform: scale(1.05);
  background: #1e293b;
}

.speed-select-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  border: 1px solid var(--border-subtle);
}

.speed-select-btn.active {
  background: var(--color-text-main);
  color: #ffffff;
  border-color: var(--color-text-main);
}

.timeline-canvas-container {
  position: relative;
  width: 100%;
  height: 72px;
  background: #fafbfc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  cursor: pointer;
  overflow: hidden;
}

#altitudeProfileCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.timeline-scrub-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-coral);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.8);
  pointer-events: none;
  transform: translateX(-50%);
}

.timeline-scrub-cursor::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: var(--brand-coral);
  border-radius: 50%;
}

/* ──────────────────────────────────────────────
   11. BENTO GRID: PRECISION ARCHITECTURAL TILES
────────────────────────────────────────────── */
.features-section {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(15, 23, 42, 0.2);
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.bento-title {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.bento-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.bento-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.bento-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  font-weight: 500;
}

.bento-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   12. COMPARE FLIGHTS (SWISS MINIMALIST BOX)
────────────────────────────────────────────── */
.compare-section {
  padding: var(--section-py) 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.compare-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.compare-legend {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.compare-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.legend-line {
  width: 28px;
  height: 4px;
  border-radius: 2px;
}

.legend-line-blue { background: var(--brand-primary); }
.legend-line-amber { background: var(--brand-amber); }

/* ──────────────────────────────────────────────
   12b. SHARE & FLY-TOGETHER COLLABORATION SECTION
────────────────────────────────────────────── */
.share-section {
  padding: var(--section-py) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.share-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 50px;
}

.share-dialog-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.share-url-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 18px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.share-url-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--color-text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.share-copy-btn {
  background: var(--color-text-main);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.share-copy-btn:hover {
  background: var(--brand-primary);
  transform: scale(1.02);
}

.share-copy-btn.copied {
  background: var(--brand-emerald);
}

.share-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.share-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.share-toggle-info {
  display: flex;
  flex-direction: column;
}

.share-toggle-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.share-toggle-sub {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.share-toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--brand-primary);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.share-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.share-toggle-switch.off {
  background: #cbd5e1;
}

.share-toggle-switch.off::after {
  transform: translateX(-20px);
}

.share-social-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.share-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--color-bg-subtle);
  color: var(--color-text-main);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.share-pill-btn:hover {
  background: #ffffff;
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

/* Co-Watching Live Card */
.cowatch-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

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

.cowatch-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--brand-emerald);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.cowatch-avatars-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.cowatch-avatar-stack {
  display: flex;
  align-items: center;
}

.cowatch-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cowatch-avatar:first-child {
  margin-left: 0;
}

.avatar-yannic { background: #1d4ed8; }
.avatar-niko { background: #059669; }
.avatar-philipp { background: #d97706; }
.avatar-plus { background: #475569; font-size: 0.75rem; }

.cowatch-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-emerald);
  border: 2px solid #ffffff;
}

.cowatch-meta {
  display: flex;
  flex-direction: column;
}

.cowatch-users-count {
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-text-main);
}

.cowatch-users-sub {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.cowatch-preview-theater {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cowatch-theater-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.cowatch-theater-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.cowatch-theater-screen {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .share-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────
   13. MOBILE COCKPIT COMPANION
────────────────────────────────────────────── */
.mobile-section {
  padding: var(--section-py) 0;
  background: var(--color-bg);
}

.mobile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.mockup-phone {
  width: 290px;
  height: 580px;
  border: 12px solid #090d16;
  border-radius: 44px;
  background: #ffffff;
  margin: 0 auto;
  box-shadow: 0 30px 70px -12px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #090d16;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.mockup-screen {
  flex: 1;
  padding: 34px 18px 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

/* ──────────────────────────────────────────────
   14. FAQ ACCORDION
────────────────────────────────────────────── */
.faq-section {
  padding: var(--section-py) 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.faq-container {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(15, 23, 42, 0.2);
}

.faq-header {
  padding: 22px 28px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-main);
  background: transparent;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-spring), padding 0.3s ease;
  padding: 0 28px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.open .faq-body {
  max-height: 320px;
  padding: 0 28px 24px;
}

/* ──────────────────────────────────────────────
   15. CTA BANNER (Obsidian & Platinum Luxury)
────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-py) 0;
  background: #090d16;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.25) 0%, transparent 70%);
  filter: blur(60px);
}

.cta-box {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 1.18rem;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-white {
  background: #ffffff;
  color: #090d16;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-glass-dark {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-glass-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────
   16. FOOTER
────────────────────────────────────────────── */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-main);
  margin-bottom: 18px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.footer-nav-list a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.footer-holding-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-holding-badge img {
  height: 22px;
  width: auto;
}

/* ──────────────────────────────────────────────
   17. SCROLL REVEAL ENGINE CLASSES
────────────────────────────────────────────── */
.reveal-up, .reveal-blur-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring), filter 0.8s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal-up { transform: translateY(35px); }
.reveal-blur-up { transform: translateY(35px); filter: blur(10px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.93); }

.reveal-up.visible,
.reveal-blur-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

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

/* ──────────────────────────────────────────────
   18. MODAL DRAWER
────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.45);
  backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: 90%;
  max-width: 680px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-floating);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-spring);
}

.modal-dialog.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--border-medium);
  color: var(--color-text-main);
}

/* ──────────────────────────────────────────────
   19. RESPONSIVE QUERIES (FLUID, LUXURY ADAPTATION)
────────────────────────────────────────────── */

/* Tablet & Smaller Desktop Breakpoint: Streamlined Nav & Balanced Grids */
@media (max-width: 1080px) {
  .nav-links, .nav-cta-wrap {
    display: none !important;
  }
  .nav-mobile-toggle {
    display: flex !important;
  }
  .altitude-scroll-ruler {
    display: none !important;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .compare-box, .mobile-layout, .share-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .scrolly-milestone-card {
    left: 24px;
    bottom: 80px;
    max-width: 400px;
    padding: 22px 26px;
  }
  .scrolly-live-hud {
    right: 24px;
    bottom: 80px;
  }
}

/* Intermediate Tablet: Simulator & Compare fine-tuning */
@media (max-width: 900px) {
  .sim-header {
    padding: 14px 20px;
  }
  .sim-title-group {
    width: 100%;
    justify-content: space-between;
  }
  .sim-controls-group {
    width: 100%;
    justify-content: flex-start;
  }
  .sim-horizon-gauge {
    width: 82px;
    height: 82px;
    top: 14px;
    left: 14px;
  }
  .sim-maneuver-badges {
    position: static;
    margin: 12px 16px 0 16px;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: none;
    gap: 10px;
    padding-bottom: 6px;
  }
  .maneuver-badge-card {
    flex: 0 0 210px;
    padding: 10px 14px;
    border-left-width: 3px;
  }
}

/* Mobile Devices (Portrait Tablets & Phones) */
@media (max-width: 768px) {
  :root {
    --section-py: clamp(56px, 8vw, 80px);
  }

  html, body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-title {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    letter-spacing: -0.03em;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .hero {
    padding-top: calc(76px + 32px);
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: clamp(2rem, 6.8vw, 3rem);
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .hero-typewriter-container {
    display: inline-flex;
    margin-top: 6px;
    margin-left: 0;
    padding: 4px 14px;
  }

  .hero-typewriter {
    min-width: 130px;
    font-size: 0.9em;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 36px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 14px 18px;
    gap: 12px;
  }

  .hero-stat-item {
    gap: 10px;
  }

  .hero-stat-val {
    font-size: 1.1rem;
  }

  .hero-stat-icon {
    width: 34px;
    height: 34px;
    font-size: 0.76rem;
  }

  /* Kinetic Word-Scrub Statement */
  .kinetic-statement-section {
    padding: 50px 0;
  }

  .kinetic-headline {
    font-size: clamp(1.4rem, 4.4vw, 2.2rem);
    line-height: 1.35;
  }

  /* Scrollytelling */
  .scrolly-container {
    height: 260vh;
  }

  .scrolly-sticky-viewport {
    padding: 76px 14px 16px;
  }

  .scrolly-flight-tag {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .scrolly-flight-tag span:nth-child(3) {
    display: none;
  }

  .scrolly-progress-badge {
    font-size: 0.76rem;
    padding: 5px 10px;
  }

  .scrolly-milestone-card {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: none;
    padding: 16px 18px;
    border-radius: var(--radius-md);
  }

  .milestone-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .milestone-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .scrolly-live-hud {
    right: 12px;
    bottom: 180px;
    padding: 8px 12px;
    gap: 10px;
    border-radius: var(--radius-md);
  }

  .hud-instrument-cell {
    padding: 0 8px;
  }

  .hud-inst-val {
    font-size: 1.05rem;
  }

  .hud-inst-lbl {
    font-size: 0.62rem;
  }

  .hud-mini-horizon {
    width: 34px;
    height: 34px;
  }

  /* Scrollytelling Altitude Timeline & Console */
  .timeline-scrolly-section {
    height: 280vh;
  }

  .timeline-sticky-viewport {
    padding: 72px 12px 14px;
    justify-content: flex-start;
  }

  .timeline-scrolly-header {
    margin-bottom: 8px;
  }

  .timeline-scrolly-title {
    font-size: 1.25rem;
    margin: 4px 0 6px;
  }

  .timeline-step-pills {
    gap: 6px;
  }

  .t-step-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
    gap: 5px;
  }

  .t-step-num {
    width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }

  .timeline-step-banner {
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 10px;
  }

  .step-banner-desc {
    display: none;
  }

  .step-banner-meter {
    display: none;
  }

  .step-banner-title {
    font-size: 0.8rem;
  }

  .console-spotlight-callout {
    top: 6px;
    right: 10px;
    padding: 2px 8px;
    font-size: 0.65rem;
  }

  .console-header-strip {
    padding: 12px 16px;
    gap: 12px;
  }

  .console-header-left {
    width: 100%;
    justify-content: space-between;
  }

  .console-time-span {
    display: none;
  }

  .console-telemetry-row {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .console-badge {
    padding: 4px 8px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .console-segments-bar {
    padding: 8px 16px;
  }

  .console-stage-wrap {
    height: 160px;
    padding: 10px 14px 24px 8px;
  }

  .console-y-scale {
    font-size: 0.62rem;
    padding-right: 8px;
  }

  .console-bottom-bar {
    padding: 12px 16px;
    gap: 12px;
  }

  .console-playback-ctrls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .console-status-group {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  #consoleNewSegBtn {
    width: 100%;
    justify-content: center;
  }

  /* Simulator & Real App Embed */
  .sim-embed-wrapper iframe {
    height: 520px;
  }

  .sim-stage {
    height: 350px;
  }

  .sim-horizon-gauge {
    width: 72px;
    height: 72px;
    top: 12px;
    left: 12px;
  }

  #addCustomMarkerBtn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 4px;
  }

  .sim-timeline-wrap {
    padding: 14px 16px;
  }

  .sim-playback-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sim-play-btns {
    justify-content: space-between;
  }

  /* Compare Section */
  .compare-canvas-wrap {
    height: 260px;
  }

  .compare-legend {
    gap: 14px;
    margin-top: 18px;
  }

  /* Share Section */
  .share-grid {
    gap: 24px;
    margin-top: 30px;
  }

  .share-dialog-card, .cowatch-card {
    padding: 20px 18px;
    gap: 18px;
  }

  .share-url-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
  }

  .share-url-text {
    font-size: 0.82rem;
  }

  .share-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .share-toggle-row {
    gap: 10px;
  }

  .cowatch-theater-screen {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cowatch-avatars-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Mobile App Companion */
  .mockup-phone {
    width: 260px;
    height: 520px;
    border-width: 10px;
    border-radius: 36px;
  }

  /* FAQ */
  .faq-container {
    margin-top: 32px;
  }

  .faq-header {
    padding: 16px 18px;
    font-size: 0.98rem;
    gap: 12px;
  }

  .faq-body {
    padding: 0 18px;
    font-size: 0.92rem;
  }

  .faq-item.open .faq-body {
    padding: 0 18px 20px;
  }

  /* CTA Banner */
  .cta-title {
    font-size: clamp(1.9rem, 5.5vw, 2.6rem);
  }

  .cta-desc {
    font-size: 1.02rem;
    margin-bottom: 28px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 48px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }

  .footer-brand p {
    max-width: none;
    margin-top: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-top: 22px;
  }

  .footer-holding-badge {
    justify-content: center;
  }
}

/* Micro Mobile Breakpoint (iPhone SE, Small Android Phones) */
@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .scrolly-live-hud {
    display: none;
  }

  .modal-dialog {
    width: 95%;
    padding: 22px 16px;
  }

  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .sim-embed-wrapper iframe {
    height: 440px;
  }

  .sim-stage {
    height: 290px;
  }

  .sim-controls-group span {
    display: none;
  }

  .compare-canvas-wrap {
    height: 210px;
  }

  .mockup-phone {
    width: 230px;
    height: 460px;
    border-width: 8px;
    border-radius: 30px;
  }

  .mockup-notch {
    width: 90px;
    height: 18px;
  }
}
