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

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e27;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 6px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 18px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gradient);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-gradient);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-gradient);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 32px;
    text-align: center;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

/* Roadmap Section */
.roadmap {
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.roadmap-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.roadmap-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.roadmap-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.roadmap-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.roadmap-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.cta {
    padding: 120px 0;
}

.cta-content {
    padding: 80px 40px;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 8px 0;
}

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

    .hero {
        padding: 60px 0;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 32px;
    }

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

    .section-subtitle {
        font-size: 1rem;
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .features-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .feature-card,
    .roadmap-card {
        padding: 32px 24px;
    }

    .feature-icon,
    .roadmap-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    .language-switcher {
        top: 16px;
        right: 16px;
        scale: 0.95;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    .cta-content {
        padding: 48px 28px;
    }

    .cta h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .cta p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .footer {
        padding: 32px 0;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-content {
        padding: 36px 20px;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .feature-card,
    .roadmap-card,
    .cta-content {
        padding: 28px 20px;
    }

    .feature-icon,
    .roadmap-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .feature-card h3,
    .roadmap-card h3 {
        font-size: 1.25rem;
    }

    .feature-card p,
    .roadmap-card p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .cta p {
        font-size: 0.95rem;
    }

    .language-switcher {
        scale: 0.9;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================ */
/* PERFORMANCE OPTIMIZATIONS & ANIMATIONS */
/* ============================================ */

/* Fade-in animations for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Apply animations to elements */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.roadmap-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.roadmap-card:nth-child(1) { animation-delay: 0.1s; }
.roadmap-card:nth-child(2) { animation-delay: 0.2s; }
.roadmap-card:nth-child(3) { animation-delay: 0.3s; }
.roadmap-card:nth-child(4) { animation-delay: 0.4s; }
.roadmap-card:nth-child(5) { animation-delay: 0.5s; }
.roadmap-card:nth-child(6) { animation-delay: 0.6s; }

/* Optimize animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-orb {
        animation: none;
    }
}

/* Improve GPU acceleration */
.glass-card,
.btn,
.gradient-orb {
    will-change: transform;
}

.glass-card:hover,
.btn:hover {
    will-change: auto;
}

/* Reduce backdrop-filter for better performance on mobile */
@media (max-width: 768px) {
    .glass-card,
    .language-switcher {
        backdrop-filter: blur(10px);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading state optimization */
.hero-background {
    contain: layout style paint;
}

.gradient-orb {
    contain: layout size paint;
}

/* Reduce blur on lower-end devices */
@media (max-width: 640px) and (max-height: 800px) {
    .gradient-orb {
        filter: blur(60px);
        opacity: 0.4;
    }
}
