/* ===== TradeX AI - Complete CSS ===== */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00d2ff;
    --accent: #ff6b6b;
    --success: #00c853;
    --warning: #ffd600;
    --dark: #0a0a1a;
    --darker: #060612;
    --light: #ffffff;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Animated Background ===== */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background: var(--darker); overflow: hidden;
}
.animated-bg::before {
    content: ''; position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.particle { position: absolute; background: var(--primary); border-radius: 50%; animation: float 6s ease-in-out infinite; opacity: 0.3; }

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-2%, 2%) rotate(1deg); }
    50% { transform: translate(2%, -1%) rotate(-1deg); }
    75% { transform: translate(-1%, -2%) rotate(1deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

/* ===== Header Scroll Effect ===== */
.header.scrolled { background: rgba(6, 6, 18, 0.95); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); }

/* ===== Hamburger Animation ===== */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ===== Mobile Menu ===== */
#mobileMenu {
    position: fixed !important; top: 0 !important; right: -100% !important;
    width: 85% !important; max-width: 350px !important;
    height: 100vh !important; height: 100dvh !important;
    background: #0a0a1a !important; z-index: 1999 !important;
    padding: 1.5rem !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important; overflow-x: hidden !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important; visibility: visible !important; opacity: 1 !important;
}
#mobileMenu.active { right: 0 !important; }

#mobileMenu .mobile-menu-header {
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    margin-bottom: 1.5rem !important; padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}
#mobileMenu .mobile-menu-logo {
    font-size: 1.5rem !important; font-weight: 800 !important;
    background: var(--gradient-1) !important;
    -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important;
}
#mobileMenu .mobile-menu-close {
    background: rgba(255, 255, 255, 0.15) !important; border: none !important;
    color: white !important; font-size: 1.2rem !important; cursor: pointer !important;
    width: 35px !important; height: 35px !important; border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: all 0.3s ease !important;
}
#mobileMenu .mobile-menu-close:hover { background: var(--accent) !important; transform: rotate(90deg) !important; }

#mobileMenu .mobile-menu-links {
    display: flex !important; flex-direction: column !important; gap: 0.3rem !important;
}
#mobileMenu .mobile-menu-links a {
    color: white !important; text-decoration: none !important;
    padding: 0.9rem 1rem !important; border-radius: 10px !important;
    display: flex !important; align-items: center !important; gap: 0.8rem !important;
    font-size: 0.95rem !important; font-weight: 500 !important;
    transition: all 0.3s ease !important;
}
#mobileMenu .mobile-menu-links a:hover,
#mobileMenu .mobile-menu-links a:active {
    background: rgba(255, 255, 255, 0.1) !important; transform: translateX(5px) !important;
}
#mobileMenu .mobile-menu-links a i {
    width: 20px !important; text-align: center !important; font-size: 1rem !important; color: var(--primary) !important;
}
#mobileMenu .mobile-menu-divider {
    border: none !important; border-top: 1px solid rgba(255, 255, 255, 0.15) !important; margin: 1rem 0 !important;
}
#mobileMenu .mobile-menu-download { margin-top: 0.5rem !important; }
#mobileMenu .mobile-menu-download .btn {
    width: 100% !important; text-align: center !important; justify-content: center !important;
    padding: 0.9rem !important; font-size: 0.95rem !important;
    display: flex !important; align-items: center !important; gap: 0.5rem !important;
}

/* Mobile Overlay */
#mobileOverlay {
    display: none !important; position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important; z-index: 1998 !important;
}
#mobileOverlay.active { display: block !important; }

/* Body scroll lock */
body.menu-open { overflow: hidden !important; }

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--gradient-1); border: none; border-radius: 50%;
    color: white; font-size: 1.2rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    z-index: 999; box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
    transition: var(--transition);
}
.scroll-to-top.visible { display: flex !important; }
.scroll-to-top:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(108, 92, 231, 0.6); }

