/* ========================================
   SavvySpot Splash / Loading Screen
   Swirl → Pin Point → Logo → Name Reveal
   ======================================== */

/* Overlay */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0e1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---- Particle Canvas ---- */
#splash-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ---- Center Logo Container ---- */
.splash-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Pin shape wrapper — hidden initially, scales up */
.splash-pin {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transform: scale(0);
    transition: none;
    /* glow */
    box-shadow: 0 0 0px rgba(6, 141, 157, 0);
}

.splash-pin.pin-appear {
    animation: pinAppear 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pinAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 40px rgba(6, 141, 157, 0.5), 0 0 80px rgba(6, 141, 157, 0.2);
    }
}

/* Pin drop/marker tail — appears with the pin */
.splash-pin-tail {
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #068D9D, transparent);
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: none;
}

.splash-pin-tail.tail-appear {
    animation: tailGrow 0.4s 0.3s ease-out forwards;
}

@keyframes tailGrow {
    0% { height: 0; opacity: 0; }
    100% { height: 28px; opacity: 1; }
}

/* Company Name */
.splash-name {
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: transparent;
    background: linear-gradient(135deg, #068D9D, #53599A, #80DED9);
    background-clip: text;
    -webkit-background-clip: text;
    opacity: 0;
    transform: translateY(12px);
    transition: none;
}

.splash-name.name-appear {
    animation: nameReveal 0.8s 0.1s ease-out forwards;
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Tagline */
.splash-tagline {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(128, 222, 217, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: none;
}

.splash-tagline.tagline-appear {
    animation: taglineFade 0.6s 0.3s ease-out forwards;
}

@keyframes taglineFade {
    0% { opacity: 0; letter-spacing: 8px; }
    100% { opacity: 1; letter-spacing: 2px; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .splash-pin {
        width: 72px;
        height: 72px;
    }
    .splash-name {
        font-size: 2.3rem;
    }
    .splash-tagline {
        font-size: 0.75rem;
    }
}
