/* ==========================================================================
   SHUNYANT POWER LLP - Brand Splash Screen
   Modular component: To disable/remove, simply delete or unlink splash.css and splash.js
   ========================================================================== */

#shunyant-splash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999;
  background: radial-gradient(circle at 50% 45%, #0d263d 0%, #061524 60%, #030b14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.45s ease;
}

#shunyant-splash.splash-hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

/* Background Ambient Pulse Glow */
.shunyant-splash-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, rgba(255, 107, 0, 0) 70%);
  filter: blur(50px);
  animation: splashAmbientGlow 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes splashAmbientGlow {
  0% { transform: scale(0.85); opacity: 0.35; }
  100% { transform: scale(1.15); opacity: 0.8; }
}

/* Splash Main Content Box */
.shunyant-splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* Logo & Animation Stage */
.shunyant-splash-stage {
  position: relative;
  width: 320px;
  height: 160px;
  max-width: 85vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vector SVG for 0 (Zero) and ∞ (Infinity) */
.shunyant-splash-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(255, 107, 0, 0.65));
}

/* Zero (0) Path Animation */
.splash-draw-zero {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: splashDrawZero 1.1s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}

@keyframes splashDrawZero {
  0% { stroke-dashoffset: 450; opacity: 0; }
  15% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Infinity (∞) Path Animation */
.splash-draw-infinity {
  stroke-dasharray: 750;
  stroke-dashoffset: 750;
  animation: splashDrawInfinity 1.35s cubic-bezier(0.25, 1, 0.5, 1) 0.25s forwards;
}

@keyframes splashDrawInfinity {
  0% { stroke-dashoffset: 750; opacity: 0; }
  15% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Full Brand Logo Reveal */
.shunyant-splash-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  height: 105px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(255, 107, 0, 0.6));
  animation: splashLogoBloom 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

@keyframes splashLogoBloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.2));
  }
  65% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
    filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.85));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.5));
  }
}

/* Brand Typography */
.shunyant-splash-brand {
  margin-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  animation: splashTextFade 0.6s ease 0.65s forwards;
}

.shunyant-splash-title {
  font-family: 'Outfit', 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 15%, #FFA542 65%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shunyant-splash-subtitle {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  margin-bottom: 0;
}

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

/* Electric Loader Bar */
.shunyant-splash-bar {
  margin-top: 32px;
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.shunyant-splash-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF6B00, #FFB224);
  border-radius: 99px;
  box-shadow: 0 0 10px #FF6B00;
  animation: splashBarFill 1.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashBarFill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* Skip Button / Hint */
.shunyant-splash-skip {
  position: absolute;
  bottom: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.shunyant-splash-skip:hover {
  color: #fff;
  background: rgba(255, 107, 0, 0.2);
  border-color: rgba(255, 107, 0, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .shunyant-splash-stage {
    width: 260px;
    height: 130px;
  }
  .shunyant-splash-logo-img {
    height: 85px;
  }
  .shunyant-splash-title {
    font-size: 1.45rem;
    letter-spacing: 0.12em;
  }
  .shunyant-splash-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
  }
  .shunyant-splash-bar {
    width: 110px;
    margin-top: 24px;
  }
}
