/* --- BORDONI: PROJECT OMEGA SYSTEM (FINAL 3.0) --- */

/* 1. IMPORTS & VARIABILI */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #050505;
    --text-main: #ffffff;
    --text-muted: #999999;
    
    /* UI Elements */
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --highlight: rgba(255, 255, 255, 0.15);
    
    /* Neon Palette */
    --blue: #2E5CFF;
    --purple: #9D00FF;
    --orange: #FF5C00;
    --green: #00FF94;
    
    /* Animation settings */
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 2. RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Satoshi', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 3. BACKGROUNDS */
.perspective-grid {
    position: fixed; bottom: -40%; left: -50%; width: 200%; height: 100%;
    background-image: 
        linear-gradient(rgba(46, 92, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 92, 255, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(400px) rotateX(75deg);
    z-index: -3;
    mask-image: linear-gradient(to top, black 0%, transparent 60%);
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}
@keyframes grid-move { 0% { background-position: 0 0; } 100% { background-position: 0 40px; } }

.ambient {
    position: fixed; top: -20%; left: 0; width: 100%; height: 120%;
    background: radial-gradient(circle at 50% 0%, rgba(46, 92, 255, 0.15), transparent 70%);
    z-index: -1; pointer-events: none;
    animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe { 0% { opacity: 0.4; transform: scale(1); } 100% { opacity: 0.8; transform: scale(1.1); } }

.particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2; z-index: -2; pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
}

/* 4. CUSTOM CURSOR */
.cursor-dot { width: 6px; height: 6px; background: white; position: fixed; border-radius: 50%; z-index: 10000; pointer-events: none; mix-blend-mode: exclusion; }
.cursor-glow { width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%); position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999; }

/* 5. HEADER & NAV */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: 0.3s;
    background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; color: white; display: flex; align-items: center; gap: 5px; }

