.app-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #f8fafc 0%, #eef3f9 45%, #f5f7fa 100%);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.app-splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(360px, 92vw);
  padding: 24px;
  text-align: center;
}

.app-splash__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000;
}

.app-splash__brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #04396c 0%, #0c5aa6 50%, #408ad2 100%);
  box-shadow: 0 4px 14px rgba(12, 90, 166, 0.25);
}

.app-splash__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 90vw);
  min-height: 140px;
  margin-bottom: 24px;
}

.app-splash__glow {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: min(280px, 75vw);
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(64, 138, 210, 0.22) 0%,
    rgba(12, 90, 166, 0.06) 55%,
    transparent 72%
  );
  pointer-events: none;
}

.app-splash__car-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(320px, 88vw);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  animation: splashCarLogoFloat 4.5s ease-in-out infinite;
}

@keyframes splashCarLogoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.app-splash__title {
  margin: 0 0 8px;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04396c;
}

.app-splash__status {
  margin: 0 0 20px;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 15px;
  color: #26527c;
  min-height: 1.4em;
}

.app-splash__progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e3e9ef;
  overflow: hidden;
}

.app-splash__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #04396c 0%, #0c5aa6 50%, #408ad2 100%);
  transition: width 0.35s ease;
}

.app-splash__progress-bar--indeterminate {
  width: 40% !important;
  animation: splashProgressIndeterminate 1.4s ease-in-out infinite;
}

@keyframes splashProgressIndeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash__car-logo {
    animation: none;
  }

  .app-splash__progress-bar--indeterminate {
    animation: none;
    width: 65% !important;
  }
}
