
/* Landing Page Styles */
#landing-page {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

#landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

#landing-header .logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.4rem;
    font-weight: 800;
}

#landing-header .logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.header-actions {
    display: flex;
    gap: var(--space-3);
}

#landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-8);
    background: radial-gradient(ellipse at 50% 20%, var(--primary-glow) 0%, var(--bg-dark) 50%);
    position: relative;
    transition: filter var(--transition-slow);
}

.blur-bg {
    filter: blur(12px);
}

.hero-content {
    max-width: 720px;
    z-index: 1;
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

#landing-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-10);
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-10);
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.feature-pills {
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-lg {
    padding: 0 var(--space-8);
    height: 52px;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

.feature-pills {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.pill:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.pill i {
    color: var(--primary);
}

/* Auth Modal Container on Landing */
#auth-forms-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Tablet: scale hero between desktop and phone */
@media (min-width: 769px) and (max-width: 1024px) {
    #landing-hero {
        padding: var(--space-8) var(--space-6);
    }

    #landing-hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons .btn-lg {
        min-width: min(100%, 280px);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #landing-hero {
        padding: var(--space-6) var(--space-4);
        justify-content: flex-start;
        padding-top: calc(120px + env(safe-area-inset-top));
    }

    #landing-hero h1 {
        font-size: 2.25rem;
        margin-bottom: var(--space-4);
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: var(--space-8);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: var(--space-3);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    #landing-header {
        padding: var(--space-4);
        background: rgba(10, 10, 15, 0.9);
        backdrop-filter: blur(12px);
    }
    
    .header-actions .btn {
        padding: 0 var(--space-4);
        height: 40px;
        font-size: var(--font-sm);
    }
    
    .logo { font-size: 1.2rem; }
    .logo img { width: 32px; height: 32px; }

    #auth-forms-container {
        align-items: flex-end;
        padding: 0;
        background: rgba(0,0,0,0.8);
    }

    .auth-card {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-width: 100%;
        margin: 0;
        border: none;
        padding: var(--space-6);
        padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
        animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
