/* ========================================
   FORFETTARIO FACILE - LANDING PAGE
   ======================================== */

:root {
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-700);
    background: var(--slate-50);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-800);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-cta {
    background: var(--emerald-500);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--emerald-600);
    transform: translateY(-1px);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--emerald-400);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-400);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating span {
    color: var(--slate-400);
    font-size: 0.85rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    max-height: 650px;
    background: var(--slate-800);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    max-height: 626px;
    background: var(--slate-50);
    border-radius: 30px;
    overflow: hidden;
}

.phone-screen .app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.preview-header {
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    border-radius: 16px;
}

.preview-card {
    height: 120px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.preview-result {
    height: 80px;
    border-radius: 16px;
}

.preview-result.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.preview-result.orange {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.preview-chart {
    height: 100px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--emerald-500) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(80px);
    z-index: 1;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--slate-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--slate-50);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
    padding: 100px 0;
    background: var(--slate-50);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.step p {
    color: var(--slate-500);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--slate-300);
}

/* ========================================
   APP SCREENSHOTS
   ======================================== */

.screenshots {
    padding: 100px 0;
    background: white;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.screenshot-card {
    text-align: center;
    max-width: 280px;
}

.screenshot-card img {
    width: 100%;
    max-width: 250px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.screenshot-card img:hover {
    transform: scale(1.05);
}

.screenshot-card p {
    margin-top: 16px;
    color: var(--slate-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   DOWNLOAD SECTION
   ======================================== */

.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

.download-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.download-text {
    color: white;
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-text .gradient-text {
    background: linear-gradient(135deg, #fff, #d1fae5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-text>p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.download-features {
    list-style: none;
    margin-bottom: 32px;
}

.download-features li {
    padding: 8px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.download .btn-primary {
    background: white;
    color: var(--emerald-600);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.download .btn-primary:hover {
    background: var(--slate-100);
}

.qr-box {
    background: white;
    padding: 24px;
    border-radius: 20px;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: var(--slate-100);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
}

.qr-placeholder small {
    font-size: 0.75rem;
    margin-top: 8px;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq {
    padding: 100px 0;
    background: var(--slate-50);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 28px;
    border-radius: 16px;
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--slate-900);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand p {
    color: var(--slate-400);
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h5 {
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--slate-400);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 20px 0;
}

.footer-bottom p {
    color: var(--slate-500);
    font-size: 0.85rem;
    text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .features-grid,
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-qr {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .features-grid,
    .screenshots-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .phone-mockup {
        width: 280px;
        max-height: 560px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}