/* Approccio Mobile First! Le regole base servono per lo smartphone, poi ci espandiamo ai display grandi tramite media queries. */
:root {
    --bg-dark: #0b011d; /* Blu notte profondo */
    --bg-card: #1f0845;
    --text-main: #f5f5f5; /* Grigio chiaro per massima leggibilità */
    --text-muted: #bda8d6;
    --neon-fuchsia: #f700ff; /* Colore primario brand (fuchsia/magenta brillante) */
    --neon-glow: rgba(247, 0, 255, 0.4);
    --font-main: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Un leggero accenno di bagliore sullo sfondo per rendere l'aspetto notturno più dinamico */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(247, 0, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(247, 0, 255, 0.05), transparent 25%);
}

.header {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stile del Logo reale */
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-neon {
    color: var(--neon-fuchsia);
    /* L'effetto fluorescente glow */
    text-shadow: 0 0 15px var(--neon-glow);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Call To Action Form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    gap: 1rem;
}

.email-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(5px);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    border-color: var(--neon-fuchsia);
    box-shadow: 0 0 10px rgba(247, 0, 255, 0.1);
}

.btn-neon {
    width: 100%;
    background: var(--neon-fuchsia);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--neon-glow);
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--neon-glow);
    background: #ff33ff; /* fuchsia ancora più chiaro via hover */
}

/* About Section & Features */
.about {
    padding: 4rem 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-intro p {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Stile per gli screenshot dell'app (reali) */
.app-mockup {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    /* Ombra profonda e un debole glow del brand per fondersi nel dark mode */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(247, 0, 255, 0.15); 
    transition: transform 0.3s ease;
}

.app-mockup:hover {
    transform: translateY(-5px);
}

/* Footer Section */
.footer {
    background: #080214;
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(247, 0, 255, 0.1);
    text-align: center;
}

.footer-cta {
    margin-bottom: 3rem;
}

.footer-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--neon-fuchsia);
    box-shadow: 0 0 15px var(--neon-glow);
}

.privacy-link {
    color: var(--text-muted);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--neon-fuchsia);
}

/* Animazioni base di fade-in allo scroll */
.hidden-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-animate.show {
    opacity: 1;
    transform: translateY(0);
}


/* ======= SCALA PER DESKTOP E TABLET ======= */

@media (min-width: 768px) {
    .header {
        padding: 2rem;
    }

    .logo-img {
        height: 70px;
    }

    .hero {
        min-height: 80vh;
        max-width: 900px;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        max-width: 700px;
    }

    /* Waitlist Form Desktop orizzontale */
    .waitlist-form {
        flex-direction: row;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        padding: 0.5rem;
        gap: 0;
    }

    .email-input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 1rem 1.5rem;
    }

    .email-input:focus {
        box-shadow: none; /* Il glow in formato desktop andrebbe ad agire sul parent, togliamolo dall'input in questa visualizzazione */
    }

    .btn-neon {
        width: auto;
    }

    /* Features Grid (Layout Alternato Zig-Zag Desktop) */
    .about {
        padding: 6rem 2rem;
    }

    .about-intro h2 {
        font-size: 2.5rem;
    }

    .about-intro p {
        font-size: 1.2rem;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
        justify-content: space-between;
    }

    .feature-item.reverse {
        flex-direction: row-reverse;
    }

    .feature-text {
        flex: 1;
    }

    .feature-text h3 {
        font-size: 2rem;
    }

    .feature-text p {
        font-size: 1.1rem;
    }

    .feature-image {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .app-mockup {
        max-width: 320px;
        border-radius: 30px;
    }

    /* Footer adjustments */
    .footer-cta h2 {
        font-size: 2rem;
    }
    
    .footer-cta .waitlist-form {
        margin: 0 auto; /* Centra il form se il flex layout lo estende */
    }
}
