/* ── Splash screen ──────────────────────────────────────────────── */
body {
  margin: 0;
  background: #fafafa;
  overflow: hidden;
}

#splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: #fafafa;
  transition: opacity .45s ease, visibility .45s ease;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Logo container with glow */
.splash-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  animation: logo-entrance .8s cubic-bezier(.16, 1, .3, 1) both;
}

.splash-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 83, 154, .18) 0%, transparent 70%);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.splash-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  position: relative;
  filter: drop-shadow(0 4px 20px rgba(96, 83, 154, .25));
}

/* Title */
.splash-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #3d3363;
  margin: 0 0 6px;
  animation: text-up .7s cubic-bezier(.16, 1, .3, 1) .15s both;
}

/* Subtitle */
.splash-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(96, 83, 154, .65);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 48px;
  animation: text-up .7s cubic-bezier(.16, 1, .3, 1) .25s both;
}

/* Progress bar */
.splash-bar-track {
  width: 220px;
  height: 3px;
  border-radius: 3px;
  background: rgba(96, 83, 154, .10);
  overflow: hidden;
  animation: text-up .7s cubic-bezier(.16, 1, .3, 1) .35s both;
}

.splash-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #60539a, #9485c4);
  transition: width .6s cubic-bezier(.16, 1, .3, 1);
}

/* Status text */
.splash-status {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(96, 83, 154, .55);
  margin: 12px 0 0;
  animation: text-up .7s cubic-bezier(.16, 1, .3, 1) .45s both;
  transition: opacity .3s ease;
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes logo-entrance {
  from {
    opacity: 0;
    transform: scale(.7) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes text-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: .6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

