/* =========================================================
    HERO BACKGROUND GLOW
   ========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: var(--es-space-10);
    padding-bottom: var(--es-space-13);
    background: var(--es-bg);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(99, 91, 255, 0.18) 0%,
            rgba(24, 191, 242, 0.08) 35%,
            transparent 72%
        );
    /* background:
        radial-gradient(circle, rgba(99, 91, 255, 0.32) 0%, rgba(99, 91, 255, 0.22) 28%, rgba(99, 91, 255, 0.10) 48%, transparent 72%),
        radial-gradient(circle, rgba(123, 111, 255, 0.18) 0%, rgba(123, 111, 255, 0.10) 38%, transparent 72%),
        radial-gradient(36% 58% at 74% 60%, rgba(103, 211, 255, 0.12) 0%, rgba(103, 211, 255, 0.08) 32%, transparent 72%),
        radial-gradient(circle, rgba(68, 208, 182, 0.08) 0%, transparent 75%); */
    filter: blur(20px);
    opacity: 1;
}

[data-theme="light"] .hero-section::before {
    background: #fff;
}
/*
 * Deuxième halo plus discret vers le bas.
 */
.hero-section::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 120px;
    width: 900px;
    height: 340px;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse,
            rgba(24, 191, 242, 0.08),
            transparent 70%
        );
    transform: translateX(-50%);
}

.hero-container {
    position: relative;
    z-index: 1;
}


/* =========================================================
    HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--es-hero-content-max);
    margin-inline: auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--es-space-2);
    margin-bottom: var(--es-space-5);
    padding: var(--es-space-1) var(--es-space-3);
    background: var(--es-shadow-card);
    color: var(--es-text-secondary);
    border: var(--es-border-thin) solid var(--es-border-subtle);
    border-radius: var(--es-radius-pill);
    font-size: var(--es-fs-xs);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-badge > span {
    color: var(--es-secondary);
}

.hero-title {
    margin-bottom: var(--es-space-5);
    color: var(--es-text);
    font-family: var(--es-font-heading);
    font-size: var(--es-fs-display);
    font-weight: var(--es-fw-extrabold);
    line-height: var(--es-lh-tight);
    letter-spacing: var(--es-tracking-tight);
}

/* =========================================================
    HERO TITLE — LINE MANAGEMENT
   ========================================================= */

.hero-title__line {
    display: block;
}

/* Mobile masqué sur Desktop */
.hero-title__mobile {
    display: none;
}

/* Desktop visible par défaut */
.hero-title__desktop {
    display: block;
}

/* =========================================================
    HERO TITLE — GRADIENT FIGMA
   ========================================================= */

.hero-title__gradient {
    background: linear-gradient(
        900deg,
        #ffffff 0%,
        #c3c0ff 40%,
        #67d3ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 660px;
    margin: 0 auto var(--es-space-7);
    color: var(--es-text-secondary);
    font-size: var(--es-fs-base);
    line-height: var(--es-lh-body);
}

/* =========================================================
    HERO ACTIONS
   ========================================================= */

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--es-space-3);
}

.hero-cta {
    min-height: var(--es-button-height);
    padding-inline: var(--es-space-6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--es-space-2);
    border-radius: var(--es-radius-md);
    font-size: var(--es-fs-sm);
    font-weight: var(--es-fw-semibold);
    transition:
        background-color var(--es-transition-fast),
        border-color var(--es-transition-fast),
        transform var(--es-transition-fast),
        box-shadow var(--es-transition-fast);
}

.hero-cta--primary {
    background: var(--es-primary);
    color: #ffffff;
    border: var(--es-border-thin) solid var(--es-primary);
    box-shadow: var(--es-glow-primary);
}

.hero-cta--primary:hover {
    background: var(--es-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--es-glow-primary-strong);
}

.hero-cta--secondary {
    background: var(--es-surface);
    color: var(--es-text);
    border: var(--es-border-thin) solid var(--es-border-subtle);
}

