.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #f3f4f6;
}

.header-dark {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Override global header rules from xon-learning-style.css */
header.fixed {
    display: block !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

header.fixed > div {
    width: 100%;
}

header.fixed .mobile-menu {
    width: 100%;
}

/* Dropdown panel when open (readable on dark headers e.g. Why XON) */
header.fixed .mobile-menu:not(.hidden) {
    display: block !important;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* Mobile: comfortable tap targets + vertical rhythm (all pages) */
header.fixed .mobile-menu > nav.flex.flex-col {
    gap: 0.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
header.fixed .mobile-menu > nav a.text-sm:not([class*='block w-full']) {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
header.fixed .mobile-menu > nav .border-t {
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Ensure CTA stays visible (xon-learning-style.css hides .header-right .btn on mobile) */
header.fixed .header-right .btn,
header.fixed .header-right .request-demo-btn,
header.fixed .header-right a {
    display: inline-flex !important;
}

/* Our header uses "hidden lg:flex items-center" wrapper (no .header-right on most pages) */
header.fixed > div > div.flex.items-center.justify-between > div.hidden.lg\:flex {
    display: inline-flex !important;
    align-items: center;
}

/* Match desired navbar layout: logo left, links centered, CTA right */
@media (min-width: 1024px) {
    header.fixed nav.hidden.lg\:flex {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    header.fixed nav.hidden.lg\:flex a {
        padding: 0.25rem 0;
    }

    header.fixed > div > div.flex.items-center.justify-between > a.group {
        flex: 0 0 auto;
    }

    header.fixed > div > div.flex.items-center.justify-between > div.hidden.lg\:flex {
        flex: 0 0 auto;
    }
}

/* Force Tailwind-style visibility rules for this header */
header.fixed nav.hidden {
    display: flex !important;
}

@media (max-width: 1023px) {
    header.fixed nav.hidden {
        display: none !important;
    }

    /* Mobile: show hamburger */
    header.fixed button.lg\:hidden {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    /* Desktop: hide hamburger */
    header.fixed button.lg\:hidden {
        display: none !important;
    }
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-50 {
    z-index: 50;
}

.max-w-5xl {
    max-width: 64rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.h-16 {
    height: 4rem;
}

.gap-2 {
    gap: 0.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-10 {
    width: 2.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hidden {
    display: none;
}

/* Base behavior for responsive utility classes (mobile-first) */
.lg\:hidden {
    display: block;
}

.gap-8 {
    gap: 2rem;
}

.text-sm {
    /* font-size: 0.875rem;
    line-height: 1.25rem; */

    font-size: 0.969rem;
    line-height: 1.75rem;
}

.font-medium {
    font-weight: 500;
}

.text-black {
    color: #000;
}

.text-gray-600 {
    color: #4b5563;
}

.bg-orange-500 {
    background-color: #f97316;
}

.text-white {
    color: #fff;
}

.hover\:bg-orange-600:hover {
    background-color: #ea580c;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.p-2 {
    padding: 0.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Needed by header JS on dark pages */
.text-gray-300 {
    color: #d1d5db;
}

/* Responsive variants (Tailwind-like) */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:h-20 {
        height: 5rem;
    }

    .md\:h-12 {
        height: 3rem;
    }

    .md\:w-12 {
        width: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:flex {
        display: flex;
    }

    .lg\:hidden {
        display: none;
    }
}

/* Shared site header: mobile dropdown nav panel */
.flex-col {
    flex-direction: column;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.rounded {
    border-radius: 0.25rem;
}
.pt-2 {
    padding-top: 0.5rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}
.border-gray-100 {
    border-color: #f3f4f6;
}
.w-full {
    width: 100%;
}
.text-center {
    text-align: center;
}
.block {
    display: block;
}
.min-h-screen {
    min-height: 100vh;
}
.bg-background {
    background-color: #ffffff;
}
.transition-all {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow,
        transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-300 {
    transition-duration: 300ms;
}
.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* xon-learning / long pages: first hero below fixed header */
body.xon-page-site-nav header.fixed + section.hero {
    padding-top: 5.5rem;
}
@media (min-width: 768px) {
    body.xon-page-site-nav header.fixed + section.hero {
        padding-top: 6rem;
    }
}
