/* ==================================================================
   SpyFade – Global Stylesheet
   ================================================================== */

/* -------- Variables racine ------------------------------------------------ */
:root {
    --primary-bg: #0a0a10;          /* Very dark blue/black */
    --secondary-bg: #1a1a2e;        /* Dark blue‑purple */
    --card-bg: rgba(26,26,46,.7);   /* Semi‑transparent card background */
    --text-primary:  #e0e0e0;
    --text-secondary:#b0b0b0;
    --accent-purple: #8A2BE2;
    --accent-blue:   #4169E1;
    --glow-color:    rgba(75,0,130,.5);  /* Indigo/dark violet for glow */

    --font-main:     'Roboto',   sans-serif;
    --font-headings: 'Orbitron', sans-serif; /* Techy/modern */
}

/* -------- Reset & global --------------------------------------------------- */
*{margin:0;padding:0;box-sizing:border-box;}

body{
    font-family:var(--font-main);
    background:var(--primary-bg);
    color:var(--text-primary);
    line-height:1.6;
    overflow-x:hidden;
}

.container{
    width:90%;
    max-width:1100px;
    margin:0 auto;
    padding:20px 0;
}

/* ==================================================================
   HEADER
   ================================================================== */
header{
    background:rgba(10,10,16,.8);
    backdrop-filter:blur(10px);
    padding:10px 0;
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;
    border-bottom:1px solid rgba(138,43,226,.3);
}
header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0;
}

/* Logo */
.logo-container{display:flex;align-items:center;}
#logo{height:50px;margin-right:15px;}
header h1{
    font-family:var(--font-headings);
    font-size:1.8em;
    background:linear-gradient(90deg,var(--accent-purple),var(--accent-blue));
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-fill-color:transparent;
}

/* --- Navigation : soulignement dégradé animé -------------------- */
header nav a{
    position:relative;
    display:inline-block;
    margin:0 25px;
    padding:4px 0;
    font-weight:500;
    letter-spacing:.4px;
    color:var(--text-secondary);
    text-decoration:none;
    transition:color .3s ease;
}
header nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:100%;
    height:2px;
    background:linear-gradient(90deg,var(--accent-purple),var(--accent-blue));
    transform:scaleX(0);
    transform-origin:right;
    transition:transform .35s ease-out;
    border-radius:1px;
}
header nav a:hover,
header nav a:focus{color:#fff;}
header nav a:hover::after,
header nav a:focus::after{
    transform:scaleX(1);
    transform-origin:left;
}

/* ==================================================================
   HERO
   ================================================================== */
#hero{
    height:100vh;
    min-height:600px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding-top:80px;          /* fixed header offset */
    position:relative;
    overflow:hidden;
    background:radial-gradient(ellipse at center,var(--secondary-bg) 0%,var(--primary-bg) 70%);
}

#main-headline{
    font-family:var(--font-headings);
    font-size:3.5em;
    margin-bottom:20px;
    background:linear-gradient(90deg,var(--accent-purple),var(--accent-blue),var(--accent-purple));
    background-size:200% auto;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-fill-color:transparent;
    animation:gradient-text 5s linear infinite;
    letter-spacing:1px;
}
@keyframes gradient-text{
    0%{background-position:0% center;}
    50%{background-position:200% center;}
    100%{background-position:0% center;}
}

#hero .subtitle{
    font-size:1.3em;
    color:var(--text-secondary);
    margin-bottom:30px;
    max-width:600px;
}

/* Call‑to‑action button */
.cta-button{
    display:inline-block;
    background:linear-gradient(90deg,var(--accent-purple),var(--accent-blue));
    color:#fff;
    padding:12px 30px;
    text-decoration:none;
    border-radius:50px;
    font-weight:bold;
    font-size:1.1em;
    transition:transform .3s ease,box-shadow .3s ease;
    border:none;
    cursor:pointer;
}
.cta-button:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 10px 20px rgba(138,43,226,.4);
}

/* Floating shapes décoratives */
.hero-bg-shapes .shape{
    position:absolute;
    border-radius:50%;
    opacity:.1;
    animation:float 20s linear infinite;
}
.hero-bg-shapes .shape1{width:200px;height:200px;background:var(--accent-purple);left:10%;top:20%;animation-duration:18s;}
.hero-bg-shapes .shape2{width:150px;height:150px;background:var(--accent-blue);right:15%;bottom:15%;animation-duration:22s;animation-delay:-5s;}
.hero-bg-shapes .shape3{width:100px;height:100px;background:var(--accent-purple);left:40%;bottom:30%;animation-duration:25s;animation-delay:-10s;}

