@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* Core Styles */
:root {
    --brand-navy: #0F172A;
    --brand-teal: #0D9488;
    --brand-safety-orange: #EA580C;
    --brand-slate-700: #334155;
    --brand-slate-800: #1E293B;
    --brand-slate-50: #f8fafc;
    --brand-slate-100: #f1f5f9;
    --brand-slate-200: #e2e8f0;
    --brand-slate-400: #94a3b8;
    --brand-slate-500: #64748b;
    --brand-slate-600: #475569;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--brand-slate-800);
    background: white;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glass Navigation - Refined for Control Room Aesthetic */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.container-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Components */
.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--brand-slate-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-slate-400);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-safety-orange);
    color: white;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px -3px rgba(234, 88, 12, 0.4);
}

.btn-primary:hover {
    background: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -5px rgba(234, 88, 12, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.site-footer {
    background: var(--brand-navy);
    padding: 5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5rem;
    color: white;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .footer-nav {
        gap: 1.25rem;
    }
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-slate-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.trust-markers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-slate-500);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Mobile Menu */
.mobile-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}

@media (min-width: 1024px) {
    .mobile-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background: var(--brand-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 49;
    box-sizing: border-box;
}

.mobile-menu.open {
    display: block;
}

.mobile-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-of-type {
    border-bottom: none;
}

/* Responsive Table Wrapper for Comparison Tables */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

@media (max-width: 640px) {
    .table-scroll table {
        font-size: 0.8rem;
    }

    .table-scroll th,
    .table-scroll td {
        padding: 10px 12px;
    }
}

/* Mobile hero padding reduction */
@media (max-width: 768px) {
    .hero-ngo,
    .hero-mining,
    .hero-energy,
    .hero-trader,
    .hero-compare {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .cta-box {
        padding: 24px;
    }
}

/* Page Hero — World Map Header */
.page-hero {
    background: #020617 url('/world-map-bg.png') center top / cover no-repeat;
    position: relative;
    padding: 140px 20px 60px;
    text-align: center;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.92));
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 auto 16px;
    max-width: 900px;
}

.page-hero .hero-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 110px 16px 40px;
    }
}