.desktop-nav { display: flex; gap: 30px; }
.nav-link { color: #888; font-size: 0.95rem; font-weight: 500; transition: 0.3s; }
.nav-link:hover, .nav-link.active { color: white; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-header { padding: 10px 24px; background: white; color: black; border-radius: 6px; font-weight: 700; font-size: 0.9rem; transition: 0.3s; }
.btn-header:hover { background: #e0e0e0; transform: translateY(-2px); }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--border); color: white; font-size: 1.5rem; padding: 6px 10px; border-radius: 6px; cursor: pointer; }

/* MOBILE MENU */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(5,5,5,0.98); backdrop-filter: blur(20px);
    z-index: 999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-links { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-link { font-size: 2rem; font-weight: 700; color: #888; transition: 0.3s; }
.mobile-link:hover, .mobile-link.highlight { color: white; letter-spacing: -1px; }
.mobile-link.highlight { color: var(--blue); }

/* 6. LAYOUT & TYPO */
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 0; }
.section-py { padding: 120px 0; }
.text-center { text-align: center; }

/* FIX VISIBILITÀ TITOLO "NON DORME MAI" */
.text-gradient { 
    background: linear-gradient(135deg, #00C6FF 0%, #9D00FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(0, 198, 255, 0.4));
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 25px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; margin-bottom: 40px; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 15px; color: white; }
p.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px auto; }

/* 7. COMPONENTS */
.badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px; border: 1px solid rgba(46,92,255,0.3); padding: 6px 16px; border-radius: 50px; background: rgba(46,92,255,0.08); }
.status-pulse { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }

.glass-panel {
    background: rgba(20, 20, 20, 0.6); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px; backdrop-filter: blur(12px);
    position: relative; overflow: hidden; transition: 0.4s var(--ease);
}

.btn-hero { padding: 16px 32px; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: white; border: 1px solid var(--border); background: var(--glass); transition: 0.3s; cursor: pointer; }
.btn-hero:hover { border-color: var(--blue); background: rgba(46, 92, 255, 0.1); transform: translateY(-2px); }
.btn-hero.primary { background: white; color: black; border-color: white; }
.btn-hero.primary:hover { background: #e6e6e6; }

.input-field { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 15px; border-radius: 8px; color: white; outline: none; font-family: inherit; transition: 0.3s; }
.input-field:focus { border-color: var(--blue); background: rgba(0,0,0,0.5); }

/* 8. COMPARISON TABLE (MOBILE FIXED) */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Scorrimento orizzontale */
    -webkit-overflow-scrolling: touch; /* Fluido su iPhone */
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #0a0a0a;
    position: relative;
    margin-bottom: 20px;
}

.comparison-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 1px; 
    background: var(--border); 
    min-width: 700px; /* FORZA la larghezza minima: se lo schermo è più piccolo, SCORRE */
}

.comp-cell { background: #0a0a0a; padding: 25px; text-align: center; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.comp-cell.start { justify-content: flex-start; color: #aaa; font-weight: 500; text-align: left; padding-left: 30px; }
.comp-header { font-weight: 700; font-size: 1rem; color: white; background: #111; letter-spacing: 1px; text-transform: uppercase; }
.comp-highlight { background: rgba(46, 92, 255, 0.04); color: var(--blue); font-weight: 700; }

.scroll-hint { display: none; text-align: center; color: var(--blue); font-size: 0.8rem; margin-top: 10px; font-weight: 700; animation: pulse 2s infinite; }

/* 9. PRICING CARDS */
.pricing-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto 80px auto; }
.pricing-card { background: rgba(15,15,15,0.6); border: 1px solid var(--border); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); position: relative; display: flex; flex-direction: column; transition: all 0.4s; }
.pricing-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

.pricing-card.pro { border: 1px solid var(--blue); background: linear-gradient(180deg, rgba(46,92,255,0.08) 0%, rgba(10,10,10,0.9) 100%); }
.pricing-card.pro:hover { box-shadow: 0 0 60px rgba(46, 92, 255, 0.15); }

.pro-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: white; padding: 6px 18px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(46, 92, 255, 0.4); }

.plan-header { margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
.plan-name { font-size: 1.1rem; color: #888; margin-bottom: 15px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }
.plan-price { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1; display: flex; align-items: baseline; gap: 5px; }
.period { font-size: 1rem; color: #666; font-weight: 500; }
.plan-desc { color: #888; margin-top: 15px; font-size: 0.95rem; line-height: 1.5; }

.plan-features { margin-bottom: 40px; flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 12px; color: #ccc; margin-bottom: 18px; font-size: 0.95rem; }
.plan-features i { color: var(--blue); font-size: 1.2rem; margin-top: 2px; }

.btn-price { display: flex; justify-content: center; align-items: center; width: 100%; padding: 16px; border-radius: 8px; font-weight: 700; border: 1px solid var(--border); color: white; transition: 0.3s; background: transparent; }
.btn-price:hover { background: white; color: black; }
.btn-pro { background: var(--blue); border: none; box-shadow: 0 10px 30px rgba(46, 92, 255, 0.2); }
.btn-pro:hover { background: #4b7bff; color: white; transform: translateY(-2px); box-shadow: 0 15px 40px rgba(46, 92, 255, 0.4); }

/* 10. FAQ */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.faq-head { padding: 25px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 500; transition: color 0.3s; }
.faq-head:hover { color: var(--blue); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-content { padding-bottom: 30px; color: #999; line-height: 1.6; font-size: 0.95rem; }
.faq-icon { transition: transform 0.3s ease; font-size: 1.2rem; }
.faq-item.active .faq-body { max-height: 300px; }
.faq-item.active .faq-head { color: var(--blue); }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* 11. DEMO ORB */
.orb { width: 90px; height: 90px; background: radial-gradient(circle at 30% 30%, var(--blue), #000); border-radius: 50%; box-shadow: 0 0 30px var(--blue); transition: all 0.5s ease; z-index: 10; }
.orb.speaking { transform: scale(1.15); background: radial-gradient(circle at 30% 30%, var(--purple), #000); box-shadow: 0 0 50px var(--purple); animation: pulse-speak 0.4s infinite alternate; }
.orb.listening { transform: scale(0.9); background: radial-gradient(circle at 30% 30%, var(--green), #000); box-shadow: 0 0 30px var(--green); }
@keyframes pulse-speak { 0% { transform: scale(1.1); } 100% { transform: scale(1.2); } }
.orb-waves { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100px; height: 100px; border-radius: 50%; border: 1px solid rgba(157, 0, 255, 0.3); opacity: 0; z-index: 1; }
.orb.speaking + .orb-waves { animation: waves 2s infinite linear; }
@keyframes waves { 0% { width: 100px; height: 100px; opacity: 0.8; border-width: 2px; } 100% { width: 300px; height: 300px; opacity: 0; border-width: 0px; } }

/* 12. UTILS */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* 13. RESPONSIVE */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .btn-header { display: none; } 
    h1 { font-size: 2.8rem; }
    .section-center { padding: 100px 0; }
    .pricing-container { grid-template-columns: 1fr; }
    .scroll-hint { display: block; } /* Mostra la scritta Scorri su mobile */
}

/* --- COOKIE BANNER (FIX DEFINITIVO) --- */
.cookie-banner {
    position: fixed; bottom: 20px; right: 20px; left: 20px;
    background: rgba(10, 10, 10, 0.98); /* Sfondo quasi solido per leggibilità */
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 16px;
    z-index: 20000; /* Altissimo */
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.9);
    transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    max-width: 600px; margin: 0 auto;
    
    /* REGOLE CRITICHE PER IL CURSORE */
    cursor: auto !important; /* Ripristina il cursore di sistema */
    pointer-events: auto !important; /* Assicura che si possa cliccare */
}

/* Quando il banner appare */
.cookie-banner.show { transform: translateY(0); }

/* Testo */
.cookie-content p { color: #ccc; font-size: 0.9rem; margin: 0; cursor: auto !important; }

/* Link privacy */
.cookie-banner a { 
    color: var(--blue); text-decoration: underline; 
    cursor: pointer !important; /* Manina sul link */
}

/* Bottone */
.btn-cookie {
    background: white; color: black; border: none;
    padding: 10px 20px; border-radius: 50px;
    font-weight: 700; 
    cursor: pointer !important; /* Manina sul bottone */
    transition: 0.3s;
}
.btn-cookie:hover { background: var(--blue); color: white; }

/* --- FOOTER PRO DESIGN --- */
.main-footer {
    background: #020202; /* Più scuro del resto per staccare */
    border-top: 1px solid var(--border);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* La prima colonna è più larga */
    gap: 40px;
    margin-bottom: 60px;
}

/* Colonna Brand */
.footer-logo { font-weight: 900; font-size: 1.5rem; color: white; margin-bottom: 20px; display: block; letter-spacing: 1px; }
.footer-desc { color: #888; line-height: 1.6; margin-bottom: 25px; max-width: 300px; }

/* Social Icons */
.footer-social { display: flex; gap: 15px; }
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 50%; color: white; transition: 0.3s;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

/* Titoli Colonne */
.footer-col h4 { font-size: 0.9rem; color: white; margin-bottom: 25px; letter-spacing: 1px; font-weight: 700; }

/* Link Liste */
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #888; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--blue); transform: translateX(5px); } /* Effetto slide a destra */

/* Info Contatti */
.footer-info li { display: flex; align-items: flex-start; gap: 10px; color: #888; margin-bottom: 15px; line-height: 1.4; }
.footer-info i { color: var(--blue); margin-top: 3px; }

/* Footer Bottom (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    color: #666; font-size: 0.85rem;
}

.system-status { display: flex; align-items: center; gap: 8px; color: #888; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }

/* RESPONSIVE FOOTER */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; } /* 2 colonne su tablet */
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; } /* 1 colonna su mobile */
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-desc { max-width: 100%; }
}

/* --- FIX MOBILE (Incolla alla fine di style.css) --- */

@media (max-width: 991px) {
    /* 1. NASCONDE IL PUNTINO SUI TOUCH SCREEN */
    .cursor-dot, .cursor-glow {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* 2. SISTEMAZIONI GENERALI LAYOUT */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    
    /* Evita che le card escano dallo schermo */
    .glass-panel, .step-card, .identity-card, .pricing-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* --- CURSORE PERSONALIZZATO --- */
.cursor-dot,
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none; /* Fondamentale: permette di cliccare attraverso il cursore */
    z-index: 9999;
    
    /* Questo serve per l'animazione di sparizione */
    opacity: 1;
    transition: opacity 0.3s ease; 
}

/* Stile del puntino */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

/* Stile dell'alone */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 92, 255, 0.15), transparent 70%);
}

/* Classe per nasconderlo */
.cursor-hidden {
    opacity: 0 !important;
}

/* Nascondi su mobile */
@media (max-width: 991px) {
    .cursor-dot, .cursor-glow { display: none !important; }
}