/* ============================================
   HabitFlow - Landing Page Styles
   ============================================ */

.landing-body {
    background: #0B1220;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.landing-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.landing-bg .gradient-orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.landing-bg .gradient-orb:nth-child(2) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.25), transparent);
    top: 50%;
    right: -80px;
    animation-delay: -3s;
}

.landing-bg .gradient-orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent);
    bottom: -50px;
    left: 30%;
    animation-delay: -5s;
}

.landing-bg .gradient-orb:nth-child(4) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
    top: 30%;
    left: 50%;
    animation-delay: -2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* Landing Navbar */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
}

.landing-navbar.scrolled {
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    padding: 12px 40px;
}

.landing-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.landing-nav-btn {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.landing-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Hero */
.hero-left {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #3B82F6;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.hero-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F8FAFC;
}

.hero-headline .gradient-text {
    background: linear-gradient(135deg, #3B82F6, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #94A3B8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-cta-secondary {
    background: transparent;
    color: #94A3B8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    border-color: #3B82F6;
    color: #F8FAFC;
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #22D3EE;
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 4px;
}

/* Right Auth Card */
.hero-right {
    display: flex;
    justify-content: center;
}

.auth-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
    animation: cardFloat 6s ease-in-out infinite;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.1), rgba(109, 40, 217, 0.2));
    z-index: -1;
    opacity: 0.5;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.auth-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #F8FAFC;
}

.auth-card-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 24px;
    background: rgba(11, 18, 32, 0.5);
    border-radius: 8px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    background: none;
}

.auth-tab.active {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94A3B8;
    margin-bottom: 6px;
}

.auth-form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(11, 18, 32, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    color: #F8FAFC;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-form-control::placeholder {
    color: #475569;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #64748B;
}

.auth-footer a {
    color: #3B82F6;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

/* How it works section */
.how-it-works {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    background: rgba(17, 24, 39, 0.5);
}

.how-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 48px;
    color: #F8FAFC;
}

.how-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.how-step {
    text-align: center;
    padding: 24px;
}

.how-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #3B82F6;
}

.how-step-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #F8FAFC;
}

.how-step-desc {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.5;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    color: #475569;
    font-size: 0.85rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left {
        text-align: center;
        padding-right: 0;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 40px;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .landing-navbar {
        padding: 12px 20px;
    }

    .auth-card {
        padding: 24px;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
