/* Masthead / Hero Section */
header.masthead {
    padding-top: 8rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
    background-color: var(--slate-900);
}

.masthead-badge {
    background: var(--primary-50);
    color: var(--primary-600);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

header.masthead h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--slate-700);
}

header.masthead .lead {
    color: var(--slate-600);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Hero Image & Decorations */
.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper img {
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
}

.lottie-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* Floating Stats */
.stat-card-floating {
    position: absolute;
    z-index: 10;
    padding: 1.25rem 1.5rem;
    min-width: 160px;
}

.stat-card-tl {
    top: 10%;
    left: -30px;
    animation: float 6s ease-in-out infinite;
}

.stat-card-br {
    bottom: 15%;
    right: -30px;
    animation: float 6s ease-in-out infinite 2s;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-600);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 991.98px) {
    header.masthead {
        padding-top: 10rem;
        padding-bottom: 4rem;
        text-align: center;
    }

    header.masthead .lead {
        margin-left: auto;
        margin-right: auto;
    }

    header.masthead .row {
        flex-direction: column-reverse;
    }

    .hero-image-wrapper {
        margin-bottom: 3rem;
    }

    .stat-card-floating {
        position: absolute !important;
        z-index: 10;
        transform: none !important;
        animation: float 6s ease-in-out infinite !important;
    }

    .stat-card-tl {
        top: 1.5rem !important;
        left: 0 !important;
        transform: translate(-25%, 0) !important;
    }

    .stat-card-br {
        bottom: 2rem !important;
        right: 0 !important;
        transform: translate(25%, 0) !important;
    }
}