/* ============================================================
   RFC HEADER  —  Professional & Fully Responsive
   ============================================================ */

:root {
    --hdr-bg-start  : #06294a;
    --hdr-bg-end    : #0e3d6e;
    --hdr-height    : 62px;
    --hdr-accent    : #00d4ff;
    --hdr-accent2   : #4f8ef7;
    --hdr-text      : rgba(255,255,255,.88);
    --hdr-text-dim  : rgba(255,255,255,.55);
    --hdr-hover-bg  : rgba(255,255,255,.10);
    --hdr-active-bg : rgba(0,212,255,.15);
    --hdr-radius    : 6px;
    --hdr-transition: .2s cubic-bezier(.4,0,.2,1);
    --hdr-z         : 9000;   /* high enough to beat any page content */
}

/* ── Header Bar ─────────────────────────────────────────────── */
.landing-header {
    position : sticky;
    top       : 0;
    z-index   : var(--hdr-z);
    background: linear-gradient(100deg, var(--hdr-bg-start) 0%, var(--hdr-bg-end) 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
    height    : var(--hdr-height);
    display   : flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,212,255,.12);
}

/* Shimmer line */
.landing-header::before {
    content : '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hdr-accent), var(--hdr-accent2), transparent);
    opacity: .7;
}

.custom-container {
    width    : 100%;
    max-width: 1480px;
    margin   : 0 auto;
    padding  : 0 1.5rem;
}

/* ── Navbar row ─────────────────────────────────────────────── */
.navbar {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    gap            : 1rem;
    width          : 100%;
}

/* ── Brand ──────────────────────────────────────────────────── */
.navbar-brand {
    flex-shrink: 0;
    display    : flex;
    align-items: center;
}
.navbar-brand img {
    height    : 34px;
    width     : auto;
    filter    : brightness(0) invert(1);
    transition: opacity var(--hdr-transition);
}
.navbar-brand:hover img { opacity: .85; }

/* ── Desktop nav links ──────────────────────────────────────── */
.nav-desktop-links {
    display    : flex;
    align-items: center;
    gap        : 2px;
    flex       : 1;
    justify-content: flex-end;
}

