/* =========================================
   1. VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --bg-black: #050505;
    --bg-darker: #0a0a0a;
    --surface: #111111;
    --border-color: #222222;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent-green: #00ff41;
    --accent-green-dark: #00cc33;
    --accent-glow: rgba(0, 255, 65, 0.15);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-green { color: var(--accent-green); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* =========================================
   2. NAVBAR (Solid Black & Static)
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #050505;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; height:100px; width:200px; }
.logo-img { height: 100px; object-fit:contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.2rem; color: #fff; }
.brand-sub { font-size: 0.65rem; color: #888; letter-spacing: 1px; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 1rem; color: #888; font-weight: 500; transition: var(--transition); position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -8px; left: 0;
    width: 100%; height: 3px; background: var(--accent-green); border-radius: 2px;
}

.search-bar {
    display: flex; align-items: center; background: #111;
    border-radius: 30px; padding: 5px 15px; border: 1px solid #333;
}
.search-bar input {
    border: none; background: transparent; padding: 8px 10px;
    font-size: 0.9rem; outline: none; width: 150px; color: #fff;
}
.search-bar button { background: transparent; border: none; color: #888; cursor: pointer; font-size: 1rem; padding: 5px; }
.search-bar button:hover { color: var(--accent-green); }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-login { 
    font-size: 0.95rem; color: #fff; font-weight: 600; 
    padding: 8px 16px; border: 1px solid #333; border-radius: 30px; 
    transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.btn-login:hover { border-color: var(--accent-green); color: var(--accent-green); }

.btn-primary {
    background: var(--accent-green); color: #000;
    padding: 10px 20px; border-radius: 30px;
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: 1px solid var(--accent-green);
    display: flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent-green-dark); box-shadow: 0 0 15px var(--accent-glow); }

/* =========================================
   HAMBURGER MENU (Hidden on Desktop)
   ========================================= */
.hamburger { 
    display: none; /* Hidden on desktop */
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px;
    padding: 5px;
    z-index: 1001;
}

.hamburger .bar { 
    width: 28px; 
    height: 3px; 
    background-color: #ffffff;
    transition: all 0.3s ease; 
    border-radius: 3px;
    display: block;
}

.hamburger.active .bar:nth-child(1) { 
    transform: translateY(9px) rotate(45deg); 
    background-color: var(--accent-green); 
}
.hamburger.active .bar:nth-child(2) { 
    opacity: 0; 
}
.hamburger.active .bar:nth-child(3) { 
    transform: translateY(-9px) rotate(-45deg); 
    background-color: var(--accent-green); 
}

/* =========================================
   MOBILE MENU (Black Theme - FIXED)
   ========================================= */
.mobile-menu {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    max-width: 400px; /* Better than full width on tablet */
    height: 100vh;
    background: #0a0a0a; /* FIXED: Was 'white' originally */
    z-index: 9999; 
    display: flex; 
    flex-direction: column;
    transition: right 0.4s ease-in-out; 
    border-left: 1px solid var(--accent-green);
}

.mobile-menu.active { 
    right: 0; 
}

.mobile-menu-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px; 
    border-bottom: 1px solid #222; 
}

.close-menu { 
    font-size: 1.5rem; 
    color: #fff; 
    cursor: pointer; 
    background: transparent; 
    border: none;
}

.mobile-nav-links { 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    gap: 15px; 
    overflow-y: auto; 
}

.mobile-nav-links a { 
    font-size: 1.2rem; 
    color: #fff; 
    font-weight: 500; 
    padding: 12px 0; 
    border-bottom: 1px solid #222; 
}

.mobile-nav-links a:hover { 
    color: var(--accent-green); 
    padding-left: 10px; 
}

.mobile-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 20px; 
}

.mobile-actions .btn-login, 
.mobile-actions .btn-primary { 
    width: 100%; 
    justify-content: center; 
    padding: 15px; 
    font-size: 1.1rem; 
    text-align: center; 
}

.mobile-search { 
    display: flex; 
    align-items: center; 
    background: #111; 
    border-radius: 10px; 
    padding: 5px 15px; 
    margin-top: 10px; 
    border: 1px solid #333; 
}

.mobile-search input { 
    flex: 1; 
    border: none; 
    background: transparent; 
    padding: 12px 0; 
    font-size: 1rem; 
    outline: none; 
    color: #fff; 
}

.mobile-search button { 
    background: transparent; 
    border: none; 
    color: #888; 
    font-size: 1.1rem; 
    cursor: pointer;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero { padding: 80px 0 100px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 255, 65, 0.1); border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--accent-green); padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; margin-bottom: 1.5rem;
}
.badge-pill .dot { width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 8px var(--accent-green); }

.hero h1 { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: #fff; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 90%; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }

.btn-secondary {
    background: transparent; border: 1px solid #333; color: #fff;
    padding: 0.8rem 2rem; border-radius: 30px; font-weight: 600; font-size: 1rem;
    transition: var(--transition); display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent-green); color: var(--accent-green); }