.hero-cta--secondary:hover {
    background: var(--es-surface-hover);
    color: var(--es-text);
    border-color: var(--es-border);
    transform: translateY(-2px);
}

/* =========================================================
   HERO — APPLICATION ANDROID
   ========================================================= */

.hero-app-download {
    display: flex;
    flex-wrap: wrap;
    gap: var(--es-space-2);
    justify-content: center;
    margin-top: var(--es-space-4);
}

.hero-app-download__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--es-space-2);

    padding: var(--es-space-2) var(--es-space-4);

    color: var(--es-text-secondary);
    background: transparent;

    border: var(--es-border-thin) solid var(--es-border-subtle);
    border-radius: var(--es-radius-pill);

    font-size: var(--es-fs-sm);
    font-weight: var(--es-fw-medium);

    text-decoration: none;

    transition:
        color var(--es-transition-fast),
        border-color var(--es-transition-fast),
        background-color var(--es-transition-fast),
        transform var(--es-transition-fast);
}

.hero-app-download__btn:hover {
    color: var(--es-text);
    border-color: var(--es-primary);

    background:
        rgba(99, 91, 255, 0.08);

    transform:
        translateY(-2px);
}

.hero-app-download__btn svg {
    flex-shrink: 0;
    color: var(--es-secondary);
}

/* =========================================================
    HERO QUICK BENEFITS
   ========================================================= */

.hero-benefits {
    margin-top: var(--es-space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--es-space-5);
    color: var(--es-text-muted);
    font-size: var(--es-fs-xs);
}

.hero-benefits > span {
    display: inline-flex;
    align-items: center;
    gap: var(--es-space-2);
}

.hero-benefits__icon {
    color: var(--es-secondary);
}

/* =========================================================
    HERO PRODUCT PREVIEW
   ========================================================= */

.hero-preview {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: var(--es-space-9) auto 0;
}

.hero-preview__browser {
    overflow: hidden;
    background: var(--es-surface);
    border: var(--es-border-thin) solid var(--es-border);
    border-radius: var(--es-radius-lg);
    box-shadow:
        var(--es-shadow-elevated),
        0 0 80px rgba(24, 191, 242, 0.06);
}

.hero-preview__topbar {
    min-height: 46px;
    padding-inline: var(--es-space-4);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: var(--es-border-thin) solid var(--es-border-subtle);
}

.hero-preview__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-preview__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-preview__dots span:nth-child(1) {
    background: #ef4444;
}

.hero-preview__dots span:nth-child(2) {
    background: #d4a017;
}

.hero-preview__dots span:nth-child(3) {
    background: #22a06b;
}

.hero-preview__url {
    color: var(--es-text-muted);
    font-family: monospace;
    font-size: var(--es-fs-xs);
    letter-spacing: 0.08em;
}


/* =========================================================
    HERO PRODUCT SLIDER
   ========================================================= */

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider__track {
    display: flex;
    width: 100%;
    transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hero-slider__slide {
    min-width: 100%;
    flex: 0 0 100%;
}

.hero-slider__slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   HERO SLIDER — DOTS
   ========================================================= */

.hero-slider__dots {
    position: absolute;
    right: var(--es-space-5);
    bottom: var(--es-space-4);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slider__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    border: 0;
    border-radius: var(--es-radius-pill);
    transition:
        width var(--es-transition-fast),
        background-color var(--es-transition-fast),
        opacity var(--es-transition-fast);
}

.hero-slider__dot.is-active {
    width: 22px;
    background: var(--es-primary);
}

/* =========================================================
    DECORATIVE PRODUCT GLOW
    ---------------------------------------------------------
    Reprend discrètement l'interface EliteStream derrière
    le texte afin de créer l'effet de profondeur observé
    sur la maquette mobile.
   ========================================================= */

@media (max-width: 767.98px) {
    .hero-content::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 40px;
        left: 50%;
        width: 115%;
        height: 460px;
        pointer-events: none;
        background:
            linear-gradient(
                to bottom,
                rgba(7, 10, 18, 0.70),
                rgba(7, 10, 18, 0.92)
            ),
            url("../../images/hero/elitestream-dashboard.webp")
            center / cover no-repeat;
        opacity: 0.18;
        filter: blur(8px);
        mask-image:
            linear-gradient(
                to bottom,
                transparent,
                black 20%,
                black 65%,
                transparent
            );
        -webkit-mask-image:
            linear-gradient(
                to bottom,
                transparent,
                black 20%,
                black 65%,
                transparent
            );
        transform: translateX(-50%);
    }
}

