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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    
    --primary-color: #667eea;
    --primary-hover: #764ba2;
    --accent-color: #f5576c;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-light: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --bg-glass-strong: rgba(255, 255, 255, 0.2);
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --border-color: rgba(226, 232, 240, 0.5);
    --success-color: #10b981;
    --error-color: #ef4444;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 32px;
    --border-radius-xl: 48px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 87, 108, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Animated Background Elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    33% { transform: translateY(-30px) translateX(20px) rotate(5deg); }
    66% { transform: translateY(10px) translateX(-15px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.lang-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    color: white;
    padding: 10rem 0 8rem;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: pulse 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.03) 50px,
        rgba(255, 255, 255, 0.03) 100px
    );
    animation: float 20s linear infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    animation: slideInUp 0.8s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: slideInUp 1.2s ease-out;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.cta-button:active {
    transform: translateY(-2px) scale(1);
}

/* Section Title */
.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Benefits Section */
.benefits {
    padding: 8rem 0;
    background: var(--bg-white);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    margin: -2px;
}

.benefit-card:hover::before {
    opacity: 0.05;
}

.benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.benefit-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.2) rotate(5deg);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Requirements Section */
.requirements {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.requirements-list {
    max-width: 800px;
    margin: 0 auto;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.requirement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.requirement-item:hover::before {
    transform: scaleY(1);
}

.requirement-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
}

.checkmark {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    background: rgba(16, 185, 129, 0.15);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.requirement-item:hover .checkmark {
    background: rgba(16, 185, 129, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.requirement-item span:last-child {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    padding: 8rem 0;
    background: var(--bg-white);
    position: relative;
}

.form-section .container {
    position: relative;
    z-index: 1;
}

.form-description {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

.form-container {
    max-width: 720px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-xl);
    opacity: 0.05;
    z-index: -1;
    margin: -1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.form-field__input,
.form-field__textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-field__input:focus,
.form-field__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), var(--shadow-md);
    background-color: white;
    transform: translateY(-2px);
}

.form-field__input:hover:not(:focus),
.form-field__textarea:hover:not(:focus) {
    border-color: var(--primary-color);
    background-color: white;
}

.form-field__input::placeholder,
.form-field__textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-field__textarea {
    resize: vertical;
    min-height: 140px;
}

.form-field__error {
    display: none;
    font-size: 0.875rem;
    color: var(--error-color);
    margin-top: 0.25rem;
    animation: shake 0.4s ease;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.form-field__input.error,
.form-field__textarea.error {
    border-color: var(--error-color);
    animation: errorShake 0.4s ease;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-field__input.error + .form-field__error,
.form-field__textarea.error + .form-field__error {
    display: block;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    position: relative;
}

.form-error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.9375rem;
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--error-color);
    animation: slideInUp 0.3s ease-out;
    font-weight: 600;
}

.form-error-message--visible {
    display: block;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 3rem;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    color: white;
    border: none;
    border-radius: var(--border-radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 240px;
    position: relative;
    box-shadow: var(--shadow-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.button:hover:not(:disabled)::before {
    left: 100%;
}

.button:hover:not(:disabled) {
    background: var(--primary-gradient-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.button:active:not(:disabled) {
    transform: translateY(-2px) scale(1);
}

.button:disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    animation: none;
}

.button.success {
    background: var(--success-gradient) !important;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: white;
    padding: 3rem 4rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.success-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-gradient);
}

.success-modal-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.success-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.success-modal-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-modal-close {
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.success-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 8rem 0 6rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.75rem;
    }

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

    .section-title {
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }

    .benefits,
    .requirements,
    .form-section {
        padding: 5rem 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefit-card {
        padding: 2.5rem 2rem;
    }

    .language-switcher {
        top: 1rem;
        right: 1rem;
        padding: 0.375rem;
    }

    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .form-container {
        padding: 2.5rem 2rem;
        border-radius: var(--border-radius-lg);
    }
    
    .contact-form {
        gap: 1.5rem;
    }

    .requirement-item {
        padding: 1.5rem 2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .button {
        min-width: 100%;
        padding: 1rem 2rem;
    }

    .success-modal-content {
        padding: 2.5rem 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .benefits,
    .requirements,
    .form-section {
        padding: 4rem 0;
    }

    .benefit-icon {
        font-size: 3.5rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .success-modal-content {
        padding: 2rem 1.5rem;
    }

    .success-modal-icon {
        font-size: 4rem;
    }

    .success-modal-title {
        font-size: 1.75rem;
    }
}
