/* css/landing.css */

/* --- VARIABILI & RESET --- */
:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 25, 0.6);
    --primary-purple: #9f55ff;
    --primary-cyan: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --gradient-main: linear-gradient(135deg, #9f55ff 0%, #00f0ff 100%);
    --gradient-glow: conic-gradient(from 180deg at 50% 50%, #9f55ff 0deg, #00f0ff 180deg, #9f55ff 360deg);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
}

/* --- SFONDO AMBIENTALE --- */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--primary-purple);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.top-left { top: -200px; left: -200px; background: var(--primary-purple); }
.bottom-right { bottom: -200px; right: -200px; background: var(--primary-cyan); }

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; }
.logo img { height: 36px; filter: drop-shadow(0 0 8px rgba(159, 85, 255, 0.5)); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text-main); }

.btn-login {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 8px;
    color: var(--primary-cyan) !important;
    font-weight: 600;
}
.btn-login:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* START MODIFICATION: Stili per il selettore di lingua */
.lang-selector-wrapper {
    position: relative;
}
.lang-selector-trigger {
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lang-selector-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.lang-selector-options {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: #101015;
    border: var(--glass-border);
    border-radius: 8px;
    padding: 5px;
    z-index: 1001;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lang-selector-wrapper:hover .lang-selector-options {
    display: block;
}
.lang-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
}
.lang-option:hover {
    background: var(--primary-purple);
    color: #fff;
}

/* --- HERO SECTION --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px 5%;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.badge-pill {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(159, 85, 255, 0.1);
    border: 1px solid rgba(159, 85, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-purple);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.6;
}

.hero-btns { display: flex; gap: 20px; }

.cta-btn {
    padding: 16px 32px;
    background: var(--gradient-main);
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(159, 85, 255, 0.4); }

.secondary-btn {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.secondary-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* --- HERO VISUAL (MOCKUP) --- */
.hero-visual { perspective: 1000px; }
.mockup-container {
    width: 100%;
    height: 400px;
    background: #0d0d12;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
    position: relative;
    overflow: hidden;
}
.mockup-container:hover { transform: rotateY(0) rotateX(0); }

.mockup-header {
    height: 40px;
    background: #1a1a20;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a45; }
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }
.address-bar {
    background: #050507;
    flex-grow: 1;
    height: 24px;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-body {
    height: calc(100% - 40px);
    position: relative;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanning-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 20px var(--primary-cyan);
    animation: scan 3s infinite linear;
    z-index: 10;
}
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.ai-status {
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 240, 255, 0.1);
}
.spinner { width: 14px; height: 14px; border: 2px solid var(--primary-cyan); border-top-color: transparent; border-radius: 50%; animation: spin 1s infinite linear; }
@keyframes spin { to { transform: rotate(360deg); } }


/* --- FEATURES --- */
.features { padding: 120px 5%; background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0e 100%); }
.features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 60px; font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1400px; margin: 0 auto; }

.feature-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-10px); background: rgba(30, 30, 40, 0.8); border-color: rgba(159, 85, 255, 0.3); }

.card-glow {
    position: absolute; top: -50px; right: -50px; width: 100px; height: 100px;
    background: var(--primary-purple); filter: blur(60px); opacity: 0; transition: 0.3s;
}
.feature-card:hover .card-glow { opacity: 0.2; }

.feature-card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 12px; color: #fff; }
.feature-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* --- PRICING --- */
.pricing { padding: 100px 5%; max-width: 1200px; margin: 0 auto; text-align: center; }
.pricing h2 { font-size: 2.5rem; margin-bottom: 10px; }

.email-input-container {
    background: rgba(255,255,255,0.03);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto 60px;
    text-align: left;
}
.email-input-container label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.9rem; color: var(--primary-cyan); }
.input-wrapper { display: flex; align-items: center; position: relative; }
.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.input-wrapper input:focus { border-color: var(--primary-cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); }
.status-icon { position: absolute; right: 12px; opacity: 0.5; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }

.price-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    background: rgba(25, 20, 35, 0.8);
    border: 1px solid rgba(159, 85, 255, 0.5);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.popular-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-main);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.price-card h3 { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 20px; }
.price { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.saving { color: var(--primary-cyan); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }

.features-list { margin-bottom: 30px; flex-grow: 1; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.features-list ul { list-style: none; }
.features-list li { margin-bottom: 12px; font-size: 0.95rem; display: flex; gap: 10px; color: #d0d0d0; }

.paypal-container { margin-top: auto; }

/* START MODIFICATION: Stili per le sezioni legali e di supporto */
.legal-section {
    padding: 100px 5%;
    background: #08080a;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.legal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}
.legal-card {
    background: rgba(255,255,255,0.03);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 16px;
}
.legal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-cyan);
}
.legal-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}
.legal-card a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}
.legal-card a:hover {
    text-decoration: underline;
}

