/* 
 * Le Saphyr - Custom CSS Design System & Immersive Cockpit Styles
 * Root variables based on DESIGN.md
 */

:root {
  --color-surface: #f3faff;
  --color-surface-dim: #c7dde9;
  --color-surface-bright: #f3faff;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #e6f6ff;
  --color-surface-container: #dbf1fe;
  --color-surface-container-high: #d5ecf8;
  --color-surface-container-highest: #cfe6f2;
  --color-on-surface: #071e27;
  --color-on-surface-variant: #454652;
  --color-inverse-surface: #1e333c;
  --color-inverse-on-surface: #dff4ff;
  --color-outline: #767683;
  --color-outline-variant: #c6c5d4;
  --color-surface-tint: #4c56af;
  --color-primary: #000666;
  --color-on-primary: #ffffff;
  --color-primary-container: #1a237e;
  --color-on-primary-container: #8690ee;
  --color-inverse-primary: #bdc2ff;
  --color-secondary: #b6171e;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #da3433;
  --color-on-secondary-container: #fffbff;
  --color-tertiary: #251900;
  --color-on-tertiary: #ffffff;
  --color-tertiary-container: #3f2d00;
  --color-on-tertiary-container: #c19000;
  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;
  
  --color-warning-gold: #FBC02D;
  
  /* Custom Font Families */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing & Borders */
  --rounded-sm: 0.125rem;
  --rounded-default: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --rounded-full: 9999px;
  
  --spacing-unit: 8px;
}

/* ===========================
   BASE RESET & TYPOGRAPHY
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Base Typo Classes matching Design System */
.font-display-lg {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.02em;
}

.font-headline-lg {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.font-headline-md {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.font-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.font-body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.font-label-md {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.05em;
}

.font-caption {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

/* ===========================
   SCROLL REVEAL ANIMATIONS
   =========================== */

/* Elements hidden before GSAP reveals them */
.gsap-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
}

.gsap-reveal-right {
  opacity: 0;
  transform: translateX(50px);
}

.gsap-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ===========================
   HERO SECTION ENHANCEMENTS
   =========================== */

/* Hero Background Slideshow */
.slideshow-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity;
}

.slideshow-image.active {
  opacity: 0.4;
}

/* Floating particles canvas */
#hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Animated road perspective line at bottom of hero */
.hero-road-perspective {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #000a14);
  overflow: hidden;
}

.hero-road-perspective::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to top, rgba(251, 192, 45, 0.8), transparent);
  box-shadow: 0 0 20px rgba(251, 192, 45, 0.3);
}

/* Stats counter section */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-warning-gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ===========================
   CRISP DIRECTIONAL SHADOWS
   =========================== */

/* Crisp Directional Shadows mimicking Yaoundé Midday Sun */
.crisp-shadow {
  box-shadow: 4px 4px 0px 0px var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.crisp-shadow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px 0px var(--color-secondary);
  border-color: var(--color-secondary);
}

.crisp-shadow-secondary {
  box-shadow: 4px 4px 0px 0px var(--color-secondary);
  border: 1px solid var(--color-secondary);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.crisp-shadow-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px 0px var(--color-primary);
  border-color: var(--color-primary);
}

/* ===========================
   HAZARD & SAFETY PATTERNS
   =========================== */

/* Road safety themed hazard shears (45 deg lines) */
.hazard-border {
  background: repeating-linear-gradient(
    -45deg,
    var(--color-warning-gold),
    var(--color-warning-gold) 10px,
    #251900 10px,
    #251900 20px
  );
}

/* ===========================
   GLASSMORPHISM COCKPIT
   =========================== */

/* Glassmorphism dashboard cards */
.glass-cockpit {
  background: rgba(7, 30, 39, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), 0 -1px 0 rgba(255,255,255,0.05);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

/* Engine start button pulse when on */
#engine-start-btn.active {
  animation: enginePulse 2s ease-in-out infinite;
}

@keyframes enginePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 23, 30, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(182, 23, 30, 0); }
}

/* ===========================
   SPEEDOMETER DIAL
   =========================== */

