:root {
    --accent: #00e3ff;
    --accent-dark: #20c8ff;
    --text-light: #ffffff;
    --text-dark: #0d0d0d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth
}

/* ---------- PRELOADER ---------- */
.loader {
    position: fixed;
    inset: 0;
    background: #000305;
    background-image:
        radial-gradient(rgba(0, 227, 255, 0.10) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(0, 227, 255, 0.18), rgba(0, 0, 0, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .7s ease, visibility .7s ease
}

.loader.hidden {
    opacity: 0;
    visibility: hidden
}

.loader img {
    width: 100px;
    animation: pulse 2s infinite ease-in-out
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }
}

/* ---------- HERO ---------- */
.video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3
}

.overlay-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55)0%, rgba(0, 0, 0, .75)100%);
    z-index: -2
}

header {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 1rem
}

header .logo {
    width: clamp(100px, 18vw, 160px);
    filter: drop-shadow(0 0 10px var(--accent))
}

header h1 {
    font-size: clamp(2.3rem, 5vw + 1rem, 4.5rem);
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 1px
}

header p.lead {
    color: var(--text-light);
    font-size: clamp(1rem, 1.1vw + 1rem, 1.5rem);
    max-width: 680px;
    line-height: 1.55
}

/* ---------- COUNTDOWN ---------- */
#counter {
    display: flex;
    gap: 1rem
}

.bloc {
    background: #000305;
    background-image: radial-gradient(rgba(0, 227, 255, .10) 1px, transparent 1px), radial-gradient(circle at 50% 0%, rgba(0, 227, 255, .18), rgba(0, 0, 0, 0) 70%);
    padding: 1rem .8rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    min-width: 70px
}

.bloc span {
    display: block;
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 700
}

.bloc small {
    color: var(--text-light);
    font-size: .75rem;
    letter-spacing: .5px;
    text-transform: uppercase
}

/* ---------- FORM ---------- */
.signup-box {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(14px);
    padding: 1.7rem;
    border-radius: 18px;
    width: clamp(290px, 35vw, 430px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: float 6s ease-in-out infinite
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.signup-box input {
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none
}

.signup-box button {
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #000305;
    background-image: radial-gradient(rgba(0, 227, 255, .10) 1px, transparent 1px), radial-gradient(circle at 50% 0%, rgba(0, 227, 255, .18), rgba(0, 0, 0, 0) 70%);
    color: var(--accent);
    transition: transform .2s, box-shadow .2s, background .2s
}

.signup-box button:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 227, 255, .6);
    background: var(--accent-dark)
}

.message {
    display: none;
    color: var(--text-light);
    font-weight: 500
}

/* ---------- SECTIONS ---------- */
section {
    padding: 4rem 1rem;
    background: #f9f9f9;
    text-align: center
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0d0d0d
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transition: transform .25s
}

.card:hover {
    transform: translateY(-8px)
}

.card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: .6rem;
    color: #0d0d0d
}

.card p {
    font-size: .95rem;
    color: #555;
    line-height: 1.5
}

/* ---------- FOOTER ---------- */
footer {
    background: #0d0d0d;
    color: #aaa;
    padding: 2rem 1rem;
    text-align: center;
    font-size: .85rem
}

.socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem
}

.socials a {
    color: var(--accent);
    font-size: 1.2rem;
    transition: color .2s
}

.socials a:hover {
    color: #fff
}

/* ---------- UTILITIES ---------- */
.hidden {
    display: none !important
}

@media(max-width:500px) {
    header h1 {
        font-size: 2.1rem
    }
}

/* ------------ 1. Section BENEFITS relookée ------------- */
#benefits {
    position: relative;
    /* fond sombre + halo cyan + léger bruit */

    color: var(--text-light);
    padding-block: 6rem;
    /* + espace pour les vagues */
    overflow: hidden;
    /* cache les vagues */
}

/* vagues haut / bas en pseudo-éléments SVG (1 seul path réutilisé) */
#benefits::before,
#benefits::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 7vw;

    transform: scaleY(-1);
    z-index: 1;
}

#benefits::before {
    top: -6vw;
}

#benefits::after {
    bottom: -6vw;
    transform: scaleY(1);
    background-position: bottom;
}

/* ------------ 2. Cartes glassmorphiques ------------- */
#benefits .card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(0, 227, 255, .15);
    backdrop-filter: blur(20px);
    color: var(--text-light);
    transition: transform .3s, box-shadow .3s;
}

#benefits .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 227, 255, .25);
}

#benefits .card h3 {
    color: var(--accent);
}

#benefits .card p {
    color: #e2e2e2;
}

