:root {
    --bg-main: #030014;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899; /* Pink */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 { width: 50vw; height: 50vw; background: var(--primary); top: -20%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: var(--secondary); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: #8b5cf6; top: 40%; left: 40%; animation-duration: 25s; }

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5vw, -5vh) scale(1.1); }
}

/* Typography & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.highlight { 
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 0;
    background: rgba(3, 0, 20, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--primary); }

.nav-controls { display: flex; align-items: center; gap: 20px; }
.lang-switcher { display: flex; background: var(--bg-secondary); border-radius: 8px; border: 1px solid var(--glass-border); padding: 4px; }
.lang-btn {
    background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; border-radius: 6px; transition: 0.3s;
}
.lang-btn.active { background: rgba(255,255,255,0.1); color: #fff; }
.lang-btn:hover:not(.active) { color: #fff; }

/* Buttons */
.cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; font-size: 16px; font-weight: 600; border-radius: 12px; cursor: pointer; text-decoration: none; transition: 0.3s;
}
.cta-btn.sm { padding: 10px 20px; font-size: 14px; }
.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
}
.cta-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 15px 35px var(--primary-glow); }
.cta-btn.secondary { background: var(--bg-secondary); border: 1px solid var(--glass-border); color: white; }
.cta-btn.secondary:hover { background: rgba(255,255,255,0.1); }
.cta-btn.full { width: 100%; margin-top: 20px; }

/* Hero Section */
.hero { padding: 160px 0 100px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--primary); margin-bottom: 24px; }
.pulse { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 0 var(--primary-glow); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(99,102,241,0); } }

.hero h1 { font-size: 56px; margin-bottom: 20px; }
.subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; }

/* Glass Card & Mockup */
.glass-card {
    background: var(--bg-secondary); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 32px;
}

.mockup { padding: 0; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); transform: perspective(1000px) rotateY(-10deg) rotateX(5deg); transition: 0.5s; }
.mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.mockup-header { background: rgba(0,0,0,0.3); padding: 16px; display: flex; align-items: center; border-bottom: 1px solid var(--glass-border); }
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; background: #475569; }
.dots span:nth-child(1){background: #ef4444;} .dots span:nth-child(2){background: #eab308;} .dots span:nth-child(3){background: #22c55e;}
.mockup-title { flex: 1; text-align: center; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.mockup-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; }

.call-wave { display: flex; justify-content: center; gap: 4px; height: 40px; align-items: center; }
.bar { width: 6px; background: var(--primary); border-radius: 3px; animation: wave 1s infinite ease-in-out; }
.bar:nth-child(2){animation-delay: 0.1s;} .bar:nth-child(3){animation-delay: 0.2s;} .bar:nth-child(4){animation-delay: 0.3s;} .bar:nth-child(5){animation-delay: 0.4s;} .bar:nth-child(6){animation-delay: 0.5s;}
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 40px; } }

.mockup-status { text-align: center; color: var(--success); font-size: 14px; font-weight: 500; display: flex; justify-content: center; align-items: center; gap: 8px; }

.mockup-chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; max-width: 90%; }
.bubble.user { background: rgba(255,255,255,0.05); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.ai { background: linear-gradient(135deg, var(--primary), var(--secondary)); align-self: flex-end; border-bottom-right-radius: 4px; }

/* Features */
.section-title { text-align: center; font-size: 40px; margin-bottom: 60px; }
.features { padding: 100px 0; }
.grid { display: grid; gap: 24px; }
.features-grid { grid-template-columns: repeat(2, 1fr); }
.icon-wrapper { width: 56px; height: 56px; background: rgba(99, 102, 241, 0.1); color: var(--primary); font-size: 24px; display: flex; justify-content: center; align-items: center; border-radius: 16px; margin-bottom: 20px; }
.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); }

/* How it Works */
.how-it-works { padding: 100px 0; background: rgba(3, 0, 20, 0.4); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.steps-container { position: relative; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.step-line { position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); z-index: 1; }
.step { display: flex; align-items: flex-start; gap: 40px; position: relative; z-index: 2; }
.step-number { width: 80px; height: 80px; min-width: 80px; border-radius: 50%; background: var(--bg-main); border: 2px solid var(--primary); display: flex; justify-content: center; align-items: center; font-size: 28px; font-weight: 800; color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); z-index: 2; }
.step-content { flex: 1; position: relative; }
.step-content::before { content: ''; position: absolute; left: -20px; top: 30px; width: 20px; height: 2px; background: var(--primary); opacity: 0.5; }
.step-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; justify-content: center; align-items: center; font-size: 20px; color: white; margin-bottom: 16px; }
.step-content h4 { font-size: 20px; margin-bottom: 12px; }
.step-content p { color: var(--text-muted); line-height: 1.6; }

/* Pricing */
.pricing { padding: 100px 0; }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: center; }
.pricing-card { position: relative; }
.pricing-card.popular { transform: scale(1.05); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; padding: 4px 16px; font-size: 12px; font-weight: 600; border-radius: 100px; white-space: nowrap;}
.pricing-card h4 { font-size: 20px; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.price { font-size: 48px; font-weight: 800; margin-bottom: 24px; }
.price span { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.features-list { list-style: none; margin-bottom: 32px; }
.features-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #e2e8f0; }
.features-list i { color: var(--primary); }

/* Footer */
footer { border-top: 1px solid var(--glass-border); padding: 40px 0; margin-top: 50px; background: rgba(3, 0, 20, 0.8); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.footer-logo i { color: var(--primary); }
.footer-content p { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text-muted); font-size: 20px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }

/* Team */
.team { padding: 100px 0; }
.team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 32px 20px; transition: 0.3s; }
.team-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2); }
.team-card .avatar { width: 80px; height: 80px; background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2)); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; color: white; margin-bottom: 20px; border: 1px solid var(--glass-border); }
.team-card h4 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.team-card .role { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 12px; }
.team-card .desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Translation Logic */
body.lang-uz .text-ru, body.lang-uz .text-en { display: none !important; }
body.lang-ru .text-uz, body.lang-ru .text-en { display: none !important; }
body.lang-en .text-uz, body.lang-en .text-ru { display: none !important; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .mockup { transform: none; margin-top: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
    .pricing-card.popular { transform: scale(1); }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    
    .step-line { left: 30px; }
    .step { gap: 20px; }
    .step-number { width: 60px; height: 60px; min-width: 60px; font-size: 22px; }
    .step-content::before { display: none; }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 42px; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    .features, .how-it-works, .pricing, .team { padding: 60px 0; }
}

@media (max-width: 576px) {
    .nav-controls { gap: 10px; }
    .logo span { display: none; }
    .logo i { font-size: 24px; }
    .cta-btn.sm { padding: 8px 12px; font-size: 13px; }
    .lang-btn { padding: 4px 8px; font-size: 12px; }
    
    .team-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 32px; }
    .subtitle { font-size: 15px; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
    .hero-actions .cta-btn { width: 100%; justify-content: center; }
    
    .mockup-body { padding: 20px; }
    .mockup-header { padding: 12px; }
    
    .step-number { width: 44px; height: 44px; min-width: 44px; font-size: 18px; }
    .step-line { left: 22px; }
    .step { gap: 16px; }
    .step-content h4 { font-size: 18px; }
    
    .pricing-card { padding: 24px; }
    .price { font-size: 36px; }
}
