/* ==========================================================================
   1. CONFIGURAZIONE
   ========================================================================== */
:root {
    --bg-body: #050505;
    --bg-card: rgba(10, 10, 10, 0.7); 
    --border: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
    --text-main: #ececec;
    --text-muted: #888;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { 
    height: 100%; width: 100%; margin: 0; padding: 0; 
    overflow: hidden; /* Blocca lo scroll nativo, usa il container */
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-ui);
    background: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #050505 80%);
}

a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }

/* --- STELLE CADENTI --- */
.stars-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
}

#stars {
    width: 1px; height: 1px; background: transparent;
    box-shadow: 1744px 122px #FFF, 134px 1321px #FFF, 162px 324px #FFF, 876px 1265px #FFF, 1832px 1324px #FFF, 173px 1624px #FFF, 1345px 234px #FFF, 734px 1632px #FFF, 134px 362px #FFF, 632px 362px #FFF, 1356px 835px #FFF, 235px 1235px #FFF, 632px 152px #FFF, 1734px 632px #FFF, 835px 234px #FFF, 1200px 900px #FFF, 400px 600px #FFF, 900px 100px #FFF, 50px 500px #FFF, 1600px 400px #FFF, 200px 800px #FFF, 1400px 100px #FFF, 300px 300px #FFF, 1100px 1100px #FFF;
    animation: animStar 100s linear infinite;
}
#stars::after {
    content: " "; position: absolute; top: -2000px; width: 1px; height: 1px; background: transparent;
    box-shadow: 1744px 122px #FFF, 134px 1321px #FFF, 162px 324px #FFF, 876px 1265px #FFF, 1832px 1324px #FFF, 173px 1624px #FFF, 1345px 234px #FFF, 734px 1632px #FFF, 134px 362px #FFF, 632px 362px #FFF, 1356px 835px #FFF, 235px 1235px #FFF, 632px 152px #FFF, 1734px 632px #FFF, 835px 234px #FFF, 1200px 900px #FFF, 400px 600px #FFF, 900px 100px #FFF, 50px 500px #FFF, 1600px 400px #FFF, 200px 800px #FFF, 1400px 100px #FFF, 300px 300px #FFF, 1100px 1100px #FFF;
}

#stars2 {
    width: 2px; height: 2px; background: transparent;
    box-shadow: 1324px 632px #FFF, 234px 1734px #FFF, 1324px 362px #FFF, 152px 234px #FFF, 734px 1532px #FFF, 234px 632px #FFF, 1832px 152px #FFF, 734px 835px #FFF, 362px 1734px #FFF, 1356px 234px #FFF, 900px 400px #FFF, 200px 100px #FFF, 1500px 900px #FFF, 500px 200px #FFF;
    animation: animStar 70s linear infinite;
}
#stars2::after {
    content: " "; position: absolute; top: -2000px; width: 2px; height: 2px; background: transparent;
    box-shadow: 1324px 632px #FFF, 234px 1734px #FFF, 1324px 362px #FFF, 152px 234px #FFF, 734px 1532px #FFF, 234px 632px #FFF, 1832px 152px #FFF, 734px 835px #FFF, 362px 1734px #FFF, 1356px 234px #FFF, 900px 400px #FFF, 200px 100px #FFF, 1500px 900px #FFF, 500px 200px #FFF;
}

#stars3 {
    width: 3px; height: 3px; background: transparent;
    box-shadow: 734px 1324px #FFF, 152px 1356px #FFF, 362px 234px #FFF, 152px 734px #FFF, 1000px 200px #FFF, 400px 900px #FFF;
    animation: animStar 40s linear infinite;
}
#stars3::after {
    content: " "; position: absolute; top: -2000px; width: 3px; height: 3px; background: transparent;
    box-shadow: 734px 1324px #FFF, 152px 1356px #FFF, 362px 234px #FFF, 152px 734px #FFF, 1000px 200px #FFF, 400px 900px #FFF;
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(2000px); }
}

/* ==========================================================================
   SCROLL SNAP PERFETTO
   ========================================================================== */
.scroll-container {
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    /* Snap obbligatorio sull'asse Y */
    scroll-snap-type: y mandatory;
    /* Comportamento fluido */
    scroll-behavior: smooth;
    position: relative; z-index: 1;
}

