/* ===== CSS VARIABLES ===== */
:root {
    --midnight: #2C3E50;
    --midnight-light: #34495e;
    --cloud: #ECF0F1;
    --cloud-dark: #dde4e6;
    --accent: #E74C3C;
    --accent-hover: #c0392b;
    --white: #ffffff;
    --text-muted: #7f8c8d;
    --border: rgba(44, 62, 80, 0.12);
    --shadow-sm: 0 2px 12px rgba(44,62,80,0.08);
    --shadow-md: 0 8px 32px rgba(44,62,80,0.12);
    --shadow-lg: 0 20px 60px rgba(44,62,80,0.15);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--midnight);
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== NAVBAR ===== */
.bdnexus-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.bdnexus-nav .container-fluid {
    padding: 0 32px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-box {
    width: 44px;
    height: 44px;
    background: var(--midnight);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box span {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -1px;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--midnight);
    line-height: 1;
}

.brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'DM Sans', sans-serif;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--midnight);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--cloud);
    color: var(--midnight);
}

/* Nav Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-nav-login {
    background: transparent;
    color: var(--midnight);
    border: 1.5px solid var(--midnight);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-nav-login:hover {
    background: var(--midnight);
    color: white;
}

.btn-nav-register {
    background: var(--midnight);
    color: white;
    border: 1.5px solid var(--midnight);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-nav-register:hover {
    background: var(--midnight-light);
    border-color: var(--midnight-light);
    color: white;
}

/* Hamburger */
.nav-toggler {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--midnight);
    font-size: 18px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(160deg, var(--cloud) 0%, #f4f7f8 60%, var(--white) 100%);
    padding: 72px 0 48px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44,62,80,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(44,62,80,0.08);
    color: var(--midnight);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(44,62,80,0.12);
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--midnight);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== SEARCH BOX ===== */
.search-container {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 8px 8px 8px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto 40px;
    box-shadow: var(--shadow-md);
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--midnight);
    font-family: 'DM Sans', sans-serif;
    outline: none;
}

.search-field::placeholder {
    color: #b2bec3;
}

.search-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.search-btn {
    background: var(--midnight);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
}

.search-btn:hover {
    background: var(--midnight-light);
    transform: translateY(-1px);
}

/* Quick stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--midnight);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 16px 0 64px;
    background: var(--white);
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1.5px solid var(--border);
    position: relative;
}

#billboard-map {
    height: 480px;
    width: 100%;
}

.map-overlay-label {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--midnight);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    z-index: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-live-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* ===== HOW IT WORKS ===== */
.how-section {
    padding: 80px 0;
    background: var(--cloud);
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    color: var(--midnight);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.how-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.how-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--midnight);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.how-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--midnight);
}

.how-card:hover::after {
    transform: scaleX(1);
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--cloud-dark);
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon {
    width: 52px;
    height: 52px;
    background: var(--midnight);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: white;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--midnight);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231,76,60,0.15) 0%, transparent 70%);
}

.cta-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-sub {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin-bottom: 40px;
}

.cta-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-card {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 28px 32px;
    min-width: 240px;
    text-align: left;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.cta-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
}

.cta-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.cta-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-cta-primary {
    display: inline-block;
    background: white;
    color: var(--midnight);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-cta-primary:hover {
    background: var(--cloud);
    color: var(--midnight);
}

.btn-cta-accent {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

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

/* ===== FOOTER ===== */
.bdnexus-footer {
    background: #1a252f;
    color: rgba(255,255,255,0.5);
    padding: 28px 0;
    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ===== MOBILE NAV MENU ===== */
.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: var(--midnight);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu-auth {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.mobile-menu-auth a {
    border-bottom: none !important;
    padding: 10px 20px !important;
    text-align: center;
    border-radius: var(--radius-sm);
    flex: 1;
}

.mobile-menu-auth .btn-nav-login {
    display: block;
}

.mobile-menu-auth .btn-nav-register {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .nav-links, .nav-auth {
        display: none;
    }
    .nav-toggler {
        display: block;
    }
}

@media (max-width: 767px) {
    .bdnexus-nav .container-fluid {
        padding: 0 16px;
    }
    .hero-section {
        padding: 48px 0 36px;
        text-align: center;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .search-container {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 12px;
        gap: 10px;
    }
    .search-divider {
        display: none;
    }
    .search-field {
        width: 100%;
        padding: 8px 12px;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }
    .search-btn {
        width: 100%;
        border-radius: var(--radius-sm);
    }
    .hero-stats {
        gap: 28px;
    }
    #billboard-map {
        height: 320px;
    }
    .how-section {
        padding: 56px 0;
    }
    .cta-section {
        padding: 56px 0;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

/* ===== LEAFLET CUSTOM MARKERS ===== */
.billboard-marker {
    background: var(--accent);
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.billboard-marker.digital {
    background: #27ae60;
}

.billboard-popup {
    font-family: 'DM Sans', sans-serif;
}
