/* Global Refets & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f172a; /* Slate 900 - Dark Premium Background */
    color: #ffffff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animation Stage */
.animation-stage {
    position: relative;
    width: 100%;
    height: 250px; /* Space for the logo/train */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    overflow: hidden; /* Hide the train as it enters/exits if needed, though we want it to cross */
}

/* The Train Animation */
.train-wrapper {
    position: absolute;
    left: -150px; /* Start off-screen left */
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    z-index: 10;
    /* Move from left to right, then disappear */
    animation: trainPass 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.train-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)); /* Glow effect */
}

/* The Logo Reveal and Float */
.logo-wrapper {
    opacity: 0;
    transform: scale(0.8);
    /* Reveal after train passes center (approx 1.2s mark) */
    animation: logoReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
    z-index: 5;
}

.app-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 24px; /* Soft corners if it's square, usually App icons are */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons Section */
.stores-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    /* Fade in after logo is fully established */
    animation: buttonsFadeIn 0.8s ease-out 2.2s forwards;
}

@media (min-width: 600px) {
    .stores-section {
        flex-direction: row;
        justify-content: center;
    }
}

/* Store Card Styling */
.store-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 250px;
    margin: 0 auto; /* Center in mobile */
}

.store-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.store-card .icon-box {
    width: 32px;
    height: 32px;
}

.store-card .text-box {
    display: flex;
    flex-direction: column;
}

.store-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.store-card .store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Keyframes */

/* Train starts left, moves through center, then out right, 
   but we want it to 'reveal' the logo. 
   Option: Train moves L -> Center (Logo appears behind/after it) -> R.
*/
@keyframes trainPass {
    0% {
        left: -20%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        /* Train is at center, obscuring the logo spot */
        left: 50%; 
        transform: translate(-50%, -50%) scale(1.2); /* Slight zoom for impact */
    }
    60% {
        /* Continue moving right */
        left: 50%;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        left: 120%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

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

@keyframes buttonsFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