.snap-section {
    height: 100vh;
    width: 100%;
    /* Forza lo stop su ogni sezione: Niente scorrimento libero */
    scroll-snap-align: start;
    scroll-snap-stop: always; 
    
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 80px 20px; background: transparent; position: relative;
}

/* --- NAVBAR --- */
.landing-nav {
    position: absolute; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 40px 60px; background: transparent; z-index: 1000;
}
.nav-left { font-family: var(--font-mono); font-weight: 700; color: #fff; font-size: 1.2rem; letter-spacing: 1px; }
.nav-right { display: flex; gap: 40px; align-items: center; }
.nav-item { font-size: 0.9rem; color: rgba(255,255,255,0.5); font-weight: 500; transition: 0.3s; }
.nav-item:hover { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.8); transform: translateY(-2px); }
.btn-nav-minimal {
    color: #fff; font-size: 0.9rem; font-weight: 600; padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
}
.btn-nav-minimal:hover { background: #fff; color: #000; transform: scale(1.05); }

/* --- HERO --- */
.hero-content { text-align: center; max-width: 900px; animation: fadeInUp 1s var(--ease); }
.main-title {
    font-size: 6rem; font-weight: 800; line-height: 0.95; margin-bottom: 30px; padding-bottom: 15px;
    background: linear-gradient(to right, #FFFFFF 30%, rgba(255, 255, 255, 0.4) 100%);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.15));
}
.hero-desc { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-group { display: flex; gap: 20px; justify-content: center; }
.btn-hero { background: #fff; color: #000; padding: 18px 45px; border-radius: 50px; font-weight: 800; font-size: 1rem; cursor: pointer; letter-spacing: 1px; }
.btn-hero:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: #fff; padding: 18px 45px; border-radius: 50px; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); font-size: 1rem; backdrop-filter: blur(5px); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.15); }

/* --- FEATURES --- */
.features-wrapper { max-width: 1100px; width: 100%; display: flex; flex-direction: column; gap: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); padding: 30px 20px;
    border-radius: 16px; text-align: center; transition: all 0.3s var(--ease); backdrop-filter: blur(12px);
}
.feature-card:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-5px); background: rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.feature-card .icon { font-size: 2rem; margin-bottom: 15px; filter: grayscale(100%) brightness(300%); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; font-weight: 700; }
.feature-card p { color: #888; line-height: 1.4; font-size: 0.85rem; }
.tech-grid { display: flex; justify-content: space-around; width: 100%; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.tech-item { text-align: center; }
.tech-num { display: block; font-size: 3rem; font-weight: 800; color: #fff; font-family: var(--font-mono); margin-bottom: 5px; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.tech-label { color: #888; text-transform: uppercase; letter-spacing: 2px; font-size: 0.75rem; font-weight: 600; }

/* --- TRUST --- */
.trust-section { background: transparent; justify-content: space-between; }
.trust-wrapper-split { display: flex; justify-content: center; align-items: center; gap: 80px; width: 100%; max-width: 1000px; flex-grow: 1; }
.trust-left { text-align: left; max-width: 400px; animation: fadeInUp 1s var(--ease); }
.trust-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; background: linear-gradient(to right, #fff, #888); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.trust-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 50px; }
.customer-badge { display: flex; flex-direction: column; align-items: flex-start; background: transparent; border: none; padding: 0; }
.cust-num { font-family: var(--font-mono); font-size: 5rem; font-weight: 800; color: #fff; line-height: 1; text-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
.cust-text { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-top: 10px; padding-left: 5px; }
.trust-right { text-align: left; background: rgba(20, 20, 20, 0.4); padding: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); animation: fadeInUp 1.2s var(--ease); }
.payments-grid { display: flex; flex-direction: column; gap: 15px; width: 250px; }
.pay-card { padding: 15px 20px; border: 1px solid #333; border-radius: 8px; color: #ccc; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; transition: all 0.3s; cursor: default; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: space-between; }
.pay-card::after { content: "→"; opacity: 0; transition: 0.2s; }
.pay-card:hover { color: #fff; border-color: #fff; transform: translateX(5px); }
.pay-card:hover::after { opacity: 1; }
.home-footer { width: 100%; text-align: center; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 15px; }
.footer-links a { color: #666; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.copy { color: #444; font-size: 0.75rem; font-family: var(--font-mono); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
/* ==========================================================================
   STILE BLOCCHI CODICE (PAGINA API)
   ========================================================================== */
.code-block {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s var(--ease);
}

.code-header {
    background: #1a1a1a;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
    border-bottom: 1px solid #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

pre {
    margin: 0;
    padding: 20px;
    color: #00ffcc; /* Verde Terminale */
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* Stile per Pricing Table */
.pricing-wrapper {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
    max-width: 1200px; margin: 50px auto; padding-bottom: 50px;
}

.price-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 300px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    display: flex; flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: #fff;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1);
}

.price-card.featured {
    border: 1px solid #00ffcc;
    background: rgba(0, 255, 204, 0.05);
}

.badge-best {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: #00ffcc; color: #000; padding: 5px 15px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}

.plan-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.plan-price { font-family: 'JetBrains Mono'; font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.plan-price span { font-size: 1rem; color: #888; font-weight: 400; }

.features { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; flex-grow: 1; }
.features li { margin-bottom: 12px; font-size: 0.9rem; color: #ccc; display: flex; align-items: center; gap: 10px; }
.features li::before { content: "✓"; color: #00ffcc; font-weight: bold; }
.features li.disabled { color: #555; text-decoration: line-through; }
.features li.disabled::before { content: "✕"; color: #555; }

.btn-price {
    display: block; width: 100%; padding: 12px; border-radius: 8px;
    font-weight: 700; text-decoration: none; transition: 0.2s; text-transform: uppercase; letter-spacing: 1px;
}

.btn-outline { border: 1px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: #000; }

.btn-fill { background: #fff; color: #000; border: none; }
.btn-fill:hover { background: #e0e0e0; }


.code-block {
    background: #0a0a0a; border: 1px solid #333; border-radius: 12px; padding: 20px;
    font-family: 'JetBrains Mono'; font-size: 0.8rem; color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); width: 100%;
}
.code-header { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 10px; color: #666; font-size: 0.7rem; }
 pre { margin: 0; white-space: pre-wrap; color: #ccc; }
.hl { color: #00ffcc; } /* Highlight */

/* Stili specifici per le card prezzi */
        .pricing-wrapper { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1200px; width:100%; margin-top: 50px; }
        
        .price-card {
            background: rgba(20, 20, 20, 0.6); border: 1px solid rgba(255,255,255,0.1);
            padding: 40px; border-radius: 20px; width: 300px; text-align: center;
            backdrop-filter: blur(10px); transition: 0.3s; position: relative;
            display: flex; flex-direction: column;
        }
        .price-card:hover { transform: translateY(-10px); border-color: #fff; box-shadow: 0 20px 50px rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); }
        
        .price-card.featured { border: 1px solid #fff; background: rgba(255,255,255,0.08); }
        .badge-best {
            position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
            background: #fff; color: #000; padding: 5px 15px; font-size: 0.7rem; font-weight: 800; border-radius: 20px; letter-spacing: 1px;
        }

        .plan-title { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
        .plan-price { font-family: 'JetBrains Mono'; font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
        .plan-price span { font-size: 1rem; color: #888; font-weight: 400; }
        
        .features { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; flex-grow: 1; }
        .features li { margin-bottom: 15px; font-size: 0.9rem; color: #ccc; display: flex; align-items: center; gap: 10px; }
        .features li::before { content: "✓"; color: #fff; font-weight: bold; }
        .features li.disabled { color: #555; text-decoration: line-through; }
        .features li.disabled::before { content: "✕"; color: #555; }
        
        .btn-price {
            display: block; width: 100%; padding: 14px; border-radius: 50px;
            font-weight: 700; text-decoration: none; transition: 0.2s; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
        }
        .btn-outline { border: 1px solid #fff; color: #fff; background: transparent; }
        .btn-outline:hover { background: #fff; color: #000; }
        .btn-fill { background: #fff; color: #000; border: none; }
        .btn-fill:hover { background: #e0e0e0; transform: scale(1.05); }

        .code-block {
            background: #0a0a0a; border: 1px solid #333; border-radius: 12px; padding: 20px;
            font-family: 'JetBrains Mono'; font-size: 0.8rem; color: #fff;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5); width: 100%;
        }
        .code-header { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 10px; color: #666; font-size: 0.7rem; }
        pre { margin: 0; white-space: pre-wrap; color: #ccc; }
        .hl { color: #00ffcc; } /* Highlight */