/* START MODIFICATION: Stile per Piano Unico */
.pricing-single-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.price-card {
    /* Resetta stili precedenti se necessario e imposta larghezza fissa per card singola */
    max-width: 480px; 
    width: 100%;
    padding: 50px; /* Più spazioso */
}

.price-card .price {
    font-size: 4rem; /* Prezzo più grande */
    color: var(--primary-cyan);
}

.price-card ul li {
    font-size: 1.1rem; /* Testo feature più leggibile */
    margin-bottom: 15px;
}
/* END MODIFICATION */

/* START MODIFICATION: Stile per il link di pagamento PayPal */
.paypal-button-styled {
    display: block;
    background-color: #ffc439; /* Colore ufficiale PayPal */
    color: #003087;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.paypal-button-styled:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 196, 57, 0.3);
}
/* END MODIFICATION */

/* --- FOOTER --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 5%;
    background: #020203;
    margin-top: 0; /* Modificato */
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-logo img { height: 24px; filter: grayscale(100%); transition: 0.3s; }
.footer-logo:hover img { filter: none; }

.copyright { color: #555; font-size: 0.9rem; }

.footer-links a { color: #555; text-decoration: none; margin-left: 20px; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: var(--primary-cyan); }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 140px; }
    .hero h1 { font-size: 3rem; }
    .hero-btns { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .price-card.popular { transform: scale(1); }
    .mockup-container { height: 300px; }
}

/* --- USER COUNTER --- */
.user-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(159, 85, 255, 0.08);
    border: 1px solid rgba(159, 85, 255, 0.2);
    border-radius: 30px;
    width: fit-content;
    font-size: 0.9rem;
}

.counter-num {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- HOW IT WORKS SECTION --- */
.how-section {
    padding: 100px 5%;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0e 0%, #050507 100%);
}

.how-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.how-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 60px auto 0;
    flex-wrap: wrap;
}

.how-step {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(20, 20, 28, 0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px 32px;
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    animation: fadeSlideInHow 0.6s var(--step-delay, 0s) both;
}

@keyframes fadeSlideInHow {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.how-step:hover {
    transform: translateY(-8px);
    border-color: rgba(159, 85, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(159,85,255,0.08);
}

.how-num {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.how-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.how-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.how-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.how-connector {
    font-size: 2rem;
    color: var(--primary-purple);
    padding: 0 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .how-grid { flex-direction: column; gap: 20px; }
    .how-connector { transform: rotate(90deg); }
}
/* --- GLASS CARDS (Utility) --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- TESTIMONIALS --- */
.testimonials { padding: 100px 5%; max-width: 1200px; margin: 0 auto; text-align: center; }
.testimonials h2 { font-size: 2.5rem; margin-bottom: 10px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.testimonial-card { padding: 40px 30px; border-radius: 20px; text-align: left; position: relative; transition: transform 0.3s, box-shadow 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: rgba(159, 85, 255, 0.3); }
.test-stars { color: #ffd700; margin-bottom: 15px; font-size: 1.1rem; letter-spacing: 2px; }
.test-quote { font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 30px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
.test-avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff; }
.test-info strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.test-info span { display: block; color: var(--text-muted); font-size: 0.85rem; }

/* --- FAQ --- */
.faq-section { padding: 100px 5%; max-width: 900px; margin: 0 auto; }
.faq-section h2 { font-size: 2.5rem; margin-bottom: 50px; text-align: center; }
.faq-container { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: rgba(20, 20, 25, 0.4); border: var(--glass-border); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.faq-item.active { background: rgba(30, 30, 40, 0.6); border-color: rgba(159, 85, 255, 0.3); }
.faq-question { width: 100%; background: none; border: none; color: #fff; padding: 24px; font-size: 1.1rem; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-question i { transition: transform 0.3s; color: var(--primary-cyan); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary-purple); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); }
.faq-item.active .faq-answer { max-height: 1000px; transition: max-height 0.8s ease-in-out; }
.faq-answer p { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Disabled features */
.features-list li.disabled { color: #555; text-decoration: line-through; }
.features-list li i { width: 18px; height: 18px; flex-shrink: 0; }

.feature-card .icon i { width: 40px; height: 40px; color: var(--primary-purple); }
.how-icon i { width: 40px; height: 40px; color: var(--primary-cyan); }
.status-icon i { width: 20px; height: 20px; color: var(--primary-cyan); }

.social-icons a { color: #555; margin: 0; display: flex; transition: 0.3s; }
.social-icons a i { width: 20px; height: 20px; }
.social-icons a:hover { color: var(--primary-cyan); transform: translateY(-2px); }

/* ============================================================
   LANDING POLISH
   ============================================================ */

.feature-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--glow);
  border-color: rgba(255,255,255,0.2);
}
.feature-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  transition: all 0.3s ease;
}

.cta-btn {
  transition: all 0.3s ease;
}
.cta-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 30px rgba(159, 85, 255, 0.4);
}

/* Scrollbar per la landing */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050507;
}
::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9f55ff;
}