.large { padding: 0.8rem 2rem; font-size: 1rem; }

.hero-stats-mini { display: flex; gap: 2rem; }
.hero-stats-mini div { display: flex; flex-direction: column; }
.hero-stats-mini strong { font-size: 1.2rem; color: #fff; }
.hero-stats-mini span { font-size: 0.8rem; color: var(--text-muted); }

.hero-visual { 
    position: relative; 
    height: 500px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.hero-image {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; max-width: 500px; height: auto; opacity: 0.6;
    z-index: 1; filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.3));
    pointer-events: none;
}

.glass-card {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333; border-radius: 16px;
    padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: absolute;
}

.main-crypto-card { top: 20px; right: 0; width: 320px; z-index: 2; border-color: rgba(0, 255, 65, 0.2); }
.profit-card { bottom: 20px; left: 0; width: 240px; z-index: 3; border-color: rgba(0, 255, 65, 0.4); }

.crypto-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; border-bottom: 1px solid #222; padding-bottom: 10px; }
.crypto-icon { background: #f7931a; color: #fff; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-weight: bold; }
.crypto-header h4 { font-size: 1rem; margin: 0; color: #fff; }
.crypto-header p { font-size: 0.7rem; margin: 0; color: var(--text-muted); }
.exchange { margin-left: auto; font-size: 0.7rem; color: var(--accent-green); }
.crypto-price h2 { font-size: 1.8rem; margin-bottom: 5px; color: #fff; }
.crypto-price .currency { font-size: 0.9rem; color: var(--text-muted); }
.change.positive { color: var(--accent-green); font-size: 0.9rem; }
.crypto-footer { margin-top: 1rem; display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }
.market-open { color: var(--accent-green); }

.profit-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; }
.profit-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.progress-bar { width: 100%; height: 6px; background: #222; border-radius: 3px; overflow: hidden; }
.progress-bar .fill { width: 70%; height: 100%; background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }

/* =========================================
   4. SECTIONS & GRIDS
   ========================================= */
.section { padding: 100px 0; }
.bg-darker { background: var(--bg-darker); }
.section-title { font-size: 2.5rem; color: #fff; margin-bottom: 1rem; line-height: 1.2; }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }

.grid-2-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; text-align: left; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.feature-card {
    background: var(--surface); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 2rem; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(0, 255, 65, 0.3); transform: translateY(-5px); }
.icon-circle {
    width: 40px; height: 40px; background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem; margin-bottom: 1rem;
}
.feature-card h3, .feature-card h4 { color: #fff; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

.large-card { display: flex; flex-direction: column; }
.inner-mockup { background: #0a0a0a; border-radius: 12px; padding: 1.5rem; margin-top: 2rem; border: 1px solid #222; }
.mockup-header { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 100px; gap: 8px; margin-bottom: 1rem; }
.bar { flex: 1; background: var(--accent-green); border-radius: 4px 4px 0 0; opacity: 0.8; }
.mockup-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #222; padding-top: 1rem; }
.mockup-footer strong { font-size: 1.2rem; color: #fff; }

.right-column { display: flex; flex-direction: column; gap: 2rem; }
.small-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* STATS SECTION */
.stats-section { background: var(--bg-black); padding: 100px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.stat-card { 
    background: var(--surface); border: 1px solid var(--border-color); 
    border-radius: 16px; padding: 2rem; text-align: left; 
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card:hover { border-color: rgba(0, 255, 65, 0.3); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 65, 0.05); }
.stat-card span { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 1rem; font-weight: 500; letter-spacing: 0.5px; }
.stat-card h3 { font-size: 2.5rem; color: #fff; margin-bottom: 0.8rem; font-weight: 700; line-height: 1; }
.stat-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.stat-card p.text-green { color: var(--accent-green); font-weight: 500; }

/* Tools Section */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.icon-small { background: #1a1a1a; padding: 10px; border-radius: 8px; border: 1px solid #333; font-size: 1.2rem; }
.feature-list strong { display: block; color: #fff; margin-bottom: 5px; }
.feature-list p { font-size: 0.85rem; color: var(--text-muted); }

.engine-card { background: var(--surface); border: 1px solid rgba(0, 255, 65, 0.25); border-radius: 16px; padding: 25px; }
.engine-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }
.badge-ai { background: var(--accent-green); color: #000; padding: 3px 10px; border-radius: 4px; font-weight: 700; font-size: 0.7rem; }
.engine-card h4 { color: #fff; font-size: 1.3rem; margin-bottom: 1.5rem; }

.market-list { display: flex; flex-direction: column; gap: 12px; }
.market-item { display: flex; align-items: center; background: #0a0a0a; padding: 15px; border-radius: 10px; border: 1px solid #222; }
.coin-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1rem; margin-right: 12px; flex-shrink: 0; }
.coin-icon.btc { background: #f7931a; color: #fff; }
.coin-icon.eth { background: #627eea; color: #fff; }
.market-item div { flex: 1; }
.market-item strong { font-size: 0.95rem; display: block; color: #fff; margin-bottom: 3px; }
.market-item small { font-size: 0.75rem; color: var(--text-muted); }
.market-item .text-right strong { color: var(--accent-green); }

.engine-footer { display: flex; justify-content: space-between; border-top: 1px solid #222; padding-top: 1.5rem; margin-top: 1.5rem; }
.engine-footer small { color: var(--text-muted); display: block; margin-bottom: 5px; font-size: 0.75rem; }
.engine-footer strong { display: block; color: #fff; font-size: 1.2rem; }

/* Security Section */
.security-banner {
    background: rgba(0, 255, 65, 0.05); border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px; padding: 1.5rem 2rem; margin-top: 3rem;
    display: flex; justify-content: space-between; align-items: center; text-align: left;
}
.security-banner strong { color: #fff; display: block; margin-bottom: 5px; }
.security-banner p { font-size: 0.85rem; color: var(--text-muted); }

/* Dashboard Section */
.dashboard-mockup { background: var(--surface); border: 1px solid rgba(0, 255, 65, 0.25); border-radius: 16px; padding: 2.5rem; max-width: 900px; margin: 0 auto; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.dash-header small { color: var(--text-muted); display: block; margin-bottom: 8px; font-size: 0.85rem; }
.dash-header h3 { font-size: 2.2rem; color: #fff; }
.chart-area { height: 220px; background: #0a0a0a; border-radius: 10px; border: 1px solid #222; margin-bottom: 2rem; position: relative; overflow: hidden; }
.chart-line { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, transparent 0%, rgba(0,255,65,0.1) 100%); border-top: 2px solid var(--accent-green); border-radius: 50% 50% 0 0 / 20% 20% 0 0; }
.dash-footer { display: flex; justify-content: space-between; text-align: left; flex-wrap: wrap; gap: 1.5rem; }
.dash-footer > div { flex: 1; min-width: 120px; }
.dash-footer small { color: var(--text-muted); display: block; margin-bottom: 6px; font-size: 0.8rem; }
.dash-footer strong { color: #fff; font-size: 1.2rem; }

/* =========================================
   5. FOOTER
   ========================================= */
.footer { background: #000; padding: 80px 0 20px; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0; max-width: 300px; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { width: 32px; height: 32px; background: #111; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; transition: var(--transition); }
.social-icons a:hover { background: var(--accent-green); color: #000; }

.footer-links h4, .footer-contact h4 { color: #fff; margin-bottom: 1.5rem; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-green); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { font-size: 1.1rem; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 2rem; color: var(--text-muted); font-size: 0.85rem; }

/* =========================================
   6. RESPONSIVE DESIGN (TABLET)
   ========================================= */
@media (max-width: 992px) {
    .hero-grid, .grid-2-col, .tools-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 3rem; }
}

/* =========================================
   7. MOBILE VIEW FIX (CRITICAL)
   ========================================= */
@media (max-width: 768px) {
    /* --- NAVBAR FIX --- */
    /* Hide desktop-only elements properly */
    .desktop-only { display: none !important; }
    
    /* SHOW HAMBURGER */
    .hamburger { 
        display: flex !important; 
        flex-direction: column !important;
        gap: 6px !important;
        padding: 5px !important;
        z-index: 1001 !important;
    }

    .navbar { padding: 10px 0; }
    
    /* --- HERO TEXT --- */
    .hero { padding: 50px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; max-width: 100%; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .btn-primary.large, .btn-secondary.large { width: 100%; text-align: center; justify-content: center; }
    .hero-stats-mini { flex-wrap: wrap; gap: 1.5rem; }

    /* --- HERO VISUAL FIX --- */
    .hero-visual { 
        height: auto; 
        display: flex; 
        flex-direction: column; 
        gap: 20px; 
        margin-top: 2rem; 
        position: relative;
        padding: 20px 0;
    }
    .hero-image { 
        position: relative; top: auto; left: auto;
        transform: none; width: 100%; max-width: 100%;
        height: auto; opacity: 0.8; z-index: 1;
        margin-bottom: 20px;
    }
    .main-crypto-card, .profit-card {
        position: relative; width: 100%; 
        left: auto; right: auto; top: auto; bottom: auto;
        margin: 0 auto; z-index: 2;
    }
    .main-crypto-card { padding: 15px; }
    .profit-card { padding: 15px; }
    .crypto-price h2 { font-size: 1.5rem; }
    .crypto-header h4 { font-size: 0.9rem; }
    .crypto-header p { font-size: 0.65rem; }
    .profit-card h3 { font-size: 1.3rem; }

    /* Stats Mobile */
    .stats-section { padding: 60px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
    .stat-card { padding: 1.5rem; }
    .stat-card h3 { font-size: 2rem; }

    /* General Mobile Fixes */
    .dash-footer { flex-wrap: wrap; gap: 1.5rem; }
    .dash-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .dash-header h3 { font-size: 1.8rem; }
    .security-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .tools-grid { gap: 2rem; }
    .engine-card { padding: 20px; }
    .market-item { padding: 12px; }
    .dashboard-mockup { padding: 1.5rem; }
}