/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    /* deep forest mesh gradient */
    background-color: #1a3a17;
    background-image: radial-gradient(at 0% 0%, hsla(125,40%,20%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(130,45%,25%,1) 0, transparent 50%);
    color: var(--text-on-primary);
    border-radius: 40px;
    width: 96%;
    margin: var(--space-sm) auto var(--space-xl) auto;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    /* Subtle "Data Beam" at the bottom */
    .hero-section::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 15%;
        right: 15%;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--brand-secondary), transparent);
        opacity: 0.3;
        filter: blur(1px);
    }

    /* Grit Pattern */
    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px var(--space-md);
    flex-direction: column;
}

.hero-title-group {
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-heavy);
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--brand-white);
    opacity: 0.8;
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

/* =========================================
   STATS RIBBON
   ========================================= */
.stats-ribbon {
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 8px 25px;
    margin-bottom: var(--space-xl);
}

.stat-group {
    padding: 2px 12px;
}

    .stat-group small {
        display: block;
        text-transform: uppercase;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 2px;
        opacity: 0.6;
        margin-bottom: -2px;
    }

    .stat-group strong {
        font-size: var(--text-xl);
        font-family: 'Courier New', Courier, monospace;
    }

.stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   FEATURE GRID
   ========================================= */
.feature-section {
    margin-top: calc(var(--space-xl) * 2);
    margin-bottom: var(--space-xl);
}

.feature-grid {
    display: grid;
    /* Automatically creates responsive columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    align-items: center; /* Centers text inside the flex card */
    text-align: center;
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-secondary);
    margin-bottom: var(--space-md);
}

.feature-title {
    font-weight: var(--font-weight-heavy);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: var(--text-md);
    line-height: 1.5;
    margin: 0;
}

    .feature-desc a {
        color: var(--brand-secondary);
        text-decoration: none;
        font-weight: var(--font-weight-medium);
    }

        .feature-desc a:hover {
            text-decoration: underline;
        }

.onboarding-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

    .onboarding-overlay.open {
        display: flex !important;
    }

.onboarding-popup {
    max-width: 450px;
    height: auto;
    text-align: center;
    pointer-events: auto;
}