/* =========================================================
   CHRYSAMANDE - SYNTHWAVE 80's LANDING PAGE
   PARTIE 2 : STYLE.CSS
========================================================= */

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #050010;
    color: white;
    overflow-x: hidden;
}

/* =========================================================
   SCENE BACKGROUND (SUN + GRID + STARS)
========================================================= */

.scene {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
}

/* ===== SUN ===== */
.sun {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff2ad4, #ff006a, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(2px);
    animation: pulseSun 6s infinite ease-in-out;
    box-shadow:
        0 0 60px #ff2ad4,
        0 0 120px #ff006a;
}

@keyframes pulseSun {
    0%,100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* ===== GRID FLOOR (OUTRUN STYLE) ===== */
.grid {
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 200%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(0,229,255,0.3) 1px, transparent 1px),
        linear-gradient(to top, rgba(255,0,136,0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: moveGrid 3s linear infinite;
    opacity: 0.5;
}

@keyframes moveGrid {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* ===== STARS ===== */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.2;
    animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

/* =========================================================
   VHS OVERLAY (GRAIN + SCANLINES + GLITCH)
========================================================= */

.vhs-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;

    /* scanlines */
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.03) 1px,
        transparent 2px,
        transparent 4px
    );

    animation: flicker 0.15s infinite;
    mix-blend-mode: overlay;
}

@keyframes flicker {
    0% { opacity: 0.9; }
    50% { opacity: 0.7; }
    100% { opacity: 0.95; }
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.container {
    position: relative;
    max-width: 420px;
    margin: auto;
    padding: 60px 20px;
    text-align: center;
}

/* =========================================================
   LOGO + TITLE
========================================================= */

.logo {
    width: 120px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px #ff2ad4);
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 34px;
    letter-spacing: 4px;
    text-shadow:
        0 0 10px #ff2ad4,
        0 0 20px #00e5ff;
}

.subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 10px;
}

/* =========================================================
   GLITCH EFFECT
========================================================= */

.glitch:hover {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { text-shadow: 2px 0 #ff2ad4, -2px 0 #00e5ff; }
    25% { text-shadow: -2px -1px #ff2ad4, 2px 1px #00e5ff; }
    50% { text-shadow: 1px 2px #ff2ad4, -1px -2px #00e5ff; }
    100% { text-shadow: none; }
}

/* =========================================================
   BUTTONS NEON
========================================================= */

.btn {
    display: block;
    margin: 12px 0;
    padding: 14px;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    background: linear-gradient(90deg, #ff2ad4, #00e5ff);
    box-shadow: 0 0 15px rgba(255, 42, 212, 0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #00e5ff;
}

/* CTA SPECIAL */
.primary {
    font-size: 16px;
    background: linear-gradient(90deg, #ff006a, #00e5ff);
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* =========================================================
   SPOTIFY BOX
========================================================= */

.spotify-box {
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,229,255,0.4);
}

/* =========================================================
   PATREON SECTION
========================================================= */

.patreon {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid rgba(255, 42, 212, 0.4);
    border-radius: 15px;
    background: rgba(10,0,20,0.6);
    box-shadow: 0 0 25px rgba(255, 0, 106, 0.2);
}

.patreon h2 {
    color: #ff2ad4;
    text-shadow: 0 0 10px #ff2ad4;
}

.patreon-btn {
    margin-top: 15px;
}

/* =========================================================
   TRILOGY SECTION
========================================================= */

.trilogy {
    margin-top: 40px;
    padding: 20px;
}

.trilogy h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff;
}

.progress-bar {
    margin-top: 15px;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, #ff2ad4, #00e5ff);
    box-shadow: 0 0 10px #00e5ff;
}

/* =========================================================
   SOCIAL FOOTER
========================================================= */

.socials {
    margin-top: 40px;
}

.socials a {
    margin: 0 10px;
    font-size: 13px;
    opacity: 0.7;
    color: white;
    text-decoration: none;
}

.socials a:hover {
    opacity: 1;
    text-shadow: 0 0 10px #ff2ad4;
}

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

@media (max-width: 600px) {
    .title {
        font-size: 26px;
    }

    .sun {
        width: 200px;
        height: 200px;
    }
}