/* CostePro Splash Screen - Ultra Premium Experience (GPU-accelerated) */
#inline-splash.cp-splash-exit {
  animation: splashExit 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
}
#inline-splash.cp-splash-exit .splash-logo-wrapper {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale3d(0.95, 0.95, 1);
}
@keyframes splashExit {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  40% { opacity: 0.7; transform: scale(1.005); filter: blur(1px); }
  70% { opacity: 0.3; transform: scale(1.01); filter: blur(2px); }
  100% { opacity: 0; transform: scale(1.015); filter: blur(3px); visibility: hidden; }
}

.splash-gpu-root {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  z-index: 9999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

.splash-bg-layer {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(91, 196, 173, 0.15), transparent 60%);
  animation: auroraMove 15s infinite linear;
  opacity: 0.6;
  will-change: transform;
  transform: translateZ(0);
}

.splash-bg-layer-2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(30, 41, 59, 0.5), transparent 50%);
}

.splash-particles {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(#5bc4ad 1px, transparent 1px);
  background-size: 40px 40px;
  animation: particleFloat 20s linear infinite;
  will-change: background-position;
  transform: translateZ(0);
}

.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(0);
}

.splash-logo-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 32px;
  will-change: transform;
  transform: translateZ(0);
}

.splash-logo-inner {
  width: 100%;
  height: 100%;
  position: relative;
  animation: logoEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.char {
  font-size: 32px;
  font-weight: 700;
  color: white;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  display: inline-block;
  animation: charEnter 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.2s + (var(--i) * 0.05s));
  letter-spacing: -0.02em;
  will-change: transform, opacity;
}

.brand-accent { color: #5bc4ad; }

@keyframes charEnter { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes logoEntrance {
  0% { opacity: 0; transform: scale3d(0.5, 0.5, 1) rotate(-10deg); }
  100% { opacity: 1; transform: scale3d(1, 1, 1) rotate(0); }
}
@keyframes shimmerMove {
  0% { transform: translate3d(-100%, -100%, 0) rotate(45deg); }
  100% { transform: translate3d(200%, 200%, 0) rotate(45deg); }
}
@keyframes auroraMove {
  0% { transform: rotate(0deg) scale3d(1, 1, 1); }
  50% { transform: rotate(180deg) scale3d(1.1, 1.1, 1); }
  100% { transform: rotate(360deg) scale3d(1, 1, 1); }
}
@keyframes particleFloat {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes loaderProgress {
  0% { transform: translateZ(0) scaleX(0); }
  50% { transform: translateZ(0) scaleX(0.7); }
  100% { transform: translateZ(0) scaleX(0); transform-origin: right; }
}
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 480px) {
  .char { font-size: 28px; }
  .splash-logo-wrapper { width: 72px; height: 72px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-bg-layer, .splash-particles, .splash-shimmer { animation: none !important; }
  .char, .splash-logo-inner { animation-duration: 0.01s !important; transition: none !important; }
}
html.splash-desktop-mode .splash-logo-inner,
html.splash-desktop-mode .char,
html.splash-desktop-mode .splash-tagline,
html.splash-desktop-mode .splash-loader,
html.splash-desktop-mode .splash-loader-bar { animation: none !important; opacity: 0; }