/* ------------ 3. Compteur : chiffres tabulaires ------------- */
#counter .bloc span {
    font-variant-numeric: tabular-nums;
}

/* ------------ 4. CTA : halo pulsé ------------- */
@keyframes cta-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 227, 255, .7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 227, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 227, 255, 0);
    }
}

.signup-box button:hover {
    animation: cta-glow 1s cubic-bezier(.61, -0.29, .52, 1.29);
    transform: translateY(-2px) scale(1.04);
}

/* ------------ 5. Respect du prefers-reduced-motion ------------- */
@media (prefers-reduced-motion: reduce) {

    #benefits .card,
    .signup-box button:hover {
        transform: none !important;
        animation: none !important
    }
}


/* ---------- 1. Fond & bruit plus subtils ------------------------ */
#benefits {
    /* même base sombre mais un peu plus bleutée */
    background: #000305;
    background-image: radial-gradient(rgba(0, 227, 255, .10) 1px, transparent 1px), radial-gradient(circle at 50% 0%, rgba(0, 227, 255, .18), rgba(0, 0, 0, 0) 70%);
    background-size: 60px 60px, 100% 100%;
}

/* ---------- 3. Inclinaison “slanted” en pseudo ------------------- */
/* On garde le clip-path, mais on ajoute une ligne blanche “cache-misère” */
#benefits::before {
    top: -7vw
}

#benefits::after {
    bottom: -7vw
}

#benefits::after,
#benefits::before,
#benefits {
    /* supprime tout espace éventuel sous (Chrome sub-pixel) */
    background-repeat: no-repeat;
}

/* ---------- 4. Titre visible ------------------------------------ */
#benefits h2 {
    color: var(--text-light);
    font-size: clamp(2.2rem, 5vw + .5rem, 3rem);
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 3rem;
    position: relative;
}

#benefits h2::after {
    /* petit soulignement accent */
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    margin: 1.2rem auto 0;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------- 5. Cartes : léger assombrissement pour le contraste --*/
#benefits .card {
    background: rgba(5, 21, 27, .55);
    border: 1px solid rgba(0, 227, 255, .22);
}

/* ---------- 6. Responsive (mobile <= 480px) --------------------- */
@media(max-width:480px) {
    #benefits {
        padding-block: 4.5rem
    }

    #benefits .features {
        gap: 1.4rem
    }

    #benefits::before,
    #benefits::after {
        height: 10vw
    }
}

/* ---------- 7. Reduced-motion : on retire le clip si besoin ------ */
@media(prefers-reduced-motion:reduce) {
    #benefits {
        clip-path: none
    }
}




/* ======= TITRE AVEC EFFET DE TYPING + GLOW SUBTIL ======= */
.neuro-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    text-shadow: 0 0 6px rgba(0, 227, 255, 0.25), 0 0 12px rgba(0, 227, 255, 0.1);
    overflow: hidden;
    white-space: nowrap;
    max-width: 90vw;
    margin: 0 auto;

    margin-top: -2rem;
}

.neuro-title span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
    position: relative;
}

.neuro-title span::before {
    content: attr(data-text);
    display: inline-block;
    color: transparent;
    animation: textReveal 2.4s steps(24, end) forwards;
    background: linear-gradient(90deg, var(--accent), #fff 50%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    font-variant-ligatures: none;
}

@keyframes textReveal {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.neuro-title span::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 6px;
    animation: blink 0.8s infinite;
    vertical-align: bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

/* ==== Responsive fix & mobile-safe ==== */
@media (max-width: 480px) {
    .neuro-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .neuro-title span::before,
    .neuro-title span::after {
        animation: none !important;
        content: attr(data-text);
        color: var(--accent);
    }
}




/* ======= POPUP glassmorphisme cohérent ======= */
.popup {
    position: fixed;
    inset: 0;
    background: rgb(0 46 51 / 55%);
    backdrop-filter: blur(7px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup.hidden {
    display: none !important;
}

.popup-content {
    background: rgba(5, 21, 27, 0.55);
    border: 1px solid rgba(0, 227, 255, 0.22);
    backdrop-filter: blur(18px);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    padding: 2rem;
    border-radius: 20px;
    width: clamp(280px, 90vw, 440px);
    box-shadow: 0 8px 24px rgba(0, 227, 255, 0.08);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.popup-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.popup-content input[type="date"] {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    font-size: 1rem;
    margin-bottom: 1.4rem;
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-light);
}

.popup-content input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.popup-content button {
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: var(--text-dark);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    width: 140px;
}

.popup-content button:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
    box-shadow: 0 6px 18px rgba(0, 227, 255, 0.5);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}