/* ============================================
   Hero — Fullscreen Cinematic Video Banner
   ============================================ */

/* ── Section wrapper ── */
section.hero {
    position: relative !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    width: 100% !important;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 100px 0 0 0;
}

/* ── Video ── */
section.hero > video.hero__video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    z-index: 0;
}

/* ── Gradient overlay ── */
.hero__overlay {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.00) 25%,
        rgba(0, 0, 0, 0.00) 45%,
        rgba(0, 0, 0, 0.40) 70%,
        rgba(0, 0, 0, 0.75) 100%
    );
}


/* ── Content block (bottom-left, overlaid on video) ── */
.hero__content {
    position: relative !important;
    padding: 0 clamp(24px, 4vw, 64px) clamp(32px, 5vh, 72px);
    z-index: 2;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: var(--weight-extrabold);
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 720px;
}

.hero__title-accent {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

.hero__desc {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 560px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero__btn-outline {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.hero__btn-outline:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.hero__trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ── Doc type cards (bottom, glass) ── */
.hero__stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    min-width: 100px;
    transition: all var(--transition-base);
}

.hero__stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero__stat-code {
    font-size: var(--text-lg);
    font-weight: var(--weight-extrabold);
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 2px;
    text-shadow: none;
}

.hero__stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* ── Video Controls (bottom-right) ── */
.hero__control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.hero__control-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.40);
    transform: scale(1.08);
}

.hero__snd {
    width: 20px;
    height: 20px;
    display: none;
    max-width: none;
    max-height: none;
}

/* ── Video ended ── */
.hero--ended .hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
    transition: background 1s ease;
}

/* ── Transparent navbar integration ── */
.header--hero-mode {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

.header--hero-mode .header__nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.header--hero-mode .header__nav-link:hover,
.header--hero-mode .header__nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.header--hero-mode .header__logo-text {
    color: #fff;
}

.header--hero-mode .header__theme-toggle {
    color: rgba(255, 255, 255, 0.7);
}

.header--hero-mode .header__theme-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.header--hero-mode .header__cta-desktop.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.header--hero-mode .header__cta-desktop.btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.header--hero-mode .header__hamburger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.header--hero-mode .header__hamburger span {
    background: #fff;
}

/* When scrolled, even in hero-mode, add background */
.header--hero-mode.scrolled {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero__content {
        padding: 0 16px 24px 16px;
    }

    .hero__badge {
        display: none !important;
    }

    .hero__title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero__desc {
        font-size: 0.85rem;
        max-width: none;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero__stats {
        gap: 8px;
    }

    .hero__stat-card {
        min-width: 70px;
        padding: 8px 12px;
    }

    .hero__stat-code {
        font-size: var(--text-base);
    }

    .hero__controls {
        bottom: 16px !important;
        right: 16px !important;
    }

    .hero__control-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .hero__trust {
        flex-direction: column;
        gap: 4px;
    }

    .hero__dot {
        display: none;
    }

    .hero__stat-card {
        min-width: 60px;
        padding: 6px 10px;
    }
}
