/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Palette (coerente con app) */
    --primary: #d97757;        /* Terracotta */
    --primary-light: #e8a582;  /* Terracotta chiaro */
    --primary-dark: #c96543;   /* Terracotta scuro */
    
    /* Background Palette */
    --bg: #fafaf9;             /* Warm stone */
    --bg-light: #f5f5f4;       /* Warm stone chiaro */
    --bg-dark: #f0f0f0;        /* Warm stone scuro */
    --bg-warm: #F6F3EF;        /* Beige caldo */
    
    /* Accent Colors */
    --accent: #10b981;         /* Verde successo */
    --accent-light: #34d399;   /* Verde chiaro */
    --warning: #f59e0b;         /* Arancione warning */
    --error: #dc2626;          /* Rosso errore */
    
    /* Text Palette */
    --text: #1a1a1a;           /* Dark */
    --text-muted: #78716c;     /* Gray */
    --text-light: #a8a29e;     /* Light gray */
    --white: #ffffff;          /* White */
    
    /* Border & Shadow */
    --border: #e7e5e4;         /* Light gray */
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--accent);
}

.nav .btn-primary,
.nav .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
}

.nav .btn-secondary {
    margin-right: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 87, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 87, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 87, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 87, 0.2);
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0.05;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 250px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    padding: 12px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(217, 119, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 40px;
    z-index: 1;
}

.phone-screen {
    background: var(--white);
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.mock-app {
    padding: 1.5rem;
    background: var(--bg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mock-header {
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mock-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
}

.mock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.mock-qr {
    font-size: 4rem;
    margin: 1rem 0;
    color: var(--primary);
    opacity: 0.8;
}

.mock-stamps {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stamp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    transition: all 0.3s ease;
}

.stamp.filled {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(217, 119, 87, 0.3);
}

.mock-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 1rem;
    text-align: center;
    line-height: 1.4;
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mock-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    z-index: 1;
}

.features .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 119, 87, 0.15);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    opacity: 1;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* Perfect For Section */
.perfect-for {
    padding: 5rem 0;
    background: var(--bg);
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.business-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.business-item:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    z-index: 1;
}

.pricing .container {
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: auto;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 119, 87, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 20px 40px rgba(217, 119, 87, 0.2);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.badge {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(217, 119, 87, 0.3);
    z-index: 10;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}

.price span {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 600;
}

.price-annual {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success);
    margin: 0.5rem 0;
}

.price-annual span {
    font-size: 1.2rem;
    color: var(--success);
    font-weight: 700;
}

.price-annual small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-pricing {
    width: calc(100% - 0px);
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.btn-pricing:hover:not(:disabled) {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-pricing:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(217, 119, 87, 0.1) 0%, rgba(201, 101, 67, 0.1) 100%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.store-button:hover {
    transform: scale(1.05);
}

.store-icon {
    font-size: 2rem;
}

.store-text small {
    display: block;
    font-size: 0.75rem;
}

.store-text strong {
    display: block;
    font-size: 1.2rem;
}

.cta-note {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Footer Links - White background */
.footer-links {
    background: var(--white);
    color: var(--text-dark);
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
}

.footer-links .footer-col h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links .footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links .footer-col a:hover {
    color: var(--primary);
}

/* Footer Brand - Dark background */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    flex-shrink: 0;
}

.footer-brand .brand-text {
    flex: 1;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-text {
    opacity: 0.8;
    margin-top: 0.5rem;
    font-weight: 600;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .header .container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .logo {
        justify-content: center;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .nav .btn-primary,
    .nav .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }

    .businesses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .store-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .header {
        padding: 0.4rem 0;
    }
    
    .header .container {
        gap: 0.5rem;
        padding: 0.4rem 0.8rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav a {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
    
    .nav .btn-primary,
    .nav .btn-secondary {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .pricing-card {
        padding: 1.2rem;
    }
    
    .pricing-header h3 {
        font-size: 1.4rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .btn-pricing {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    .business-item {
        padding: 1.2rem;
        font-size: 1rem;
    }
}

/* App Screenshots Section */
.app-screenshots {
    padding: 5rem 0;
    background: var(--bg-light);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.screenshots-grid + .screenshots-grid {
    margin-top: 4rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-frame {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screenshot-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.screenshot-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .app-screenshots {
        padding: 3rem 0;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screenshot-img {
        max-width: 120px;
    }
    
    .screenshot-item h3 {
        font-size: 1.1rem;
    }
    
    .screenshot-item p {
        font-size: 0.9rem;
    }
}