/* Dashboard Dial Styling */
.dial-container {
  position: relative;
  width: 100px;
  height: 50px;
  overflow: hidden;
}

.dial-bg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-secondary);
  border-right-color: var(--color-secondary);
  transform: rotate(-45deg);
}

.dial-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 45px;
  background: linear-gradient(to top, var(--color-warning-gold), rgba(251,192,45,0.4));
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: var(--rounded-full);
  box-shadow: 0 0 8px rgba(251,192,45,0.5);
}

/* ===========================
   ROAD SIMULATION
   =========================== */

/* Road Simulation Grid */
.road-stripes {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.9) 50%, transparent 50%);
  background-size: 80px 6px; /* Dash width 40px, gap 40px */
  animation: roadMove 0.8s linear infinite;
  animation-play-state: paused;
}

.road-stripes.running {
  animation-play-state: running;
}

@keyframes roadMove {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 80px; /* Move dashes to the right to simulate left-facing forward motion */
  }
}

.road-curb-pattern {
  background: repeating-linear-gradient(
    90deg,
    #e4e4e7 0px,
    #e4e4e7 40px,
    #71717a 40px,
    #71717a 80px
  );
}

/* Car vehicle smooth transform */
#car-vehicle {
  transition: filter 0.3s ease;
  will-change: transform;
}

/* ===========================
   TRAFFIC LIGHTS
   =========================== */

/* Traffic Light Styles */
.traffic-light-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #1a2a2e 0%, #0d1b1e 100%);
  border: 3px solid #111;
  padding: 8px 6px;
  border-radius: var(--rounded-xl);
  width: 42px;
  gap: 6px;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.light-bulb {
  width: 24px;
  height: 24px;
  border-radius: var(--rounded-full);
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
  transition: all 0.25s ease-in-out;
  position: relative;
}

.light-bulb.red.active {
  background-color: #ff3b30;
  box-shadow: 0 0 20px #ff3b30, 0 0 40px rgba(255,59,48,0.3), inset 0 2px 3px rgba(255,255,255,0.35);
}

.light-bulb.orange.active {
  background-color: var(--color-warning-gold);
  box-shadow: 0 0 20px var(--color-warning-gold), 0 0 40px rgba(251,192,45,0.3), inset 0 2px 3px rgba(255,255,255,0.35);
}

.light-bulb.green.active {
  background-color: #34c759;
  box-shadow: 0 0 20px #34c759, 0 0 40px rgba(52,199,89,0.3), inset 0 2px 3px rgba(255,255,255,0.35);
}

/* ===========================
   ROAD SIGNS
   =========================== */

/* Road Signs */
.road-sign-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.road-sign-stop {
  background-color: var(--color-secondary);
  color: #fff;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  border-radius: 0;
  width: 60px;
  height: 60px;
  font-family: var(--font-display);
}

.road-sign-danger {
  width: 0;
  height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 56px solid var(--color-secondary);
  position: relative;
}
.road-sign-danger-inner {
  position: absolute;
  top: 10px;
  left: -24px;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid #fff;
}
.road-sign-danger-content {
  position: absolute;
  top: 24px;
  left: -4px;
  color: #000;
  font-weight: 900;
}

/* ===========================
   COCKPIT BUTTONS
   =========================== */

/* Custom interactive dashboard buttons */
.cockpit-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.cockpit-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cockpit-btn.active {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 12px rgba(182, 23, 30, 0.5);
}

/* ===========================
   ENGINE LOADER & STARTUP
   =========================== */

/* Engine startup loader animation */
#engine-loader {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

#engine-loader .material-symbols-outlined {
  animation: gasPumpPulse 1s ease-in-out infinite;
}

@keyframes gasPumpPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* ===========================
   VEHICLE RUNNING ANIMATION
   =========================== */

/* Car engine running state - subtle vibration effect */
#car-vehicle.engine-running {
  animation: engineVibration 0.1s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(251, 192, 45, 0.4));
}

