/* Modern splash screen for demo loading */

.splash-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.splash-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(79, 109, 245, 0.16), transparent 34%),
    radial-gradient(circle at 94% 6%, rgba(14, 165, 233, 0.12), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(79, 109, 245, 0.1), transparent 45%),
    linear-gradient(180deg, #e8eef9 0%, #dde5f3 50%, #d4dced 100%);
  background-attachment: fixed;
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 320px;
  animation: splash-fade-in 0.4s ease-out;
}

.splash-logo {
  margin-bottom: 1.5rem;
}

.splash-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4f6df5 0%, #2563eb 100%);
  border-radius: 16px;
  font-size: 28px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 32px rgba(79, 109, 245, 0.3);
  animation: splash-bounce 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.splash-text {
  margin-bottom: 2rem;
}

.splash-text h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.5px;
}

.splash-text p {
  margin: 0.5rem 0 0 0;
  font-size: 14px;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.splash-progress {
  margin-top: 2rem;
}

.splash-progress-bar {
  height: 4px;
  background: rgba(79, 109, 245, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.splash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f6df5 0%, #2563eb 100%);
  width: 20%;
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 12px rgba(79, 109, 245, 0.4);
  position: relative;
}

.splash-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: splash-shimmer 2s infinite;
}

.splash-status {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0.3px;
}

/* Animations */

@keyframes splash-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splash-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes splash-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Exit animation */

.splash-container.splash-exit {
  animation: splash-fade-out 0.3s ease-out forwards;
}

@keyframes splash-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
