/* ===== SPLASH SCREEN - Plane over Australia ===== */
body.splash-active {
  overflow: hidden;
  width: 100%;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 50%, #F0F5FF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash.splash-fading {
  transform: translateY(-100%);
}

/* Logo */
.splash-logo {
  height: 44px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.1s forwards;
}

/* Scene container - larger */
.splash-scene {
  width: 640px;
  height: 500px;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.2s forwards;
}

.splash-map {
  width: 100%;
  height: 100%;
}

/* Australia fill - subtle fade in */
.aus-fill {
  opacity: 0;
  animation: fadeIn 0.6s ease 0.3s forwards;
}

/* Dashed flight trail draws in */
.flight-trail {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawTrail 1.8s ease-in-out 0.4s forwards;
}

/* Plane moves along the flight path */
.plane-group {
  offset-path: path('M40,60 Q200,10 380,80 Q500,140 555,180');
  offset-distance: 0%;
  offset-rotate: auto;
  animation: flyPlane 2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.4s forwards;
}

/* City dots pop in after plane arrives */
.city-dot-1 { animation: dotAppear 0.3s ease 2.2s forwards; }
.city-dot-2 { animation: dotAppear 0.3s ease 2.4s forwards; }
.city-dot-3 { animation: dotAppear 0.3s ease 2.6s forwards; }
.city-dot-4 { animation: dotAppear 0.3s ease 2.8s forwards; }

/* City labels fade in */
.city-label-1 { animation: fadeIn 0.3s ease 2.3s forwards; }
.city-label-2 { animation: fadeIn 0.3s ease 2.5s forwards; }
.city-label-3 { animation: fadeIn 0.3s ease 2.7s forwards; }
.city-label-4 { animation: fadeIn 0.3s ease 2.9s forwards; }

/* Landing pulse ring */
.landing-pulse {
  animation: landingRing 0.8s ease 2.2s forwards;
}

/* Tagline */
.splash-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 16px;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.5s forwards;
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes drawTrail {
  to { stroke-dashoffset: 0; }
}
@keyframes flyPlane {
  0%   { offset-distance: 0%; opacity: 1; }
  90%  { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes dotAppear {
  0%   { opacity: 0; r: 0; }
  60%  { opacity: 1; r: 8; }
  100% { opacity: 1; r: 6; }
}
@keyframes landingRing {
  0%   { opacity: 0.8; r: 6; }
  100% { opacity: 0; r: 24; }
}

/* Responsive */
@media (max-width: 600px) {
  .splash-scene {
    width: 95vw;
    height: 80vw;
    max-height: 420px;
  }
  .splash-logo {
    height: 36px;
  }
}
