/* ==========================================================
   splash.css — Modern, theme-aware, perfectly on-brand
   Uses tokens from base.css (accent, accent-2, text, text-dim)
   ========================================================== */

/* Overlay wrapper */
.splash-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

.splash-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.splash-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

/* ----------------------------------------------------------
   MAIN SPLASH WRAPPER
----------------------------------------------------------- */

.splash {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 26px;
  text-align: center;
  color: var(--text);
}

/* ----------------------------------------------------------
   LOGO + GLOW EFFECTS
----------------------------------------------------------- */

.logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

/* Crisp logo pop-in */
.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;

  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 55%, transparent));

  animation: pop-in .55s cubic-bezier(.25,.7,.4,1) both;
}

/* Dynamic blue + red glow field */
.glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;

  /* Balanced ambient glow */
  background:
    radial-gradient(circle,
      color-mix(in srgb, var(--accent) 35%, transparent) 0%,
      transparent 70%
    ),
    radial-gradient(circle,
      color-mix(in srgb, var(--accent-2) 30%, transparent) 0%,
      transparent 65%
    );

  opacity: .55;
  filter: blur(32px);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Soft depth bloom */
.bloom {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;

  box-shadow: inset 0 0 60px rgba(255,255,255,.06);
  filter: blur(8px);
  opacity: .45;
}

/* ----------------------------------------------------------
   TEXT
----------------------------------------------------------- */

.brand-text {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .35px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.tagline {
  margin: 0;
  font-size: .9rem;
  color: var(--text-dim);
  opacity: .95;
}

/* ----------------------------------------------------------
   LOADING DOTS
----------------------------------------------------------- */

.loader {
  display: inline-flex;
  gap: 8px;
  margin-top: 10px;
}

.loader .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
  transform: translateY(0);
  animation: bounce 1.25s infinite ease-in-out;
}

.loader .dot:nth-child(2) { animation-delay: .15s; }
.loader .dot:nth-child(3) { animation-delay: .30s; }

/* ----------------------------------------------------------
   FOOTER NOTE
----------------------------------------------------------- */

.footer-note {
  margin-top: 14px;
  font-size: .75rem;
  color: var(--text-dim);
}

.footer-note .glow {
  font-weight: 600;
  color: var(--accent);
  text-shadow:
    0 0 4px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 8px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ----------------------------------------------------------
   ANIMATIONS
----------------------------------------------------------- */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: .75;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes pop-in {
  0%   { transform: scale(.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
