/* Premium SaaS Post-Login Splash Animation */
.premium-splash {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: #0a0f1a; /* Escuro moderno */
    background-image: radial-gradient(circle at center, #111a2e 0%, #0a0f1a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

/* Partículas no fundo */
.splash-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px),
        radial-gradient(rgba(74, 222, 128, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.6;
    animation: splashDrift 20s linear infinite;
    pointer-events: none;
}

@keyframes splashDrift {
    0% { transform: translateY(0) }
    100% { transform: translateY(-40px) }
}

/* Textos da animação */
.splash-word {
    position: absolute;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.glow-blue {
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(37, 99, 235, 0.4);
}

.glow-green {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.6), 0 0 50px rgba(74, 222, 128, 0.4);
    font-size: 4rem; /* Um pouco maior pra destacar */
}

/* Timings da sequência */
/* Atribua: 0.5s ao 1.5s */
.word-1 {
    animation: popInOut 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* Escale: 1.6s ao 2.6s */
.word-2 {
    animation: popInOut 1s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

/* Venda mais: 2.7s ao 3.9s */
.word-3 {
    animation: popInOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
}

@keyframes popInOut {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(4px); }
    20% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
    80% { opacity: 1; transform: scale(1.05) translateY(0); filter: blur(0px); }
    100% { opacity: 0; transform: scale(1.1) translateY(-20px); filter: blur(4px); }
}

/* Logo Final Adlytics Pro */
.splash-logo {
    position: absolute;
    width: 800px;
    opacity: 0;
    transform: scale(0.9);
    filter: brightness(0.5);
    mix-blend-mode: screen;
    animation: logoReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 4.0s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.splash-logo img,
.splash-logo svg {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

/* ── Aura Gradient Glow (atrás da logo) ─────────────────────── */
.splash-glow-aura {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.35) 0%,
        rgba(74, 222, 128, 0.15) 40%,
        transparent 70%
    );
    opacity: 0;
    z-index: 1;
    animation: auraFadeIn 1.8s ease-out 4.0s forwards,
               auraPulse 2.5s ease-in-out 4.6s infinite;
    pointer-events: none;
}

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

@keyframes auraPulse {
    0%, 100% { transform: scale(1);    opacity: 0.8; }
    50%      { transform: scale(1.15); opacity: 1; }
}

/* ── Expanding Light Rings ──────────────────────────────────── */
.splash-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.5);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.ring-1 {
    animation: ringExpand 1.4s cubic-bezier(0.16, 1, 0.3, 1) 4.2s forwards;
}
.ring-2 {
    border-color: rgba(74, 222, 128, 0.4);
    animation: ringExpand 1.4s cubic-bezier(0.16, 1, 0.3, 1) 4.5s forwards;
}
.ring-3 {
    border-color: rgba(37, 99, 235, 0.3);
    animation: ringExpand 1.4s cubic-bezier(0.16, 1, 0.3, 1) 4.8s forwards;
}

@keyframes ringExpand {
    0%   { opacity: 0.8; transform: scale(0.5); }
    100% { opacity: 0;   transform: scale(6); }
}

/* ── Logo Reveal + Breathing Glow ───────────────────────────── */
@keyframes logoReveal {
    0%   { opacity: 0; transform: scale(0.9); filter: brightness(0.5) drop-shadow(0 0 0px transparent); }
    60%  { opacity: 1; transform: scale(1.08); filter: brightness(1.3) drop-shadow(0 0 30px rgba(37, 99, 235, 0.5)); }
    100% { opacity: 1; transform: scale(1);   filter: brightness(1.1) drop-shadow(0 0 20px rgba(37, 99, 235, 0.3)); }
}

/* Responsividade */
@media (max-width: 600px) {
    .splash-word { font-size: 2.6rem; letter-spacing: -1.5px; }
    .glow-green { font-size: 3rem; }
    .splash-logo { width: 95vw; }
    .splash-logo img,
    .splash-logo svg {
        max-height: 250px;
    }
    .splash-glow-aura { width: 400px; height: 400px; }
}
