/* CSS Variables */
:root {
    --primary-dark: #1e2756;
    --primary-orange: #e8a54b;
    --primary-orange-light: #fef3e2;
    --background: #ffffff;
    --surface: #fafbfc;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Modern shadow system */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(232, 165, 75, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

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

.logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.tagline {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #e8a54b 0%, #f0b45d 100%);
    color: var(--primary-dark);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(232, 165, 75, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(232, 165, 75, 0.35);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(232, 165, 75, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
}

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

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.modal.active .form-group {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.modal.active .user-type-group { animation-delay: 0.05s; }
.modal.active .form-group:nth-child(2) { animation-delay: 0.1s; }
.modal.active .form-group:nth-child(3) { animation-delay: 0.15s; }
.modal.active .form-group:nth-child(4) { animation-delay: 0.2s; }
.modal.active .form-group:nth-child(5) { animation-delay: 0.25s; }
.modal.active .submit-button { animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards; opacity: 0; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(232, 165, 75, 0.12);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* Radio Group */
.user-type-group {
    margin-bottom: 1.5rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-option:hover {
    border-color: var(--primary-orange);
    background: rgba(232, 165, 75, 0.04);
    transform: translateY(-1px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--primary-orange);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-dark);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.radio-label {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Submit Button */
.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #e8a54b 0%, #f0b45d 100%);
    color: var(--primary-dark);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(232, 165, 75, 0.25);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 165, 75, 0.35);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    padding: 1.5rem;
    z-index: 999;
    animation: slideUpBanner 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.cookie-banner.active {
    display: block;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.cookie-accept {
    background: linear-gradient(135deg, #e8a54b 0%, #f0b45d 100%);
    color: var(--primary-dark);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(232, 165, 75, 0.25);
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 165, 75, 0.35);
}

/* Responsive */
@media (max-width: 640px) {
    .hero {
        padding: 2rem 1.5rem;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .modal-content {
        padding: 1.25rem;
        border-radius: 12px;
        max-width: 95%;
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .modal-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.875rem;
    }
    
    .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .radio-option:hover {
        transform: none;
    }
    
    .submit-button {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}