@keyframes engineVibration {
  0%, 100% {
    transform: translateY(0px) scaleX(1);
  }
  25% {
    transform: translateY(-0.5px) scaleX(1.001);
  }
  50% {
    transform: translateY(0.5px) scaleX(0.999);
  }
  75% {
    transform: translateY(-0.25px) scaleX(1.0005);
  }
}

/* Car movement states */
#car-vehicle {
  transition: opacity 0.3s ease;
}

#car-vehicle:not(.engine-running) {
  opacity: 0.85;
  filter: grayscale(0.15);
}

/* ===========================
   TESTIMONIALS MARQUEE
   =========================== */

/* Testimonials Marquee Styling */
.marquee-container {
  overflow: hidden;
}

.marquee-content {
  animation: marqueeLoop 35s linear infinite;
  display: flex;
  gap: 1.5rem;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marqueeLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 6, 102, 0.08);
}

/* ===========================
   SERVICE CARDS HOVER
   =========================== */

.service-card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.service-card-hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-warning-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card-hover:hover::after {
  transform: scaleX(1);
}

.service-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 6, 102, 0.12);
}

/* ===========================
   FORMATION STEPS
   =========================== */

.step-card {
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.08;
  font-size: 6rem;
  line-height: 1;
  position: absolute;
  top: -10px;
  right: 12px;
}

/* ===========================
   INTERACTIVE GLOW EFFECTS
   =========================== */

/* Layout animations */
.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(182, 23, 30, 0.25);
}

.glow-primary-hover:hover {
  box-shadow: 0 0 20px rgba(0, 6, 102, 0.2);
}

/* Button animated underline */
.btn-underline {
  position: relative;
}

.btn-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-warning-gold);
  transition: width 0.3s ease;
}

.btn-underline:hover::after {
  width: 100%;
}

/* ===========================
   INDICATOR ANIMATIONS
   =========================== */

/* Custom indicator animations */
.indicator-blink {
  animation: blinker 0.6s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0.1;
  }
}

/* ===========================
   CUSTOM SCROLLBAR
   =========================== */

/* Custom CSS Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--rounded-md);
  border: 2px solid var(--color-surface);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* ===========================
   LICENSE CARD
   =========================== */

/* Interactive License Preview Card */
.license-card-preview {
  background: linear-gradient(135deg, #1e333c 0%, #071e27 100%);
  border: 2px solid var(--color-warning-gold);
  border-radius: var(--rounded-xl);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(251,192,45,0.15);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.license-card-preview::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251,192,45,0.08) 0%, transparent 70%);
}

.license-card-header {
  border-bottom: 1px solid rgba(251, 192, 45, 0.3);
}

/* ===========================
   CONFETTI
   =========================== */

/* Confetti animation */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  animation: confettiFall 2.5s ease-out forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-30px) rotate(0deg) scale(1);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(350px) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* ===========================
   SECTION DIVIDERS
   =========================== */

.section-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-warning-gold), var(--color-secondary), transparent);
  opacity: 0.3;
}

/* ===========================
   HERO STATS BAR
   =========================== */

.stats-strip {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--color-warning-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   SECTION HEADER UNDERLINE
   =========================== */

.section-title-underline {
  position: relative;
  display: inline-block;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-warning-gold));
  border-radius: var(--rounded-full);
}

/* Center variant */
.section-title-underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===========================
   QUIZ CARD ENHANCEMENTS
   =========================== */

#quiz-card {
  transition: box-shadow 0.3s ease;
}

#quiz-card:hover {
  box-shadow: 0 20px 60px rgba(0,6,102,0.1);
}

/* ===========================
   CENTRE CARDS
   =========================== */

.centre-card {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.centre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.centre-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.2) !important;
}

/* ===========================
   INSCRIPTION FORM
   =========================== */

.form-field-focus {
  position: relative;
}

.form-field-focus input:focus,
.form-field-focus select:focus,
.form-field-focus textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(182, 23, 30, 0.15);
}

/* ===========================
   PAGE TRANSITION
   =========================== */

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 9999;
  pointer-events: none;
  transform-origin: bottom;
}

