/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --accent: #ff6b6b;
    --accent-dark: #e55a5a;
    --accent-gold: #ffd700;
    --bg-dark: #0a0a1a;
    --bg-section: #111128;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222250;
    --text: #f0f0ff;
    --text-muted: #9999bb;
    --border: rgba(255,255,255,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 30px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(108,92,231,0.4);
    --shadow-accent: 0 0 40px rgba(255,107,107,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.gradient-text {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,26,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled { background: rgba(10,10,26,0.95); box-shadow: 0 2px 30px rgba(0,0,0,0.4); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    color: var(--text);
    transition: var(--transition);
}
.site-logo:hover { transform: scale(1.03); }
.logo-icon { font-size: 1.8rem; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; list-style: none; gap: 28px; }
.nav-menu a {
    font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
    transition: var(--transition); position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-menu a:hover, .nav-menu a:active { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }
.header-cta { margin-left: 8px; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
    .site-nav { display: none; }
    .mobile-toggle { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 50px;
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
    border: 2px solid transparent; cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden; white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; text-align: center; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 20px rgba(108,92,231,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,92,231,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff8e8e);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 20px rgba(255,107,107,0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,107,107,0.5);
}
.btn-accent:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(108,92,231,0.1);
    transform: translateY(-2px);
}

.btn-glow {
    animation: buttonGlow 2s ease-in-out infinite alternate;
}
@keyframes buttonGlow {
    0% { box-shadow: 0 4px 20px rgba(108,92,231,0.3); }
    100% { box-shadow: 0 8px 40px rgba(108,92,231,0.6), 0 0 60px rgba(108,92,231,0.2); }
}

.btn-glow.btn-accent {
    animation: buttonGlowAccent 2s ease-in-out infinite alternate;
}
@keyframes buttonGlowAccent {
    0% { box-shadow: 0 4px 20px rgba(255,107,107,0.3); }
    100% { box-shadow: 0 8px 40px rgba(255,107,107,0.6), 0 0 60px rgba(255,107,107,0.2); }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    border-radius: 50%; background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}
.btn:active::after { width: 300px; height: 300px; }

/* ===== HERO ===== */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 140px 0 100px;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-bg-shapes {
    position: absolute; inset: 0; pointer-events: none;
}
.shape {
    position: absolute; border-radius: 50%; opacity: 0.15;
    filter: blur(80px); animation: floatShape 20s ease-in-out infinite;
}
.shape-1 { width: 500px; height: 500px; background: var(--primary); top: -150px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -80px; animation-delay: -7s; }
.shape-3 { width: 300px; height: 300px; background: #a29bfe; top: 30%; left: 40%; animation-delay: -14s; }
.shape-4 { width: 200px; height: 200px; background: var(--accent-gold); top: 20%; right: 30%; animation-delay: -3s; }
.shape-5 { width: 350px; height: 350px; background: #00cec9; bottom: 20%; right: 10%; animation-delay: -10s; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 40px) scale(0.9); }
    75% { transform: translate(-40px, -20px) scale(1.05); }
}

.hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px; border-radius: 50px;
    background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.3);
    font-size: 0.9rem; font-weight: 600; color: #a29bfe;
    margin-bottom: 28px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900; line-height: 1.15;
    margin-bottom: 24px; letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted); max-width: 650px;
    margin: 0 auto 36px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number {
    display: block; font-family: 'Outfit', sans-serif;
    font-size: 2.2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #a29bfe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.hero-wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== PROBLEM ===== */
.problem-section { padding: 100px 0; background: var(--bg-section); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.problem-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px;
    transition: var(--transition);
}
.problem-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); border-color: rgba(108,92,231,0.3); }
.problem-icon { font-size: 2.8rem; margin-bottom: 16px; }
.problem-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.problem-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ===== SOLUTION ===== */
.solution-section { padding: 100px 0; background: var(--bg-dark); }
.solution-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

@media (max-width: 900px) {
    .solution-showcase { grid-template-columns: 1fr; gap: 40px; }
}

.mockup-browser {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.mockup-browser:hover { box-shadow: var(--shadow-glow); }
.mockup-bar {
    background: #151530; padding: 12px 16px; display: flex; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #ff6b6b; }
.mockup-bar span:nth-child(2) { background: #ffd700; }
.mockup-bar span:nth-child(3) { background: #51cf66; }

.mockup-app { display: flex; min-height: 320px; }
.mockup-sidebar {
    width: 140px; background: #0d0d28; padding: 12px;
    border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px;
}
.mockup-lang {
    padding: 8px 10px; border-radius: 6px; font-size: 0.8rem;
    color: var(--text-muted); transition: var(--transition);
}
.mockup-lang.active { background: rgba(108,92,231,0.25); color: #a29bfe; font-weight: 600; }

.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mockup-exercise {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px;
    transition: var(--transition);
}
.mockup-exercise:hover { background: rgba(255,255,255,0.06); }
.mockup-ex-icon { font-size: 1.4rem; margin-bottom: 4px; }
.mockup-ex-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.mockup-ex-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; direction: rtl; text-align: right; }
.mockup-play-btn {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: var(--primary); font-size: 0.72rem; font-weight: 600;
    color: #fff; cursor: pointer;
}

.solution-text h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin-bottom: 24px; }
.solution-steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.solution-steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-number {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.solution-steps strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.solution-steps p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== FEATURES ===== */
.features-section { padding: 100px 0; background: var(--bg-section); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; transition: transform 0.3s; }
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-5deg); }
.feature-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 100px 0; background: var(--bg-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px;
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(108,92,231,0.3); }
.testimonial-stars { font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 4px; }
.testimonial-card blockquote {
    font-size: 0.95rem; font-style: italic; line-height: 1.7;
    color: var(--text); margin-bottom: 20px;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing-section { padding: 100px 0; background: var(--bg-section); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }

.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 28px;
    transition: var(--transition); display: flex; flex-direction: column;
    position: relative;
}
.pricing-card:hover { transform: translateY(-6px); border-color: rgba(108,92,231,0.3); }
.pricing-card-featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, #1a1a4e 0%, var(--bg-card) 100%);
    box-shadow: 0 0 40px rgba(108,92,231,0.2);
    transform: scale(1.03);
}
.pricing-card-featured:hover { transform: scale(1.05); }

.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 6px 20px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700; color: #fff;
    white-space: nowrap;
}

.pricing-header { text-align: center; margin-bottom: 24px; }
.pricing-header h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700; }
.pricing-desc { font-size: 0.88rem; color: var(--text-muted); margin: 6px 0 16px; }
.pricing-price { margin-bottom: 8px; }
.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem; font-weight: 900;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.price-currency { font-size: 1.5rem; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }
.pricing-sub { font-size: 0.82rem; color: var(--text-muted); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.pricing-features li { font-size: 0.92rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

.pricing-guarantee { text-align: center; margin-top: 32px; font-size: 0.88rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section {
    padding: 100px 0; text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d30 100%);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(108,92,231,0.15), transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; margin-bottom: 16px;
    position: relative; z-index: 1;
}
.cta-section p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 36px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.site-footer {
    background: #060615; border-top: 1px solid var(--border);
    padding: 48px 0 24px; text-align: center;
}
.footer-brand .logo-text { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 24px 0; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { font-size: 0.8rem; color: var(--text-muted); }

/* ===== ANIMATIONS - REVEAL ON SCROLL ===== */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-slide-up { opacity: 0; animation: slideUp 0.8s ease forwards; }
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-stats { gap: 24px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }
    .pricing-card-featured { transform: scale(1); }
    .pricing-card-featured:hover { transform: scale(1.02); }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
    .section-header { margin-bottom: 36px; }
    .problem-section, .solution-section, .features-section,
    .testimonials-section, .pricing-section, .cta-section { padding: 60px 0; }
}