.nav-link-d {
    display        : flex;
    align-items    : center;
    gap            : 6px;
    color          : var(--hdr-text);
    font-size      : 0.78rem;
    font-weight    : 500;
    padding        : 6px 10px;
    border-radius  : var(--hdr-radius);
    text-decoration: none;
    white-space    : nowrap;
    transition     : background var(--hdr-transition), color var(--hdr-transition);
    position       : relative;
}
.nav-link-d i {
    font-size  : 0.72rem;
    flex-shrink: 0;
    color      : var(--hdr-accent);
    transition : color var(--hdr-transition);
}
.nav-link-d:hover           { background: var(--hdr-hover-bg); color: #fff; }
.nav-link-d:hover i         { color: #fff; }
.nav-link-d.active          { background: var(--hdr-active-bg); color: var(--hdr-accent); font-weight:600; }
.nav-link-d.active::after {
    content   : '';
    position  : absolute;
    bottom: 0; left: 50%;
    transform : translateX(-50%);
    width     : 60%;
    height    : 2px;
    border-radius: 2px;
    background: var(--hdr-accent);
    box-shadow: 0 0 8px var(--hdr-accent);
}

/* App badges in desktop nav */
.nav-badges-d {
    display      : flex;
    align-items  : center;
    gap          : 5px;
    background   : rgba(0,0,0,.25);
    border       : 1px solid rgba(255,255,255,.1);
    padding      : 4px 8px;
    border-radius: 20px;
    margin-left  : 4px;
    flex-shrink  : 0;
}
.nav-badges-d img {
    height    : 22px;
    width     : auto;
    transition: transform var(--hdr-transition), opacity var(--hdr-transition);
}
.nav-badges-d img:hover { transform: translateY(-1px); opacity: .85; }

/* ── Hamburger button ───────────────────────────────────────── */
.toggle-menu {
    display        : none;          /* shown only at ≤992px */
    flex-direction : column;
    align-items    : center;
    justify-content: center;
    gap            : 4px;
    width          : 38px;
    height         : 38px;
    background     : rgba(255,255,255,.1);
    border         : 1px solid rgba(255,255,255,.2);
    border-radius  : var(--hdr-radius);
    cursor         : pointer;
    padding        : 0;
    flex-shrink    : 0;
    transition     : background var(--hdr-transition);
    z-index        : calc(var(--hdr-z) + 2);  /* above drawer */
}
.toggle-menu:hover { background: rgba(255,255,255,.18); }

.toggle-menu .bar {
    display      : block;
    width        : 20px;
    height       : 2px;
    background   : #fff;
    border-radius: 2px;
    transition   : transform .28s ease, opacity .2s ease, width .2s ease;
}
/* X animation */
.toggle-menu.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.toggle-menu.open .bar:nth-child(2) { opacity: 0; width: 0; }
.toggle-menu.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile drawer — always fixed, slides in from left ─────── */
/* On desktop it sits offscreen; on mobile it slides in with .active */
.landing-menu {
    display        : flex !important;  /* always rendered, never in flow */
    flex-direction : column;
    position       : fixed !important;
    top            : 0;
    left           : -110% !important; /* offscreen by default */
    width          : min(300px, 82vw);
    height         : 100dvh;
    background     : linear-gradient(160deg, #06294a 0%, #0a2f50 60%, #071e38 100%);
    border-right   : 1px solid rgba(0,212,255,.2);
    box-shadow     : 6px 0 32px rgba(0,0,0,.5);
    z-index        : calc(var(--hdr-z) + 2);
    overflow-y     : auto;
    transition     : left .3s cubic-bezier(.4,0,.2,1);
    padding-bottom : 1.5rem;
    pointer-events : none;   /* not interactive when closed */
    visibility     : hidden; /* also removes from tab order */
}
.landing-menu.active {
    left          : 0 !important;
    pointer-events: auto;
    visibility    : visible;
}

/* ── Overlay ────────────────────────────────────────────────── */
.menu-overlay {
    display : none;
    position: fixed;
    inset   : 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    z-index : calc(var(--hdr-z) + 1);
}
.menu-overlay.active { display: block; }

/* ── TICKER BAR ──────────────────────────────────────────────── */
.rfc-ticker {
    position  : sticky;
    top       : var(--hdr-height);
    z-index   : calc(var(--hdr-z) - 10);
    display   : flex;
    align-items: center;
    height    : 32px;
    background: rgba(6,41,74,.92);
    border-bottom: 1px solid rgba(0,212,255,.18);
    backdrop-filter: blur(8px);
    overflow  : hidden;
}
.rfc-ticker__label {
    display    : flex;
    align-items: center;
    gap        : 6px;
    padding    : 0 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.rfc-ticker__label i {
    color    : var(--hdr-accent);
    font-size: .7rem;
    animation: rfcBell 3s ease infinite;
}
.rfc-ticker__label span {
    font-size     : 0.62rem;
    font-weight   : 700;
    letter-spacing: .14em;
    color         : var(--hdr-accent);
    text-transform: uppercase;
}
.rfc-ticker__divider {
    width     : 1px;
    height    : 18px;
    background: rgba(0,212,255,.3);
    flex-shrink: 0;
}
.rfc-ticker__viewport {
    flex    : 1;
    overflow: hidden;
    position: relative;
}
.rfc-ticker__viewport::before,
.rfc-ticker__viewport::after {
    content   : '';
    position  : absolute;
    top: 0; bottom: 0;
    width     : 40px;
    z-index   : 1;
    pointer-events: none;
}
.rfc-ticker__viewport::before { left: 0; background: linear-gradient(90deg, rgba(6,41,74,1), transparent); }
.rfc-ticker__viewport::after  { right: 0; background: linear-gradient(270deg, rgba(6,41,74,1), transparent); }
.rfc-ticker__track {
    display   : flex;
    white-space: nowrap;
    animation : rfcTicker 45s linear infinite;
    will-change: transform;
}
.rfc-ticker__track:hover { animation-play-state: paused; }
.rfc-ticker__item {
    display    : inline-flex;
    align-items: center;
    gap        : 10px;
    font-size  : 0.72rem;
    font-weight: 400;
    color      : rgba(255,255,255,.8);
    padding    : 0 28px;
}
.rfc-ticker__dot {
    width        : 4px;
    height       : 4px;
    border-radius: 50%;
    background   : var(--hdr-accent);
    flex-shrink  : 0;
    box-shadow   : 0 0 5px var(--hdr-accent);
}

@keyframes rfcBell {
    0%,90%,100% { transform: rotate(0); }
    92%         { transform: rotate(-15deg); }
    96%         { transform: rotate(15deg); }
}
@keyframes rfcTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* 1200px — compress desktop links slightly */
@media (max-width: 1200px) {
    .nav-link-d { font-size: 0.73rem; padding: 5px 8px; gap: 5px; }
    .nav-link-d i { font-size: .67rem; }
    .nav-badges-d img { height: 20px; }
}

/* 992px — switch to mobile drawer */
@media (max-width: 992px) {
    .toggle-menu        { display: flex; }
    .nav-desktop-links  { display: none; }   /* hide desktop strip */

    /* Drawer top bar */
    .menu-back {
        display        : flex;
        align-items    : center;
        justify-content: space-between;
        padding        : 1rem 1.25rem;
        border-bottom  : 1px solid rgba(0,212,255,.15);
        background     : rgba(0,0,0,.2);
        flex-shrink    : 0;
    }
    .menu-back span {
        font-size     : .82rem;
        font-weight   : 700;
        letter-spacing: .06em;
        color         : var(--hdr-accent);
    }
    .menu-back-close {
        background: transparent;
        border    : none;
        color     : rgba(255,255,255,.6);
        font-size : 1.05rem;
        cursor    : pointer;
        padding   : 4px 6px;
        line-height: 1;
    }
    .menu-back-close:hover { color: #fff; }

    /* Nav list */
    .menu-list {
        list-style: none;
        margin    : 0;
        padding   : 8px 0;
        flex      : 1;
    }
    .menu-list li { border-bottom: 1px solid rgba(255,255,255,.05); }
    .menu-list li:last-child { border-bottom: none; }

    .menu-item {
        display        : flex;
        align-items    : center;
        gap            : .9rem;
        padding        : .9rem 1.3rem;
        color          : rgba(255,255,255,.85);
        font-size      : .9rem;
        font-weight    : 500;
        text-decoration: none;
        transition     : background .15s, color .15s, padding-left .15s;
    }
    .menu-item i {
        width    : 18px;
        text-align: center;
        font-size : .9rem;
        color     : var(--hdr-accent);
        flex-shrink: 0;
        transition: color .15s;
    }
    .menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
    .menu-item:hover i { color: #fff; }
    .menu-item.active {
        background  : rgba(0,212,255,.12);
        color       : var(--hdr-accent);
        border-left : 3px solid var(--hdr-accent);
        padding-left: calc(1.3rem - 3px);
    }
    .menu-item.active i { color: var(--hdr-accent); }

    /* App badges at bottom of drawer */
    .menu-badges {
        display        : flex;
        align-items    : center;
        justify-content: center;
        gap            : 10px;
        padding        : 1rem 1.25rem 0;
        border-top     : 1px solid rgba(255,255,255,.08);
        margin-top     : 0.5rem;
    }
    .menu-badges img {
        height    : 28px;
        width     : auto;
        opacity   : .85;
        transition: opacity .15s;
    }
    .menu-badges img:hover { opacity: 1; }

    /* Prevent body scroll while drawer open */
    body.menu-open { overflow: hidden; }
}

/* 768px */
@media (max-width: 768px) {
    .custom-container { padding: 0 1rem; }
    .toggle-menu { width: 36px; height: 36px; }
}

/* 480px */
@media (max-width: 480px) {
    .navbar-brand img { height: 28px; }
    .toggle-menu { width: 34px; height: 34px; }
    .toggle-menu .bar { width: 18px; }
}
