/* --- PREMIUM LANDING PAGE STYLES --- */

.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(5, 5, 10, 0.8);
    /* Darker for better contrast */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    /* Horizontally center */
    align-items: flex-start;
    /* safe for overflow */
    opacity: 0;
    animation: fadeInOverlay 0.8s ease forwards;
    padding: 0;
    overflow-y: auto;
    /* Handle small screens */
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

.landing-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    /* Reduced gap */
    padding: 40px 20px;
    position: relative;
    margin: auto;
    /* Centers content vertically if it fits */
}

.landing-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: slideUpHero 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpHero {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.landing-logo {
    font-size: 4rem;
    color: var(--accent-success);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--accent-success));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.landing-hero h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.landing-hero h1 span.highlight {
    color: var(--accent-primary);
    text-shadow: 0 0 40px rgba(112, 0, 255, 0.6);
}

.landing-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.landing-btn {
    margin-top: 20px;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.landing-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(112, 0, 255, 0.6);
}

.landing-btn i {
    transition: transform 0.3s;
}

.landing-btn:hover i {
    transform: translateX(5px);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeInCard 0.8s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card i {
    font-size: 3.5rem;
    margin-bottom: 8px;
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 15px rgba(157, 78, 255, 0.4));
    transition: all 0.4s;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(157, 78, 255, 0.8));
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Mobile Responsiveness for Landing Page */
@media (max-width: 900px) {
    .landing-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-height: 800px),
(max-width: 480px) {
    /* Height check ensures we compact for landscape or small phones */

    .landing-overlay {
        align-items: center;
        /* Center again since we want it to fit */
        padding: 10px;
    }

    .landing-content {
        padding: 10px;
        gap: 15px;
        /* Much tighter gap */
        width: 100%;
        max-width: 100%;
        justify-content: center;
        /* Center vertical */
        height: 100%;
        /* Take full height */
    }

    .landing-hero {
        gap: 10px;
    }

    .landing-logo {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    .landing-hero h1 {
        font-size: 2.2rem;
        /* Much smaller */
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        /* Reduce heavy shadow */
    }

    .landing-subtitle {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .landing-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin-top: 10px;
    }

    .landing-features {
        grid-template-columns: 1fr 1fr 1fr;
        /* 3 in a row for compactness */
        gap: 8px;
        margin-top: 15px;
    }

    /* Stack on extremely narrow screens, but for "fit on page" 3-col or horizontal scroll is better. 
       Let's try a flex row that is dense. */
    .landing-features {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .feature-card {
        padding: 15px 10px;
        gap: 8px;
        flex: 1;
        /* Equal width */
        min-width: 0;
        /* Allow shrinking */
    }

    .feature-card i {
        font-size: 1.8rem;
        /* Smaller icons */
        margin-bottom: 2px;
    }

    .feature-card h3 {
        font-size: 0.8rem;
        /* Tiny text */
        line-height: 1.2;
    }

    .feature-card p {
        display: none;
        /* Hide description on mobile to fit "One Page" constraint */
    }
}