/* =========================================
   Premium Landing Styles (Capital.com Inspired)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-light: #ffffff;
    --bg-alt: #f7f9fa;
    --bg-dark: #111424;
    --text-main: #111424;
    --text-muted: #5e6b7e;
    --text-light: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #10b981;
    --border: #e5e7eb;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ───────────────────────────────── */
.nav-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 32px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-login {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-login:hover {
    color: var(--accent);
}

.btn-cta {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: var(--accent-hover);
}

/* ── HERO ──────────────────────────────── */
.hero {
    padding: 160px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: var(--text-main);
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 40px 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-btn-primary {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.hero-btn-primary:hover {
    background: var(--accent-hover);
}

.hero-btn-secondary {
    background: white;
    color: var(--text-main);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.hero-btn-secondary:hover {
    border-color: var(--text-main);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item svg {
    color: var(--success);
}

.hero-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(17, 20, 36, 0.08);
    background: white;
    border: 1px solid var(--border);
}

/* ── STATS BAR ─────────────────────────── */
.stats-bar {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 24px;
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── FEATURES SECTION ──────────────────── */
.features {
    padding: 100px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(17, 20, 36, 0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    color: var(--accent);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── MARKETS SECTION ──────────────────── */
.markets {
    background: var(--bg-dark);
    padding: 100px 24px;
    color: white;
}

.markets .section-title {
    color: white;
}

.markets .section-subtitle {
    color: #9ca3af;
}

.market-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.market-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.market-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.market-item-desc {
    color: #9ca3af;
    font-size: 0.95rem;
    margin: 0 0 16px 0;
}

.market-item-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── CTA SECTION ──────────────────────── */
.cta-section {
    padding: 100px 24px;
    background: var(--accent);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 24px 0;
    letter-spacing: -1px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--accent);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* ── FOOTER ──────────────────────────── */
.footer {
    background: var(--bg-dark);
    padding: 80px 24px 40px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-desc {
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 24px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── MOBILE ──────────────────────────── */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .feature-grid, .market-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}