@keyframes float{
    0%   {transform:translate(0,0) rotate(0deg);}
    25%  {transform:translate(15px,-20px) rotate(90deg);}
    50%  {transform:translate(-10px,10px) rotate(180deg);}
    75%  {transform:translate(20px,-15px) rotate(270deg);}
    100% {transform:translate(0,0) rotate(360deg);}
}

/* ==================================================================
   SECTIONS GÉNÉRIQUES
   ================================================================== */
.content-section{padding:60px 0;}
.content-section:nth-child(even){background:var(--secondary-bg);}
.content-section h2{
    font-family:var(--font-headings);
    text-align:center;
    font-size:2.5em;
    margin-bottom:40px;
    color:var(--text-primary);
    position:relative;
}
.content-section h2::after{
    content:'';
    display:block;
    width:80px;
    height:3px;
    background:linear-gradient(90deg,var(--accent-purple),var(--accent-blue));
    margin:10px auto 0;
    border-radius:2px;
}

/* ==================================================================
   FEATURES
   ================================================================== */
.features-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}
.feature-card{
    background:var(--card-bg);
    padding:30px;
    border-radius:12px;
    text-align:center;
    border:1px solid rgba(138,43,226,.3);
    box-shadow:0 5px 15px rgba(0,0,0,.3);
    transition:transform .3s ease,box-shadow .3s ease;
    backdrop-filter:blur(5px);   /* glassmorphism */
}
.feature-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 30px var(--glow-color);
}
.feature-icon{width:70px;height:70px;margin-bottom:20px;}
.feature-card h3{
    font-family:var(--font-headings);
    font-size:1.5em;
    margin-bottom:10px;
    color:var(--accent-blue);
}
.feature-card p{color:var(--text-secondary);font-size:.95em;}

/* ==================================================================
   WHY SPYFADE
   ================================================================== */
#why-spyfade .why-spyface-content{
    display:flex;
    align-items:center;
    gap:40px;
}
#why-spyfade .why-spyface-content p{
    flex:2;
    font-size:1.1em;
    color:var(--text-secondary);
    line-height:1.8;
}
.why-spyface-image{
    flex:1;
    max-width:250px;
    border-radius:10px;
    opacity:.8;
    filter:drop-shadow(0 0 15px var(--accent-purple));
}

/* ==================================================================
   DOWNLOAD / NEWSLETTER
   ================================================================== */
#download{text-align:center;}
#download p{margin-bottom:30px;color:var(--text-secondary);}

.newsletter-form{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    max-width:500px;
    margin:0 auto;
}
.newsletter-form input[type="email"]{
    padding:12px 20px;
    border-radius:50px;
    border:1px solid var(--accent-blue);
    background:rgba(255,255,255,.1);
    color:var(--text-primary);
    font-size:1em;
    flex-grow:1;
}
.newsletter-form input[type="email"]::placeholder{color:var(--text-secondary);}
.newsletter-form input[type="email"]:focus{
    outline:none;
    box-shadow:0 0 10px var(--accent-blue);
}

/* ==================================================================
   FOOTER
   ================================================================== */
footer{
    background:#050508;
    color:var(--text-secondary);
    text-align:center;
    padding:30px 0;
    border-top:1px solid rgba(138,43,226,.2);
}
footer a{color:var(--accent-blue);text-decoration:none;}
footer a:hover{text-decoration:underline;}

/* ==================================================================
   SCROLL ANIMATIONS
   ================================================================== */
.animate-on-scroll{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .6s ease-out,transform .6s ease-out;
}
.animate-on-scroll.is-visible{
    opacity:1;
    transform:translateY(0);
}

/* ==================================================================
   RESPONSIVE (≤ 768 px)
   ================================================================== */
@media (max-width:768px){
    header .container{flex-direction:column;gap:10px;}
    header nav{margin-top:10px;}
    header nav a{margin:0 10px;}

    #main-headline{font-size:2.5em;}
    #hero .subtitle{font-size:1.1em;}
    .cta-button{padding:10px 25px;font-size:1em;}

    .content-section h2{font-size:2em;}

    .features-grid{grid-template-columns:1fr;} /* stack */

    #why-spyfade .why-spyface-content{
        flex-direction:column;
        text-align:center;
    }
    .why-spyface-image{
        margin-top:20px;
        max-width:200px;
    }

    .newsletter-form{flex-direction:column;}
    .newsletter-form input[type="email"]{
        width:100%;
        margin-bottom:10px;
    }
}
