/* ===== ELITE PWA POSTER SPLASH SCREEN (DISTINGUISHED v2.0) ===== */
.splash-wrapper {
    position: fixed;
    inset: 0;
    background: #000;
    /* True black for cinematic feel */
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    overflow: hidden;
    transition: opacity 0.8s ease-out;
}

/* Background Cinematic Effect */
.splash-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: backgroundPulse 4s infinite ease-in-out;
}

/* 1. Header: Company Badge at Top */
.splash-header-poster {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(-30px);
    animation: cinematicDown 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.splash-brand-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mini-splash-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px var(--primary));
}

.brand-name-top {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: white;
}

/* 2. Central Poster Core: Big Welcome & Founder */
.splash-poster-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    width: 100%;
    z-index: 5;
    text-align: center;
}

.welcome-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.big-welcome {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 950;
    letter-spacing: 8px;
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: welcomeReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}

.welcome-subtext {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 5px;
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    opacity: 0;
    padding: 8px 20px;
    background: rgba(45, 212, 191, 0.05);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: cinematicUp 0.8s ease-out 0.8s forwards;
}

.founder-welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    animation: cinematicUp 1s ease-out 1.2s forwards;
}

.founder-hero-frame {
    position: relative;
    width: 120px;
    height: 120px;
}

.founder-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(45, 212, 191, 0.3);
}

.hero-ring {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 50%;
    animation: ringOrbit 8s infinite linear;
}

.founder-badges {
    text-align: center;
}

.founder-name-mini {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.founder-role-mini {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.8;
}

/* Custom Animation for Welcome Text */
@keyframes welcomeReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* 3. Footer: Elegant Progress */
.splash-footer-status {
    width: 80%;
    max-width: 300px;
    z-index: 10;
}

.loading-capsule {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-gradient);
    animation: progressSlow 2.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.status-msg {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

/* Animations */
@keyframes cinematicDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cinematicUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cinematicScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes growLine {
    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 80px;
    }
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes ringOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes progressSlow {
    0% {
        width: 0;
    }

    10% {
        width: 30%;
    }

    100% {
        width: 100%;
    }
}

/* Mobile Perfection */
@media (max-width: 480px) {
    .big-welcome {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .welcome-subtext {
        font-size: 0.6rem;
        letter-spacing: 3px;
        padding: 6px 14px;
        margin-top: 10px;
    }

    .splash-poster-main {
        gap: 2.5rem;
    }

    .founder-hero-frame {
        width: 100px;
        height: 100px;
    }

    .founder-name-mini {
        font-size: 1.2rem;
    }
}