:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #8a8a93;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-hover: rgba(255, 255, 255, 0.04);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ambient-lighting {
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vw;
    max-width: 1200px;
    max-height: 1200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
}

/* Typography utilities */
.text-center { text-align: center; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-brand .brand-icon {
    width: 24px;
    height: 24px;
}

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

.nav-links > a:not(.btn-primary) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links > a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.btn-primary {
    padding: 0.6rem 1.4rem;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
    background: #f4f4f5;
    transform: scale(1.02);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}
.mobile-menu-btn svg {
    width: 24px; height: 24px;
}

.mobile-menu-overlay {
    display: none;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    user-select: none;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: status-pulse 2s ease-in-out infinite;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: #10b981;
    opacity: 0.3;
    animation: status-glow 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes status-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.1;
    }
}

/* Language Selector */
.lang-selector-container {
    position: relative;
}

.lang-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.lang-toggle:hover {
    color: var(--text-primary);
}

.lang-toggle .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.lang-selector-container.active .lang-toggle .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 50%;
    transform: translateX(50%) translateY(10px);
    width: 200px;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}
.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-selector-container.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Common Section padding */
.section-padding {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12rem 5% 6rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4.5rem auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Input Form */
.download-form {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 20px;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin: 0 1.2rem;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    padding: 1.2rem 0;
    font-family: var(--font-sans);
}

.input-wrapper input::placeholder {
    color: #555;
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 1.1rem 2rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-submit:hover {
    background: #f4f4f5;
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

.download-feedback {
    max-width: 680px;
    margin: 1.75rem auto 0;
}

.download-error {
    width: 100%;
    color: #ffd3d3;
    background: rgba(255, 68, 105, 0.12);
    border: 1px solid rgba(255, 68, 105, 0.18);
    padding: 1rem 1.15rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.download-result {
    width: 100%;
}

.result-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.result-card-thumb {
    flex-shrink: 0;
    width: 132px;
    height: 132px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.result-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-badges {
    display: flex;
    gap: 0.5rem;
    align-self: flex-start;
}

.result-platform, .result-type {
    display: inline-flex;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.result-type {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.result-title {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.25;
    color: var(--text-primary);
}

.download-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.download-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.2s ease;
}

.download-option:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.btn-submit.loading {
    cursor: progress;
}

.hidden {
    display: none !important;
}

/* Trusted By Section */
.trusted-by {
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Section */
.about-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step-card {
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    transition: transform 0.4s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.feature-card {
    border-radius: 24px;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

/* Supported Platforms */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.platform-container:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.platform-container svg {
    width: 48px;
    height: 48px;
    color: var(--text-primary);
}

.platform-container span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Global Languages */
.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.lang-tag {
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.lang-tag:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    user-select: none;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-question svg {
    transform: rotate(45deg);
    color: var(--text-primary);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
}

/* CTA Section */
.cta-card {
    text-align: center;
    padding: 6rem 3rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.cta-card .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    padding: 6rem 5% 3rem;
    background: #000;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.brand-logo svg {
    width: 24px;
    height: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links-group h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-lang-selector:hover {
    color: var(--text-primary);
}

.footer-lang-selector svg {
    width: 16px;
    height: 16px;
}

/* Animations */
.reveal, .reveal-fast {
    opacity: 0;
    transform: translateY(20px);
}

.reveal {
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fast {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal-fast.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .feature-grid, .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
        min-height: 60px;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-brand span {
        display: none !important;
    }

    .nav-brand .brand-icon {
        width: 24px;
        height: 24px;
    }

    .nav-links,
    .status-indicator {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        color: var(--text-primary);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
    }

    .mobile-menu-btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .mobile-menu-btn svg {
        width: 18px;
        height: 18px;
    }

    .navbar > .nav-brand,
    .navbar > .mobile-menu-btn {
        z-index: 101;
    }

    .navbar {
        justify-content: space-between;
    }

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

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

    .input-wrapper {
        flex-direction: column;
        padding: 0.5rem;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        gap: 0.8rem;
    }

    .input-wrapper:focus-within {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .input-icon {
        display: none;
    }
    
    .input-wrapper input {
        width: 100%;
        background: var(--glass-bg);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 1.2rem;
        text-align: center;
        backdrop-filter: blur(20px);
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 1.2rem;
        border-radius: 16px;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid, .platforms-grid {
        grid-template-columns: 1fr;
    }

    .feature-card, .platform-container {
        padding: 2.5rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-content {
    padding: 2rem;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.privacy-section ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.privacy-section li:last-child {
    margin-bottom: 0;
}

/* Terms of Service Modal Styles */
.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.terms-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.terms-section ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin: 0;
}

.terms-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
}

.terms-section li:last-child {
    margin-bottom: 0;
}

.terms-section li::marker {
    color: var(--text-primary);
    font-weight: 500;
}

/* Cookie Policy Modal Styles */
.cookie-section {
    margin-bottom: 2.5rem;
}

.cookie-section:last-child {
    margin-bottom: 0;
}

.cookie-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.cookie-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cookie-type {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.cookie-type:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.cookie-type h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cookie-type p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-section ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin: 0;
}

.cookie-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
}

.cookie-section li:last-child {
    margin-bottom: 0;
}

.cookie-section li::marker {
    color: var(--text-primary);
    font-weight: 500;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .privacy-section h3,
    .terms-section h3,
    .cookie-section h3 {
        font-size: 1.1rem;
    }
    
    .privacy-section p,
    .terms-section p,
    .cookie-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .privacy-section ul,
    .terms-section ul,
    .cookie-section ul {
        padding-left: 1.25rem;
    }
    
    .privacy-section li,
    .terms-section li,
    .cookie-section li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cookie-type {
        padding: 1.25rem;
    }
    
    .cookie-type h4 {
        font-size: 1rem;
    }
    
    .cookie-type p {
        font-size: 0.9rem;
    }
}

/* Mobile Navbar and Overlay */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 1rem 1.5rem;
        min-height: 62px;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-brand span {
        display: none;
    }

    .nav-brand .brand-icon {
        width: 24px;
        height: 24px;
    }

    .nav-links,
    .status-indicator {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        color: var(--text-primary);
        align-items: center;
        justify-content: center;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
    }

    .mobile-menu-btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.18);
    }

    .mobile-menu-btn svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.94);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.32s ease, visibility 0.32s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        padding: 1.5rem;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-panel {
        width: min(420px, 100%);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 28px;
        backdrop-filter: blur(26px);
        padding: 2rem 1.75rem;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }

    .mobile-menu-close {
        align-self: flex-end;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-primary);
    }

    .mobile-menu-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-list a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 500;
        padding: 1rem 1.25rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.03);
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-menu-list a:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(2px);
    }

    .mobile-menu-list a + a {
        margin-top: 0.3rem;
    }

    .mobile-menu-group {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 1.5rem;
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-lang-selector {
        position: relative;
        width: 100%;
    }

    .mobile-lang-selector .lang-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1rem;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.03);
    }

    .mobile-lang-selector .lang-toggle .chevron {
        width: 16px;
        height: 16px;
    }

    .mobile-lang-selector .lang-dropdown {
        position: static;
        width: 100%;
        padding: 0.5rem;
        border-radius: 20px;
        background: rgba(10, 10, 10, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 1002;
        max-height: 0;
        overflow: hidden;
    }

    .mobile-lang-selector.active .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 420px;
        overflow: auto;
    }

    .mobile-lang-selector .lang-dropdown a {
        display: block;
        padding: 0.95rem 1rem;
        border-radius: 14px;
        color: var(--text-secondary);
        font-size: 0.95rem;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-lang-selector .lang-dropdown a:hover,
    .mobile-lang-selector .lang-dropdown a.active {
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-primary);
    }
}

@media (max-width: 600px) and (orientation: portrait) {
    .navbar {
        padding: 0.9rem 1rem;
        min-height: 58px;
    }

    .mobile-menu-overlay {
        align-items: flex-start;
        justify-content: center;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.96);
        will-change: opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .mobile-menu-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
        padding: 1.5rem 1.25rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        will-change: transform, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
        overscroll-behavior: contain;
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
    }

    .mobile-menu-list a {
        font-size: 1rem;
        padding: 0.95rem 1rem;
    }

    .mobile-menu-group {
        gap: 0.75rem;
        padding-top: 1.2rem;
        margin-top: 0.9rem;
    }

    .mobile-lang-selector .lang-dropdown {
        max-height: 320px;
    }

    .mobile-lang-selector .lang-dropdown a {
        padding: 0.9rem 0.95rem;
    }

    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        border-color: rgba(255, 255, 255, 0.14);
    }

    .mobile-menu-btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu-close,
    .mobile-menu-btn,
    .mobile-menu-list a,
    .mobile-lang-selector .lang-toggle {
        backface-visibility: hidden;
        transform: translateZ(0);
        touch-action: manipulation;
    }

    .mobile-lang-selector .lang-dropdown {
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
        will-change: opacity, transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-overflow-scrolling: touch;
    }
}
