/* ================= HERO SECTION ================= */
.hero {
    padding: 4rem 0 6rem;
    background: var(--bg-primary);
    overflow: visible;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(135, 168, 120, 0.15) 0%, rgba(245, 245, 220, 0) 70%);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
body.dark-mode .hero::before {
    background: radial-gradient(circle, rgba(163, 196, 145, 0.12) 0%, rgba(10, 10, 10, 0) 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

@media (max-width: 400px) {
    .hero {
        padding: 3rem 0 4rem;
    }
    .hero-container {
        gap: 2rem;
    }
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .btn-primary-lg, .btn-secondary-lg {
        width: 100%;
        text-align: center;
    }
    .hero-trust {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.badge-new {
    display: inline-block;
    background: rgba(135, 168, 120, 0.15);
    color: var(--brand-primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(135, 168, 120, 0.3);
}
body.dark-mode .badge-new {
    background: rgba(163, 196, 145, 0.15);
    color: var(--brand-primary-light);
    border-color: rgba(163, 196, 145, 0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary-lg {
    background: var(--brand-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 10px 20px rgba(107, 143, 92, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary-lg:hover {
    transform: translateY(-3px);
    background: var(--brand-primary-dark);
    box-shadow: 0 15px 25px rgba(107, 143, 92, 0.35);
}

.btn-secondary-lg {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}
.btn-secondary-lg:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Journey cue beneath hero */
.hero-journey-cue {
    margin: 2rem 0 0;
    padding: 0.9rem 1.2rem;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}
.hero-journey-cue span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--brand-primary);
}
.hero-journey-cue p {
    margin: 0.5rem 0 0.7rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
}
.hero-journey-cue a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    animation: hero-cue-bounce 2s ease-in-out infinite;
}
.hero-journey-cue a b {
    font-size: 1.2rem;
}
@keyframes hero-cue-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(6px); opacity: 1; }
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.avatars-stack {
    display: flex;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid var(--bg-primary);
    margin-left: -10px;
}
.mini-avatar:first-child { margin-left: 0; }

/* ================= STATS BAR ================= */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ================= SMART ROUTING LOADER ================= */
.auth-loading {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-sage {
    width: 45px;
    height: 45px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

.auth-loading p {
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 { font-size: 2.5rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-trust { justify-content: center; }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1rem;
    }
}

@media (max-width: 500px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 400px) {
    .hero-text h1 { font-size: 1.9rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; gap: 0.75rem; }
    .btn-primary-lg, .btn-secondary-lg { width: 100%; text-align: center; }
    .hero-journey-cue { padding: 0.7rem 1rem; font-size: 0.85rem; }
    .hero-journey-cue a { font-size: 0.85rem; }
    .stats-container { grid-template-columns: 1fr; gap: 2rem; }
    .stat-item h3 { font-size: 2rem; }
}