/* Landing page — premium desktop mega menu (floating card) */

#main-header,
#main-header .relative.z-10,
#main-header nav {
    overflow: visible;
}

.landing-mega-menu-bridge {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 50;
    justify-content: center;
    padding: 1rem 1rem 1.25rem;
}

@media (min-width: 1024px) {
    .landing-mega-menu-bridge {
        top: 72px;
    }
}

.landing-mega-menu {
    position: relative;
    width: 56rem;
    max-width: 100%;
    transform-origin: top center;
}

.landing-mega-menu__panel {
    overflow: hidden;
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 0.875rem;
    background: #fff;
    box-shadow:
        0 20px 40px -16px rgb(15 23 42 / 0.18),
        0 8px 16px -8px rgb(15 23 42 / 0.08);
}

.landing-mega-menu__layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
}

.landing-mega-menu__sidebar {
    flex-shrink: 0;
    width: 12.75rem;
    padding: 1.375rem 1rem 1.375rem 1.375rem;
    border-right: 1px solid rgb(241 245 249);
    background: #f9fafb;
}

.landing-mega-menu__sidebar-title {
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.landing-mega-menu__sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-mega-menu__sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0.5rem;
    padding: 0.4375rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: #475569;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.landing-mega-menu__sidebar-link:hover {
    background: #fff;
    color: #0f172a;
}

.landing-mega-menu__sidebar-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #94a3b8;
}

.landing-mega-menu__columns {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 1.125rem;
    padding: 1.375rem 1.375rem 1.25rem;
}

.landing-mega-menu__column-title {
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.landing-mega-menu__column-list {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-mega-menu__column-link {
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.landing-mega-menu__column-link:hover {
    color: #0f172a;
}

.landing-mega-menu__column-note {
    padding-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: #94a3b8;
}

.landing-mega-menu__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgb(241 245 249);
    background: #f9fafb;
    padding: 0.875rem 1.375rem;
}

.landing-mega-menu__footer-copy {
    min-width: 0;
}

.landing-mega-menu__footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.landing-mega-menu__footer-text {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #64748b;
}

.landing-mega-menu__footer-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.5625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    background: #0f172a;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.landing-mega-menu__footer-btn:hover {
    background: #020617;
}

.landing-mega-menu__footer-btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    display: block;
}

.landing-mega-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: #475569;
    background: transparent;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.landing-mega-menu__trigger:hover,
.landing-mega-menu__trigger.is-open {
    border-color: rgb(226 232 240 / 0.95);
    background: #f8fafc;
    color: #0f172a;
}

.landing-mega-menu__trigger-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #94a3b8;
}

.landing-mega-menu__trigger-chevron {
    width: 0.875rem;
    height: 0.875rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.landing-mega-menu__trigger.is-open .landing-mega-menu__trigger-chevron {
    transform: rotate(180deg);
}

/* Desktop header nav — grouped pill bar */
.landing-header-nav {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0 0.75rem;
}

.landing-header-nav__group {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    max-width: 100%;
    padding: 0.3125rem;
    border: 1px solid rgb(226 232 240 / 0.95);
    border-radius: 0.875rem;
    background: rgb(255 255 255 / 0.62);
    box-shadow:
        0 1px 2px rgb(15 23 42 / 0.04),
        inset 0 1px 0 rgb(255 255 255 / 0.85);
}

.landing-header-nav__divider {
    flex-shrink: 0;
    width: 1px;
    height: 1.125rem;
    margin: 0 0.0625rem;
    background: rgb(226 232 240 / 0.95);
}

.landing-header-nav__link,
.landing-header-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 0;
    border-radius: 0.5625rem;
    padding: 0.4375rem 0.6875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: #475569;
    background: transparent;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.landing-header-nav__link:hover,
.landing-header-nav__trigger:hover,
.landing-header-nav__trigger.is-open {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.landing-header-nav__link--muted {
    color: #64748b;
}

.landing-header-nav__icon {
    width: 0.9375rem;
    height: 0.9375rem;
    flex-shrink: 0;
    color: #94a3b8;
}

.landing-header-nav__icon-img {
    width: 0.9375rem;
    height: 0.9375rem;
    flex-shrink: 0;
    object-fit: contain;
}

.landing-header-nav__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9375rem;
    height: 0.9375rem;
    flex-shrink: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    color: #94a3b8;
}

.landing-header-nav__link:hover .landing-header-nav__glyph,
.landing-header-nav__trigger:hover .landing-header-nav__glyph {
    color: #64748b;
}

.landing-header-nav__link:hover .landing-header-nav__icon,
.landing-header-nav__trigger:hover .landing-header-nav__icon,
.landing-header-nav__trigger.is-open .landing-header-nav__icon {
    color: #64748b;
}

.landing-header-nav__chevron {
    width: 0.8125rem;
    height: 0.8125rem;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.landing-header-nav__trigger.is-open .landing-header-nav__chevron {
    transform: rotate(180deg);
}

@media (max-width: 900px) {
    .landing-header-nav__link,
    .landing-header-nav__trigger {
        padding-inline: 0.5625rem;
        font-size: 0.78125rem;
    }
}
