/* ===============
   GOOGLE FONTS
   =============== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ===============
   CSS VARIABLES
   =============== */
:root {
    --primary: #00e5ff;
    --primary-dark: #00b8d4;
    --accent: #f5c518;
    --bg: #0b0c1a;
    --bg-2: #111228;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-solid: #161830;
    --text: #e8eaf6;
    --text-muted: #7986cb;
    --border: rgba(255,255,255,0.08);
    --glow: 0 0 20px rgba(0,229,255,0.25);
    --radius: 16px;
    --speed: 0.3s;
    --font-head: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ===============
   RESET
   =============== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--speed);
}

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ===============
   CONTAINER
   =============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============
   HEADER
   =============== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11,12,26,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-list a {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    transition: color var(--speed), background var(--speed);
}

.nav-list a:hover {
    color: var(--primary);
    background: rgba(0,229,255,0.08);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #0b0c1a !important;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: background var(--speed), box-shadow var(--speed), transform var(--speed);
    white-space: nowrap;
}

.btn-signup:hover {
    background: #fff;
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: border-color var(--speed);
}

.mobile-menu-toggle:hover { border-color: var(--primary); }

/* ===============
   AD BANNER
   =============== */
.ad-banner-container {
    margin-top: 72px;
    padding: 16px 24px;
}

.ad-banner-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ===============
   FOOTER
   =============== */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 18px;
}

.footer-col p,
.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 900px) {
    .mobile-menu-toggle { display: block; }

    nav {
        display: block;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(11,12,26,0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        flex: unset;
        justify-content: unset;
    }

    nav.active {
        max-height: 500px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
        align-items: flex-start;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        font-size: 14px;
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .footer { padding: 48px 0 24px; margin-top: 60px; }
    .footer-grid { gap: 28px; }
}

/* ===============
   MOBILE STICKY BAR
   =============== */
.mobile-sticky-bar {
    display: none;
}

@media (max-width: 900px) {
    .mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1100;
        padding: 10px 16px;
        gap: 10px;
        background: rgba(11, 12, 26, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
    }

    .mobile-sticky-bar .btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        border-radius: 12px;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 0.3px;
        transition: opacity 0.2s, transform 0.2s;
    }

    .mobile-sticky-bar .btn:active {
        opacity: 0.85;
        transform: scale(0.97);
    }

    .mobile-sticky-bar .btn-login {
        background: #3b5bdb;
        color: #fff;
    }

    .mobile-sticky-bar .btn-register {
        background: var(--primary);
        color: #0b0c1a;
    }

    /* Push page content up so footer isn't hidden behind the bar */
    body {
        padding-bottom: 72px;
    }
}
