/* ============================================================
   BSF HERO SECTION — Cinematic full-screen hero
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg-primary);
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.92) 0%,
        rgba(5, 5, 5, 0.75) 40%,
        rgba(5, 5, 5, 0.6) 70%,
        rgba(5, 5, 5, 0.85) 100%
    );
}

.hero__bg-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg-primary), transparent);
    z-index: 2;
}

/* Animated particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s infinite;
}

.hero__particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.hero__particle:nth-child(2) { left: 20%; animation-delay: 1.5s; animation-duration: 8s; }
.hero__particle:nth-child(3) { left: 35%; animation-delay: 3s; animation-duration: 12s; }
.hero__particle:nth-child(4) { left: 50%; animation-delay: 0.5s; animation-duration: 9s; }
.hero__particle:nth-child(5) { left: 65%; animation-delay: 2s; animation-duration: 11s; }
.hero__particle:nth-child(6) { left: 75%; animation-delay: 4s; animation-duration: 7s; }
.hero__particle:nth-child(7) { left: 85%; animation-delay: 1s; animation-duration: 10s; }
.hero__particle:nth-child(8) { left: 92%; animation-delay: 3.5s; animation-duration: 8.5s; }

/* Decorative gold glow */
.hero__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.hero__glow--left {
    top: -200px;
    left: -200px;
}

.hero__glow--right {
    bottom: -100px;
    right: -200px;
}

/* Content */
.hero__content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    padding: 0 var(--space-xl);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 20px;
    background: var(--color-gold-muted);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-lg);
    letter-spacing: var(--ls-tight);
    animation: fadeInUp 0.8s 0.2s var(--ease-out) both;
}

.hero__title span {
    display: block;
}

.hero__title .text-gold {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-white-50);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 550px;
    animation: fadeInUp 0.8s 0.4s var(--ease-out) both;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: fadeInUp 0.8s 0.6s var(--ease-out) both;
}

/* Stats bar at bottom of hero */
.hero__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.hero__stats-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.hero__stat {
    text-align: center;
    position: relative;
}

.hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: var(--fw-extrabold);
    color: var(--color-gold);
    line-height: 1;
}

.hero__stat-label {
    font-size: var(--fs-xs);
    color: var(--color-white-50);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    margin-top: var(--space-xs);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fadeInUp 1s 1s var(--ease-out) both;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

.hero__scroll-text {
    font-size: var(--fs-xs);
    color: var(--color-white-30);
    text-transform: uppercase;
    letter-spacing: var(--ls-widest);
    writing-mode: vertical-rl;
}

@media (max-height: 850px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height, 80px) + var(--space-xl));
        padding-bottom: 120px;
    }

    .hero__badge {
        margin-bottom: var(--space-md);
    }

    .hero__title {
        margin-bottom: var(--space-md);
    }

    .hero__subtitle {
        margin-bottom: var(--space-lg);
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero__content {
        padding: 0 var(--space-lg);
    }

    .hero__stats-inner {
        padding: var(--space-md) var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        /* Ensure content is not hidden behind the absolute stats bar at bottom */
        padding-bottom: 160px;
    }

    .hero__content {
        padding: 0 var(--space-md);
    }

    .hero__stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .hero__stat:nth-child(2)::after {
        display: none;
    }

    .hero__scroll {
        display: none;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }
}
