/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-darker: #05080e;
    --primary: #2962ff;
    --primary-hover: #0039cb;
    --accent: #00d2ff;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --border-color: #2d3748;
    --glass: rgba(255, 255, 255, 0.05);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: white;
    color: var(--bg-dark);
}

/* Header */
.main-header {
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    z-index: 1002;
    position: relative;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--glass);
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn {
    color: white;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(41, 98, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0aec0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Auth Buttons - Hide on Desktop to prevent duplication issues */
.mobile-auth {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .main-header .container {
        padding: 0 20px;
        position: relative;
    }

    .mobile-toggle {
        display: block;
        color: white;
        font-size: 24px;
        z-index: 1002;
        cursor: pointer;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        /* Narrower for better proportion */
        height: 100vh;
        background: #0b0f19;
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding: 80px 25px 30px;
        /* Reduced vertical padding */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 14px;
        /* Smaller, cleaner text */
        margin: 0;
        padding: 12px 0;
        /* Reduced padding */
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
        color: var(--text-muted);
    }

    .nav-link:hover,
    .nav-link.active {
        color: white;
        padding-left: 5px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        text-align: left;
        padding: 0;
        display: none;
        border: none;
        margin-top: 5px;
        border-radius: 4px;
    }

    .dropdown-item {
        padding: 10px 15px;
        /* Reduced padding */
        font-size: 13px;
        /* Smaller font */
        color: #a0aec0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Show Auth Buttons in Menu for Mobile */
    .mobile-auth {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        /* Less margin */
        gap: 12px;
        /* Less gap */
    }

    .mobile-auth .btn,
    .mobile-auth .login-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px;
        /* Slimmer buttons */
        font-size: 14px;
    }

    .auth-buttons {
        display: none;
        /* Hide original in header */
    }

    /* Overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: all;
        left: -100vw;
    }

    /* Hero Fixes */
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(41, 98, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(41, 98, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(41, 98, 255, 0.15);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
    position: relative;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    position: relative;
}

/* Steps / How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    background: var(--bg-darker);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    margin: 20px 0 15px;
    font-size: 24px;
}

.step-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* App Download */
.app-section {
    background: linear-gradient(135deg, #1a202c 0%, #0d1117 100%);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.app-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card p {
    font-size: 18px;
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 25px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats */
.stat-box {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Market List */
.market-list {
    display: grid;
    gap: 15px;
}

.market-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.market-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.market-list li i {
    font-size: 24px;
}

/* Accordion */
.accordion-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}