/* ===== Hero Section ===== */
.hero-content { max-width: 1000px; z-index: 1; }
.hero-badge {
    display: inline-block; padding: 0.5rem 1.5rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 50px; margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out; backdrop-filter: blur(10px); font-size: 0.9rem;
}
.hero-title { animation: titleFloat 3s ease-in-out infinite; }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem; max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; display: flex; flex-direction: column; }
.hero-stat-number {
    font-size: 2rem; font-weight: 800;
    background: var(--gradient-3); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { color: var(--gray-500); font-size: 0.9rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; align-items: center; gap: 1.5rem; justify-content: center; flex-wrap: wrap; color: var(--gray-500); font-size: 0.9rem; }
.trust-badge { background: var(--glass-bg); padding: 0.5rem 1rem; border-radius: 50px; border: 1px solid var(--glass-border); }
.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes titleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3); }
    50% { box-shadow: 0 20px 50px rgba(108, 92, 231, 0.6); }
}

/* ===== Sections Common ===== */
.features-section, .performance-section, .download-app { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.how-it-works, .testimonials {
    padding: 6rem 2rem; max-width: 1400px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.section-subtitle { text-align: center; color: var(--gray-400); margin-bottom: 4rem; font-size: 1.1rem; }

/* ===== Features Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2.5rem 2rem;
    transition: var(--transition); backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--glass-shadow); }
.feature-icon {
    width: 70px; height: 70px; background: var(--gradient-1);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; font-size: 2rem;
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p { color: var(--gray-400); line-height: 1.8; }

/* ===== Steps Grid ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card {
    text-align: center; padding: 2rem; background: var(--glass-bg);
    border-radius: 20px; border: 1px solid var(--glass-border); transition: var(--transition);
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow); }
.step-number {
    width: 60px; height: 60px; background: var(--gradient-1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; margin: 0 auto 1.5rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { margin-bottom: 1rem; }
.step-card p { color: var(--gray-400); }

/* ===== Performance ===== */
.performance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.performance-card { text-align: center; padding: 2rem; background: var(--glass-bg); border-radius: 20px; border: 1px solid var(--glass-border); }
.performance-value {
    font-size: 3rem; font-weight: 800;
    background: var(--gradient-3); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.performance-label { font-weight: 600; margin: 0.5rem 0; }
.performance-card p { color: var(--gray-500); font-size: 0.85rem; }

.disclaimer-box {
    background: rgba(255, 214, 0, 0.1); border: 1px solid rgba(255, 214, 0, 0.3);
    border-radius: 10px; padding: 1rem 2rem; display: flex; align-items: center;
    gap: 1rem; color: var(--warning); font-size: 0.9rem;
}

/* ===== Testimonials ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2rem; backdrop-filter: blur(10px); transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow); }
.testimonial-rating { margin-bottom: 1rem; font-size: 1.2rem; }
.testimonial-text { font-style: italic; margin-bottom: 1.5rem; color: var(--gray-400); line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.avatar-1 { background: var(--gradient-2); }
.avatar-2 { background: var(--gradient-3); }
.avatar-3 { background: var(--gradient-4); }
.author-info h4 { margin-bottom: 0.2rem; }
.author-info p { color: var(--gray-500); font-size: 0.9rem; }

/* ===== Download Section ===== */
.download-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.download-info h2 {
    font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem;
    background: var(--gradient-1); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.download-info p { color: var(--gray-400); margin-bottom: 2rem; font-size: 1.1rem; line-height: 1.8; }
.download-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.download-feature {
    display: flex; align-items: center; gap: 0.8rem; padding: 1rem;
    background: var(--glass-bg); border-radius: 12px; border: 1px solid var(--glass-border);
}
.download-feature i { font-size: 1.5rem; color: var(--success); }
.download-feature span { font-size: 0.9rem; color: var(--gray-400); }

.download-single-btn {
    display: inline-flex; align-items: center; gap: 1rem;
    padding: 1.2rem 3rem; background: var(--gradient-4);
    border: none; border-radius: 50px; color: var(--dark);
    font-size: 1.2rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
    animation: pulseGreen 2s ease-in-out infinite;
}

/* Download Buttons - Android & iOS */
.download-buttons {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem;
}
.download-btn {
    display: inline-flex; align-items: center; gap: 1rem;
    padding: 1rem 2rem; border-radius: 16px;
    font-weight: 600; cursor: pointer; text-decoration: none;
    transition: all 0.3s ease; border: 2px solid transparent;
    min-width: 200px;
}
.download-btn i { font-size: 2.2rem; }
.download-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.download-btn-text small { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.download-btn-text strong { font-size: 1.15rem; }
.download-btn-android {
    background: linear-gradient(135deg, #3ddc84 0%, #00a86b 100%);
    color: #fff; box-shadow: 0 10px 30px rgba(61, 220, 132, 0.3);
}
.download-btn-android:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(61, 220, 132, 0.5); }
.download-btn-ios {
    background: linear-gradient(135deg, #555 0%, #1a1a1a 100%);
    color: #fff; border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.download-btn-ios:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); border-color: rgba(255,255,255,0.4); }

.hero-stats-note {
    text-align: center; color: var(--gray-500); font-size: 0.8rem;
    margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3); }
    50% { box-shadow: 0 20px 50px rgba(67, 233, 123, 0.6); }
}
.download-single-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(67, 233, 123, 0.5); }
.download-single-btn i { font-size: 1.8rem; }
.download-rating { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.rating-stars { color: var(--warning); font-size: 1.2rem; }
.rating-text { color: var(--gray-500); font-size: 0.9rem; }
.download-image { text-align: center; }
.download-image i {
    font-size: 15rem; background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; animation: float 3s ease-in-out infinite;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 2rem; text-align: center;
    background: var(--gradient-1); position: relative; overflow: hidden;
}
.cta-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: white; }
.cta-text { font-size: 1.2rem; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.9); }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }

/* ===== Footer ===== */
.footer { padding: 4rem 2rem 2rem; background: rgba(0, 0, 0, 0.3); border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col p.address { color: #adb5bd; margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.8; }
.footer-col p.address i { color: var(--primary); margin-right: 0.5rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.8rem; color: #adb5bd; font-size: 0.9rem; }
.footer-contact-item i { margin-top: 3px; color: var(--primary); width: 16px; text-align: center; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--gray-400); text-decoration: none; transition: var(--transition); cursor: pointer; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); color: var(--gray-500); }
.footer-disclaimer { margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.6; color: var(--gray-500); max-width: 900px; margin-left: auto; margin-right: auto; }

/* ===== Chrome Specific Fixes ===== */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #mobileMenu {
        -webkit-transform: translateX(0); transform: translateX(0);
        -webkit-overflow-scrolling: touch;
    }
    body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
}

/* ===== Responsive ===== */
@media screen and (max-width: 992px) {
    .download-content { grid-template-columns: 1fr; text-align: center; }
    .download-image { order: -1; }
    .download-image i { font-size: 10rem; }
    .download-rating { justify-content: center; }
    .download-buttons { justify-content: center; }
    .download-btn { min-width: 220px; }
    .hero { padding: 5rem 1.5rem 3rem; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; }
}

@media screen and (max-width: 768px) {
    html { font-size: 14px; }
    .nav-container { padding: 0.5rem 1rem; }
    .logo { font-size: 1.5rem; }
    .hero { padding: 4rem 1rem 2rem; min-height: auto; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-badge { font-size: 0.85rem; padding: 0.4rem 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 300px; text-align: center; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 2rem 1.5rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .performance-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }
    .features-section, .how-it-works, .performance-section, .testimonials, .download-app, .cta-section { padding: 3rem 1rem; }
    .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1rem; }
    .download-features { grid-template-columns: 1fr; }
    .download-buttons { justify-content: center; }
    .download-btn { min-width: 100%; max-width: 300px; justify-content: center; }
    .download-single-btn { padding: 1rem 2rem; font-size: 1rem; }
}

@media screen and (max-width: 480px) {
    html { font-size: 13px; }
    #mobileMenu { width: 100% !important; max-width: 100% !important; padding: 1.5rem !important; }
    #mobileMenu .mobile-menu-links a { padding: 0.8rem 1rem !important; font-size: 0.9rem !important; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat-number { font-size: 1.3rem; }
    .hero-stat-label { font-size: 0.75rem; }
    .performance-grid { grid-template-columns: 1fr; }
    .performance-value { font-size: 2.5rem; }
    .feature-icon { width: 50px; height: 50px; font-size: 1.5rem; }
    .feature-card h3 { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .logo { font-size: 1.3rem; }
}

@media screen and (max-width: 380px) {
    #mobileMenu { width: 100% !important; max-width: 100% !important; }
    #mobileMenu .mobile-menu-links a { padding: 0.7rem 0.8rem !important; font-size: 0.85rem !important; }
}