/* ─────────────────────────────────────────────────────────────
   Shared landing-style header (_LandingHeader.cshtml)
   Used by the Landing page and the Pricing page so both top bars
   stay identical. Mirrors the hero-section header rules with a
   self-contained button style (no landing.css needed).
   ───────────────────────────────────────────────────────────── */

.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
    border-bottom: 1px solid transparent;
}
.custom-header.is-scrolled {
    background: rgba(6, 3, 17, 0.72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}
.lh-login {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 6px;
    transition: color .2s ease;
}
.lh-login:hover { color: #ffffff; }

/* In-flow variant (Pricing): the header takes its own 90px instead of
   overlaying the page content. */
.custom-header.lh-inflow {
    position: relative;
}

/* Brand */
.lh-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.lh-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.lh-brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    font-size: 19px;
    line-height: 24px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .lh-logo { width: 36px; height: 36px; }
    .lh-brand-name { font-size: 20px; }
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a { white-space: nowrap; }

.lh-nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lh-nav-link:hover,
.lh-nav-link.is-active { color: #ffffff; }

.lh-nav-link { position: relative; padding: 6px 0; }
.lh-nav-link.is-active { font-weight: 600; }
.lh-nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #00B9F4, #0D4CF2); }

/* Header Right Side (Buttons) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-action-btn { display: block; }

/* Primary CTA — cyan brand gradient (mirrors the MAUI CyanGradient) */
.custom-header .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0 20px;
    height: 40px;
    border-radius: 11px;
    border: none;
    box-shadow: none;
    background: linear-gradient(135deg, #00B9F4 0%, #0D4CF2 100%);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1rem;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.custom-header .btn-primary:hover {
    opacity: 0.9;
    color: #ffffff;
}


/* Mobile Menu Button (Hamburger) */
.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle-btn svg {
    width: 32px;
    height: 32px;
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-menu-expand { display: none; }

/* Responsive Breakpoint (switching to mobile menu at 1300px) */
@media (max-width: 1300px) {
    .desktop-nav { display: none; }
    .desktop-action-btn { display: none; }
    .mobile-toggle-btn { display: block; }
    .mobile-controls { display: flex; }

    .custom-header {
        position: fixed;
        height: auto;
        min-height: 72px;
        padding: 10px 20px;
        background-color: rgba(6, 3, 17, 0.92);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        flex-wrap: wrap;
    }
    .custom-header.lh-inflow { position: relative; }
    .lh-login.desktop-action-btn { display: none; }

    .mobile-menu-expand {
        display: none;
        width: 100%;
        flex-basis: 100%;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .mobile-menu-expand.active {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-menu-expand nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mobile-menu-expand a {
        display: block;
        width: 100%;
        padding: 15px 10px;
        color: white;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease, padding-left 0.2s ease;
    }

    .mobile-menu-expand nav a:hover {
        background: rgba(26, 173, 214, 0.1);
        padding-left: 20px;
        color: #1aadd6;
    }

    .mobile-menu-expand .btn-primary {
        margin-top: 20px;
        height: 48px;
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Phones Breakpoint (< 768px): Brand left, Get Started + Hamburger right on 1 row */
@media (max-width: 768px) {
    .custom-header {
        position: fixed !important;
        height: auto !important;
        min-height: 64px !important;
        padding: 12px 16px !important;
        background-color: rgba(6, 3, 17, 0.94) !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    .lh-brand {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    .lh-logo {
        width: 34px !important;
        height: 34px !important;
    }

    .lh-brand-name {
        font-size: 18px !important;
        line-height: 22px !important;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    /* "Get started" button on mobile */
    .custom-header .header-right .btn-primary,
    .custom-header .btn-primary.desktop-action-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 36px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        border-radius: 20px !important;
        line-height: 36px !important;
        white-space: nowrap !important;
        letter-spacing: 0.3px !important;
        box-shadow: 0 2px 8px rgba(13, 76, 242, 0.3) !important;
    }

    /* Mobile toggle button (hamburger) on mobile */
    .mobile-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .mobile-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        padding: 4px !important;
        border: none !important;
        background: transparent !important;
        color: #ffffff !important;
        cursor: pointer !important;
    }

    .mobile-toggle-btn svg {
        width: 26px !important;
        height: 26px !important;
    }

    /* Expanding menu when clicked */
    .mobile-menu-expand {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-top: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 8px !important;
        padding-bottom: 16px !important;
    }

    .mobile-menu-expand.active {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .mobile-menu-expand .btn-primary {
        margin-top: 16px !important;
        height: 44px !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 15px !important;
    }
}


/* ─────────────────────────────────────────────────────────────
   Shared public footer (_LandingFooter.cshtml)
   ───────────────────────────────────────────────────────────── */
.lf { width: 100%; border-top: 1px solid rgba(255,255,255,.08); background: #060311; color: #f3f7fd; font-family: 'Inter', sans-serif; }
.lf-wrap { max-width: 1240px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 20px; }
.lf-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.lf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.lf-logo img { width: 32px; height: 32px; }
.lf-brand p { margin: 16px 0 12px; max-width: 32ch; font-size: 14.5px; line-height: 1.6; color: #aab4c8; }
.lf-mail { font-size: 14.5px; color: #aab4c8; text-decoration: none; }
.lf-mail:hover { text-decoration: underline; }
.lf-col { display: flex; flex-direction: column; gap: 10px; }
.lf-col h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.lf-col a { font-size: 14.5px; color: #aab4c8; text-decoration: none; transition: color .2s ease; width: fit-content; }
.lf-col a:hover { color: #fff; }
.lf-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #7d8cb0; }
@media (max-width: 1000px) { .lf-grid { grid-template-columns: 1fr 1fr 1fr; } .lf-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lf-grid { grid-template-columns: 1fr 1fr; } }
