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

/* Link to landing page */
.landing-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
}

.landing-link:hover {
    text-decoration: underline;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}

/* Pulsanti di autenticazione */
.auth-buttons {
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* Menu di navigazione */
.nav-menu {
    display: flex;
    gap: 30px;
    z-index: 10;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-menu a:nth-child(1) {
    border-color: #f59e0b;
    background-color: #fef3c7;
    color: #92400e;
}

.nav-menu a:nth-child(2) {
    border-color: #8b5cf6;
    background-color: #ede9fe;
    color: #6b21a8;
}

.nav-menu a:nth-child(3) {
    border-color: #06b6d4;
    background-color: #cffafe;
    color: #0e7490;
}

.nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main content */
.main-content {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1e293b;
}

/* Submit case section */
.submit-case-section {
    margin-bottom: 120px;
    text-align: center;
}

.submit-case-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 60px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.submit-case-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.payment-info {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
}

.case-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.case-option {
    position: relative;
}

.case-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.case-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
}

.case-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Impossible section */
.impossible-section {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.or-text {
    color: #94a3b8;
    font-weight: 500;
    font-size: 1.1rem;
}

.link-button {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-button:hover {
    color: #2563eb;
    text-decoration: underline;
}

.question-mark {
    color: #ef4444;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

/* Tooltip */
.tooltip {
    position: absolute;
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 250px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

.tooltip.show {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-buttons {
        position: static;
        transform: none;
        order: -1;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .submit-case-btn {
        font-size: 1.5rem;
        padding: 18px 32px;
    }
    
    .case-options {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .case-card {
        min-width: 250px;
        padding: 30px 25px;
    }
    
    .impossible-section {
        margin: 0 15px;
        padding: 40px 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .submit-case-section {
        margin-bottom: 80px;
    }
    
    .submit-case-btn {
        font-size: 1.3rem;
        padding: 16px 28px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .case-card {
        min-width: 200px;
        padding: 25px 20px;
    }
    
    .case-card h3 {
        font-size: 1.3rem;
    }
    
    .case-icon {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

