/*
 * The landing page uses Tailwind utilities for its nav. Keep the critical
 * mobile layout local so the nav remains usable when the CDN is unavailable.
 */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #0f172a;
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

#home-v2-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e2e8f0;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

#home-v2-nav .ir-home-nav-inner {
    max-width: 72rem;
    height: 4rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#home-v2-nav .ir-home-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

#home-v2-nav .ir-home-nav-logo {
    display: block;
    width: auto;
    height: 1.75rem;
    max-width: calc(100vw - 5.5rem);
}

#home-v2-nav a {
    text-decoration: none;
}

#home-v2-nav .ir-home-nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#home-v2-nav .ir-home-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

#home-v2-nav .ir-home-nav-mobile {
    display: none;
}

#home-v2-nav .ir-home-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    #home-v2-nav .ir-home-nav-inner {
        height: 4rem;
        padding: 0 1rem;
    }

    #home-v2-nav .ir-home-nav-desktop {
        display: none !important;
    }

    #home-v2-nav .ir-home-nav-toggle {
        display: inline-flex !important;
    }

    #home-v2-nav .ir-home-nav-mobile {
        display: none !important;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
    }

    #home-v2-nav .ir-home-nav-mobile.is-open {
        display: flex !important;
    }

    #home-v2-nav .ir-home-nav-mobile a {
        display: block;
        padding: 0.5rem 0;
        color: #475569;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    #home-v2-nav .ir-home-nav-mobile .ir-home-nav-cta {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.625rem 1.25rem;
        color: #fff;
        background: #2563eb;
        border-radius: 999px;
    }
}

@media (min-width: 768px) {
    #home-v2-nav .ir-home-nav-toggle,
    #home-v2-nav .ir-home-nav-mobile {
        display: none !important;
    }
}
