/* Caricamento Font demandato all'HTML (Google Fonts via Bunny Fonts o Iubenda Compliant) */

/* Variabili CSS di base */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --neon-cyan: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-blue: #0051ff;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Reset e Setup Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    position: relative;
    max-width: 100vw;
}

/* Isolamento Overflow per Mobile/iOS */
.app-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: var(--neon-cyan);
    color: var(--bg-color);
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.cursor-glow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 243, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    /* Altezza ottimizzata per la navbar */
    width: auto;
    filter: invert(1);
    /* Magia: trasforma il logo nero in bianco puro! */
    transition: all 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
    filter: invert(1) drop-shadow(0 0 10px rgba(0, 243, 255, 0.6));
    /* Aggiunge un lieve bagliore neon al logo */
}

/* Rimosso vecchio stile testuale */

.cta-nav {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 8px 24px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cta-nav:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
}

/* Typography & Neons */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: 1px;
    /* Sicurezza base per distanziare le lettere ed evitare accavallamenti */
}

.neon-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-cyan);
    position: relative;
    /* Strati morbidi e sfumati ripresi dall'originale per fare effetto neon cavo */
    text-shadow:
        0 0 10px rgba(0, 243, 255, 0.4),
        0 0 20px rgba(0, 243, 255, 0.2);
    letter-spacing: 2px;
    /* FIX SPERIMENTALI PER IL GLITCH DEI BORDI VETTORIALI CHE SI SOVRAPPONGONO SU MOBILE WEBKIT */
    paint-order: stroke fill;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Animazione Pulsante Testo Neon */
@keyframes neonPulseText {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.2), 0 0 20px rgba(0, 243, 255, 0.2);
    }

    50% {
        text-shadow: 0 0 15px rgba(0, 243, 255, 0.6), 0 0 30px rgba(0, 243, 255, 0.4);
    }
}

.neon-text {
    animation: neonPulseText 3s infinite alternate;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 60px;
    /* Spazio protetto per navbar sopra e respiro sotto */
    position: relative;
    box-sizing: border-box;
    /* Essenziale per evitare che il padding aggiunga altezza */
}

.hero-content {
    width: 100%;
    /* Forza l'occupazione completa dello spazio per un centraggio infallibile */
    max-width: 900px;
    z-index: 10;
    padding: 0 20px;
}

.subtitle {
    color: var(--neon-cyan);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    /* Reso perfettamente scalabile anche su schermi mobili molto stretti */
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.description {
    color: var(--text-muted);
    font-size: 1.25rem;
    /* Testo leggermente più grande e leggibile */
    max-width: 650px;
    margin: 0 auto 50px auto;
    font-weight: 300;
}

.cta-main {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--neon-cyan);
    padding: 16px 40px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1), 0 0 20px rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    transition: all 0.5s ease;
}

.cta-main:hover::before {
    left: 100%;
}

.cta-main:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.2), 0 0 40px rgba(0, 243, 255, 0.4);
}

/* Background EL-Wires */
.el-wire {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out;
    pointer-events: none;
    /* Impedisce che il browser creda ci sia uno scroll se l'animazione esce dallo schermo */
}

.wire-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.wire-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    bottom: 20%;
    right: -50px;
    animation-delay: -3s;
}

.wire-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -6s;
    opacity: 0.3;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Ecosystem Section */
.ecosystem {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px 30px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card:hover .glow-cyan svg {
    filter: drop-shadow(0 0 15px var(--neon-cyan));
    transform: scale(1.1);
}

.card:hover .glow-purple svg {
    filter: drop-shadow(0 0 15px var(--neon-purple));
    transform: scale(1.1);
}

.card:hover .glow-blue svg {
    filter: drop-shadow(0 0 15px var(--neon-blue));
    transform: scale(1.1);
}

.card-icon {
    display: inline-flex;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.card-icon svg {
    transition: filter 0.4s ease, transform 0.4s ease;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Launch Section */
.launch-project {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Taglia inesorabilmente i gradienti rotanti se escono dallo schermo su iOS */
    width: 100%;
}

.launch-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-side {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.neon-badge {
    background: rgba(157, 0, 255, 0.1);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.2);
}

.text-side h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.text-side p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list span {
    background: var(--glass-bg);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.jacket-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.jacket-placeholder p {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

/* Animazione filo EL sulla giacca */
.jacket-wire {
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, var(--neon-cyan) 90deg, transparent 180deg);
    animation: spinWire 4s linear infinite;
    opacity: 0.4;
}

.jacket-wire-glow {
    position: absolute;
    inset: 2px;
    background: #0a0a0a;
    border-radius: 18px;
    z-index: 1;
}

@keyframes spinWire {
    100% {
        transform: rotate(360deg);
    }
}

/* Waitlist Section */
.waitlist-section {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto 100px auto;
    position: relative;
    z-index: 10;
}

.waitlist-box {
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 243, 255, 0.05);
}

.waitlist-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.waitlist-box p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 5px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.neon-button {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 0 30px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: none;
    /* override per il custom cursor */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.neon-button:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gdpr-consent input[type="checkbox"] {
    margin-top: 4px;
    cursor: auto !important;
}

.gdpr-consent a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.gdpr-consent a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: var(--neon-cyan);
}

/* Animations Classes per JS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.cascade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive & Touch Devices */
@media (pointer: coarse) {

    /* Su dispositivi touch (telefoni/tablet) disabilitiamo il custom cursor */
    .cursor-dot,
    .cursor-glow {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
        margin: 0 auto;
        padding: 10px 15px;
    }

    .hero {
        padding: 120px 15px 40px;
    }

    .title {
        letter-spacing: 0px;
        /* Evita l'accavallamento delle lettere su schermi stretti */
    }

    .ecosystem,
    .launch-project,
    .waitlist-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .launch-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
        /* Centra le icone della lista su mobile */
        text-align: left;
    }

    .input-group {
        flex-direction: column;
    }

    .neon-button {
        padding: 15px;
    }

    .waitlist-box {
        padding: 40px 20px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}