/* =========================================================
   FOOTER — APPLICATION ANDROID
   ========================================================= */

.footer-app {
    margin-top: var(--es-space-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--es-space-2);
}

.footer-app__label {
    color: var(--es-text);
    font-size: var(--es-fs-sm);
    font-weight: var(--es-fw-semibold);
}

.footer-app__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--es-space-2);

    min-height: 40px;
    padding:
        var(--es-space-2)
        var(--es-space-3);

    color: var(--es-text-secondary);
    background: var(--es-surface);

    border:
        var(--es-border-thin)
        solid
        var(--es-border-subtle);

    border-radius: var(--es-radius-sm);

    font-size: var(--es-fs-sm);
    font-weight: var(--es-fw-medium);
    text-decoration: none;

    transition:
        color var(--es-transition-fast),
        border-color var(--es-transition-fast),
        background-color var(--es-transition-fast),
        transform var(--es-transition-fast),
        box-shadow var(--es-transition-fast);
}

.footer-app__download svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--es-secondary);
}

.footer-app__download:hover {
    color: var(--es-text);
    border-color: var(--es-primary);
    background: rgba(99, 91, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 91, 255, 0.10);
}

.footer-app__download:focus-visible {
    outline: 2px solid var(--es-primary);
    outline-offset: 3px;
}

.footer-app__meta {
    color: var(--es-text-muted);
    font-size: var(--es-fs-xs);
}

/* =========================================================
    TABLETTE
   ========================================================= */

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: var(--es-space-9);
    }

    .hero-title {
        font-size: var(--es-fs-3xl);
    }

    .hero-preview {
        margin-top: var(--es-space-8);
    }
}

/* =========================================================
    MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: var(--es-space-7);
        padding-bottom: var(--es-space-9);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badge {
        margin-bottom: var(--es-space-4);
        font-size: 0.625rem;
    }

    .hero-title {
        margin-bottom: var(--es-space-4);
        font-size: clamp(2rem, 8vw, 2.55rem);
        line-height: 1.08;
    }

    .hero-description {
        margin-bottom: var(--es-space-6);
        padding-inline: var(--es-space-2);
        font-size: var(--es-fs-sm);
    }

    /*
     * Les CTA deviennent pleine largeur,
     * conformément à la maquette mobile.
     */
    .hero-actions {
        flex-direction: column;
    }

    .hero-cta {
        width: 100%;
        min-height: 52px;
    }

    .hero-app-download {
        width: 100%;
    }

    .hero-app-download__btn {
        width: 100%;
        min-height: 46px;
    }

    /*
     * Les bénéfices peuvent revenir sur plusieurs lignes.
     */
    .hero-benefits {
        margin-top: var(--es-space-5);
        gap:
            var(--es-space-2)
            var(--es-space-4);
    }

    /*
     * Le mockup reste large mais adapté
     * à l'espace disponible du téléphone.
     */
    .hero-preview {
        margin-top: var(--es-space-7);
    }

    .hero-preview__browser {
        border-radius: var(--es-radius-md);
    }

    .hero-preview__topbar {
        display: none;
    }

    .footer-app {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .footer-app__download {
        width: 100%;
        max-width: 280px;
    }

}