/**
 * GVision Design Studio - Landing Page
 * Modern, professional, mobile-first CSS
 */

/* ========================================
   RESET & BASE
   ======================================== */

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

:root {
    /* Colors */
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3388dd;
    --secondary: #64748b;
    --success: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-light: #f1f5f9;
    --border: #e2e8f0;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    height: 40px;
    width: auto;
}

.landing-logo {
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-link {
    display: block;
    padding: var(--spacing-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-link:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
}

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

.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    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.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
}

.hero-image-placeholder {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: white;
}

.hero-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
    }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    margin-bottom: var(--spacing-sm);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.feature-list li:before {
    content: "→";
    color: var(--primary);
    font-weight: bold;
}

/* ========================================
   SCREENSHOTS SECTION
   ======================================== */

.screenshots {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-gray);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.screenshot-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.screenshot-image {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.screenshot-image svg {
    display: block;
}

.screenshot-card h3,
.screenshot-card p {
    padding: 0 var(--spacing-md);
}

.screenshot-title {
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.screenshot-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-bottom: var(--spacing-md);
}

/* ========================================
   PRICING SECTION (3 piani: Free, Professional, Enterprise)
   ======================================== */

.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.pricing-plan {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* Piano in evidenza */
.pricing-plan-featured {
    border: 3px solid #0066cc;
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(0,102,204,0.15);
    z-index: 2;
}
.pricing-plan-featured:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,102,204,0.2);
}

.plan-badge-lp {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0066cc;
    color: white;
    padding: 0.35rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.plan-header-lp {
    text-align: center;
    margin-bottom: 1.5rem;
}
.plan-name-lp {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 0.25rem;
}
.plan-tagline {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Prezzo */
.plan-price-lp {
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.price-currency-lp {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    vertical-align: super;
}
.price-amount-lp {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -1px;
}
.price-cents-lp {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    vertical-align: super;
}
.price-period-lp {
    font-size: 1rem;
    color: #a0aec0;
    font-weight: 400;
}
.price-annual {
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    margin: 0.25rem 0 1.5rem;
}
.save-badge {
    background: #f0fff4;
    color: #276749;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Feature list */
.plan-features-lp {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.plan-features-lp li {
    padding: 0.55rem 0;
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid #f7fafc;
}
.plan-features-lp li:last-child { border-bottom: none; }
.plan-features-lp li.excluded { color: #cbd5e0; }
.plan-features-lp li.excluded strong { color: #cbd5e0; }
.feat-check {
    color: #38a169;
    font-weight: 700;
    font-size: 1rem;
    min-width: 18px;
}
.feat-cross {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 1rem;
    min-width: 18px;
}

/* CTA buttons */
.btn-plan {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}
.btn-plan:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #1a202c;
}
.btn-plan-featured {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}
.btn-plan-featured:hover {
    background: #0052a3;
    border-color: #0052a3;
    color: white;
}

.plan-note {
    text-align: center;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.75rem;
}

/* FAQ */
.pricing-faq {
    text-align: center;
    margin-top: 3rem;
}
.faq-text {
    color: #718096;
    font-size: 1rem;
}
.faq-text a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    .pricing-plan-featured {
        transform: none;
        order: -1;
    }
    .pricing-plan-featured:hover {
        transform: translateY(-6px);
    }
}

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

.footer {
    background: var(--text-primary);
    color: var(--text-light);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-title {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

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

.footer-list li {
    margin-bottom: var(--spacing-xs);
}

.footer-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-copyright,
.footer-credits {
    font-size: 0.875rem;
    margin: var(--spacing-xs) 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        max-width: 100%;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ========================================
   FLASH MESSAGES
   ======================================== */

.flash-messages {
    position: fixed;
    top: 80px;
    right: var(--spacing-md);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 400px;
}

.flash-message {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

.flash-success {
    border-left-color: var(--success);
    background: #f0fdf4;
}

.flash-error {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.flash-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.flash-info {
    border-left-color: var(--primary);
    background: #eff6ff;
}

.flash-message button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flash-message button:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .flash-messages {
        left: var(--spacing-md);
        right: var(--spacing-md);
        top: 70px;
        max-width: none;
    }
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.modal-header h2 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-form {
    margin-bottom: var(--spacing-md);
}

.modal-form h3 {
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    font-size: 1.125rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.modal-form h3:first-of-type {
    margin-top: 0;
}

.modal-form hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--spacing-lg) 0;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group-small {
    flex: 0 0 auto;
    width: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-weight: 400;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-footer {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.modal-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding: var(--spacing-md);
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group-small {
        width: 100%;
    }
}
