/* ============================================
   ENTERPRISE ELITE SPLASH (SHARED)
   ============================================ */
.qrdar-splash-screen {
    position: fixed !important;
    inset: 0 !important;
    background: #050508 !important;
    z-index: 2147483647 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.qrdar-splash-screen.splash-exit {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    filter: blur(30px);
}

/* Background Atmosphere */
.splash-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.splash-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,103,51,0.05) 1px, transparent 0);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.splash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,103,51,0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(60px);
}

/* Container & Assembly */
.splash-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.splash-logo-box {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-svg-core {
    width: 100%;
    height: 100%;
    z-index: 2;
}

.splash-path-hex {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: splashDraw 2.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.splash-path-details {
    opacity: 0;
    animation: splashFadeIn 0.8s ease-out forwards 0.8s;
}

.splash-p { transform-origin: bottom; transform: scaleY(0); animation: splashGrow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.p-1 { animation-delay: 1.1s; }
.p-2 { animation-delay: 1.3s; }

.splash-c { opacity: 0; transform: scale(0.9); animation: splashSnap 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.splash-c:nth-child(3) { animation-delay: 1.5s; }
.splash-c:nth-child(4) { animation-delay: 1.7s; }
.splash-c:nth-child(5) { animation-delay: 1.9s; }

.splash-tail-elite { stroke-dasharray: 60; stroke-dashoffset: 60; animation: splashDraw 0.6s ease-out forwards 2.1s; }

@keyframes splashDraw { to { stroke-dashoffset: 0; } }
@keyframes splashFadeIn { to { opacity: 1; } }
@keyframes splashGrow { to { transform: scaleY(1); } }
@keyframes splashSnap { to { opacity: 1; transform: scale(1); } }

.splash-aura-rings .ring {
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(255,103,51,0.15);
    border-radius: 50%;
    animation: splashPulse 3s infinite ease-out;
}
.ring:nth-child(2) { animation-delay: 1.5s; }

@keyframes splashPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Branding Reveal */
.splash-branding {
    text-align: center;
}

.splash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.splash-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: letterReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.letter:nth-child(1) { animation-delay: 0.8s; }
.letter:nth-child(2) { animation-delay: 0.9s; }
.letter:nth-child(3) { animation-delay: 1.0s; }
.letter:nth-child(4) { animation-delay: 1.1s; }
.letter:nth-child(5) { animation-delay: 1.2s; }

.brand-dot {
    color: #FF6B35;
    opacity: 0;
    animation: dotPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.4s;
}

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

@keyframes dotPop {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

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

.splash-loading-interface {
    margin-top: 30px;
}

.loader-line {
    width: 160px;
    height: 1.5px;
    background: rgba(255,255,255,0.05);
    border-radius: 1px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: #FF6733;
    box-shadow: 0 0 15px rgba(255,103,51,0.5);
    animation: splashFill 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashFill { to { width: 100%; } }

/* BODY REVEAL & STABILITY */
body {
    scrollbar-gutter: stable; /* Pre-allocates space for scrollbar to prevent layout shift */
}

body.splash-revealed {
    animation: pageDiscovery 0.8s ease-out forwards;
}

@keyframes pageDiscovery {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