/* ===========================
   PHOTOTHEQUE
   =========================== */

.photo-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--rounded-md);
  cursor: zoom-in;
}

.photo-grid-item img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid-item:hover img {
  transform: scale(1.08);
}

.photo-grid-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,6,102,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.photo-grid-item:hover .overlay {
  opacity: 1;
}

/* ===========================
   MOBILE RESPONSIVE TWEAKS
   =========================== */

@media (max-width: 768px) {
  body {
    padding-top: 4.75rem;
  }

  #main-nav {
    height: 4.75rem;
  }

  #nav-inner {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    gap: 0.5rem;
  }

  #brand-link {
    gap: 0.75rem;
    max-width: calc(100% - 4rem);
  }

  #brand-link > div:first-child {
    width: 2.9rem;
    height: 2.9rem;
  }

  #brand-text span:first-child {
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
  }

  #brand-text span:last-child {
    font-size: 0.46rem;
    letter-spacing: 0.24em;
    white-space: nowrap;
  }

  #mobile-menu-btn {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
  }

  #mobile-menu {
    top: 4.75rem;
    max-height: calc(100vh - 4.75rem);
    overflow-y: auto;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  #hero-content {
    padding-top: 5.5rem;
  }

  #hero-badge {
    max-width: 100%;
    padding-inline: 1rem;
    font-size: 0.68rem;
    line-height: 1.4;
    white-space: normal;
    justify-content: center;
  }

  #hero-title {
    font-size: clamp(2.6rem, 9vw, 4.1rem);
    line-height: 0.98;
  }

  #hero-subtitle {
    max-width: 30rem;
  }

  .glass-cockpit {
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }
  
  .dial-container {
    display: none;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }

  #interactive-cockpit {
    gap: 0.5rem;
  }

  #interactive-cockpit > div:first-child {
    gap: 0.75rem;
    align-items: center;
  }

  #interactive-cockpit > div:last-child {
    width: 100%;
    gap: 0.75rem;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  #engine-start-btn {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
  }

  #engine-status-text {
    font-size: 0.65rem;
  }

  #car-vehicle {
    width: clamp(126px, 38vw, 168px);
    right: -2%;
    bottom: 0.9rem;
  }

  .traffic-light-container {
    transform: scale(0.88);
    transform-origin: top center;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 4.4rem;
  }

  #main-nav {
    height: 4.4rem;
  }

  #nav-inner {
    padding-left: max(0.8rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.8rem, env(safe-area-inset-right, 0px));
  }

  #brand-link {
    gap: 0.6rem;
    max-width: calc(100% - 3.4rem);
  }

  #brand-link > div:first-child {
    width: 2.55rem;
    height: 2.55rem;
  }

  #brand-text span:first-child {
    font-size: 1.15rem;
  }

  #brand-text span:last-child {
    font-size: 0.42rem;
    letter-spacing: 0.18em;
  }

  #mobile-menu-btn {
    width: 2.55rem;
    height: 2.55rem;
    margin-left: 0.35rem;
    padding: 0;
  }

  #mobile-menu-btn #menu-icon {
    font-size: 1.85rem;
  }

  #mobile-menu {
    top: 4.4rem;
    padding-inline: 1rem;
  }

  #hero-content {
    padding-top: 5rem;
  }

  #hero-badge {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  #hero-title {
    font-size: clamp(2.25rem, 10.5vw, 3.2rem);
  }

  #interactive-cockpit > div:first-child {
    flex-wrap: nowrap;
  }

  #interactive-cockpit > div:first-child .ml-4 {
    margin-left: auto;
  }

  #interactive-cockpit > div:last-child {
    gap: 0.5rem;
  }

  #speed-value {
    font-size: 2rem;
  }

  #car-vehicle {
    width: clamp(118px, 42vw, 152px);
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #engine-start-btn.active,
  .road-stripes {
    animation: none !important;
  }

  #car-vehicle,
  .dial-needle,
  .light-bulb {
    transition: none !important;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
  .glass-cockpit,
  #main-nav,
  #mobile-menu {
    display: none !important;
  }
}
