.fh {
    --fh-ink: #0a0a0b;
    --fh-muted: #52525b;
    --fh-hover: rgba(10, 10, 20, .05);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 80px;
    padding: 12px 16px 0;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: "cv11", "ss01";
}

.fh--over {
    margin-bottom: -80px;
}

.fh__shell {
    position: relative;
    max-width: 1232px;
    margin: 0 auto;
}

.fh__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
    padding: 0 10px 0 20px;
    border: 1px solid rgba(10, 10, 20, .07);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    color: var(--fh-ink);
    box-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 10px 30px -18px rgba(20, 20, 40, .28);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}

.fh--over:not(.is-scrolled):not(.is-open) .fh__bar {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .55);
    box-shadow: none;
}

.fh--dark:not(.is-scrolled):not(.is-open) .fh__bar {
    --fh-ink: #fff;
    --fh-muted: rgba(255, 255, 255, .8);
    --fh-hover: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.fh.is-open .fh__bar {
    background: #fff;
}

.fh__logo {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin-right: 18px;
    color: var(--fh-ink);
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
}

.fh__logo img {
    display: block;
    width: auto;
    height: 26px;
    transition: filter .3s ease;
}

.fh--dark:not(.is-scrolled):not(.is-open) .fh__bar .fh__logo img {
    filter: brightness(0) invert(1);
}

.fh__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--fh-ink);
    color: #fff;
    font-size: 14px;
}

.fh__nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.fh__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--fh-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .3s ease;
}

.fh__link:hover,
.fh__trigger[aria-expanded="true"] {
    background: var(--fh-hover);
}

.fh__chev {
    width: 14px;
    height: 14px;
    opacity: .55;
    transition: transform .25s ease;
}

.fh__trigger[aria-expanded="true"] .fh__chev {
    transform: rotate(180deg);
}

.fh__actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.fh__login,
.fh__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s ease, color .3s ease, border-color .3s ease, box-shadow .25s ease;
}

.fh__login {
    color: var(--fh-ink);
}

.fh__login:hover {
    background: var(--fh-hover);
}

.fh__cta {
    background: #0a0a0b;
    color: #fff;
}

.fh__cta svg {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}

.fh__cta:hover {
    box-shadow: 0 10px 22px -12px rgba(10, 10, 11, .6);
}

.fh__cta:hover svg {
    transform: translateX(2px);
}

.fh--dark:not(.is-scrolled):not(.is-open) .fh__bar .fh__cta {
    background: #fff;
    color: #0a0a0b;
}

.fh__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    padding: 0 11px;
    border: 0;
    border-radius: 12px;
    background: var(--fh-hover);
    cursor: pointer;
}

.fh__burger span {
    display: block;
    height: 1.8px;
    border-radius: 2px;
    background: var(--fh-ink);
}

.fh__burger span:last-child {
    width: 70%;
}

.fh__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.995);
    transform-origin: top center;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .25s;
}

.fh__panel::before {
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 10px;
    content: "";
}

.fh__panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}

.fh__panel-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(10, 10, 20, .07);
    border-radius: 22px;
    background: #fff;
    color: #0a0a0b;
    box-shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 40px 80px -36px rgba(20, 20, 50, .35);
}

.fh__panel-in.has-feature {
    grid-template-columns: minmax(0, 1fr) 292px;
}

.fh__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fh__cols {
    display: grid;
    gap: 8px 24px;
    padding: 24px 24px 18px;
}

.fh__cols--1 { grid-template-columns: minmax(0, 1fr); }
.fh__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fh__cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fh__cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.fh__col {
    min-width: 0;
}

.fh__title {
    margin: 0 0 8px;
    padding: 0 10px;
    color: #a1a1aa;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fh__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fh__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 14px;
    color: #0a0a0b;
    text-decoration: none;
    transition: background-color .2s ease;
}

.fh__item:hover {
    background: #f7f6fb;
}

.fh__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #eeedf2;
    border-radius: 11px;
    background: #fff;
    color: #3f3f46;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.fh__item:hover .fh__icon {
    border-color: #e4dcfb;
    background: #f5f3ff;
    color: #7c3aed;
}

.fh__svg {
    width: 18px;
    height: 18px;
}

.fh__item-tx {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.fh__item-t {
    font-size: 14px;
    font-weight: 600;
}

.fh__item-d {
    overflow: hidden;
    color: #71717a;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fh__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 34px;
    border-top: 1px solid #f2f1f6;
    background: #fcfcfd;
    color: #a1a1aa;
    font-size: 13px;
}

.fh__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0a0a0b;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.fh__all svg,
.fh__card-t svg {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}

.fh__all:hover svg,
.fh__card:hover .fh__card-t svg {
    transform: translateX(3px);
}

.fh__feature {
    padding: 24px 24px 24px 22px;
    border-left: 1px solid #f2f1f6;
    background: #fbfaff;
}

.fh__feature .fh__title {
    padding: 0;
}

.fh__card {
    display: flex;
    flex-direction: column;
    color: #0a0a0b;
    text-decoration: none;
}

.fh__card-media {
    position: relative;
    display: grid;
    place-items: center;
    height: 128px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 50%, #e0e7ff 100%);
}

.fh__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.fh__card:hover .fh__card-media img {
    transform: scale(1.04);
}

.fh__card-orb {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 70%);
    animation: fh-orb 8s ease-in-out infinite alternate;
}

@keyframes fh-orb {
    to { transform: translate(-40px, 30px); }
}

.fh__card-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
    color: #7c3aed;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.fh__card-t {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
}

.fh__card-d {
    margin-top: 4px;
    color: #71717a;
    font-size: 13px;
    line-height: 1.5;
}

.fh__sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    background: #fff;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}

.fh__sheet.is-visible {
    display: flex;
}

.fh__sheet.is-open {
    opacity: 1;
    transform: none;
}

.fh__sheet-top {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid #f2f1f6;
}

.fh__close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f4f4f5;
    color: #0a0a0b;
    cursor: pointer;
}

.fh__close svg {
    width: 20px;
    height: 20px;
}

.fh__sheet-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px 24px;
}

.fh__acc {
    border-bottom: 1px solid #f2f1f6;
}

.fh__acc-btn,
.fh__acc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: none;
    color: #0a0a0b;
    font: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.fh__acc-link {
    border-bottom: 1px solid #f2f1f6;
}

.fh__acc-btn .fh__chev {
    width: 18px;
    height: 18px;
}

.fh__acc-btn[aria-expanded="true"] .fh__chev {
    transform: rotate(180deg);
}

.fh__acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1);
}

.fh__acc.is-open .fh__acc-body {
    grid-template-rows: 1fr;
}

.fh__acc-in {
    min-height: 0;
    overflow: hidden;
}

.fh__acc-in .fh__title {
    margin: 14px 0 6px;
    padding: 0;
}

.fh__acc-in .fh__item {
    padding: 8px 0;
}

.fh__acc-in .fh__item:hover {
    background: none;
}

.fh__acc-in .fh__item-d {
    white-space: normal;
}

.fh__acc-in .fh__all {
    margin: 10px 0 18px;
}

.fh__sheet-foot {
    display: grid;
    flex: none;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #f2f1f6;
}

.fh__sheet-foot .fh__login {
    height: 48px;
    border: 1px solid #e4e4e7;
    color: #0a0a0b;
}

.fh__sheet-foot .fh__cta {
    height: 48px;
}

.fh a:focus-visible,
.fh button:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

@media (max-width: 1180px) {
    .fh__panel-in.has-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .fh__feature {
        display: none;
    }
}

@media (max-width: 1023px) {
    .fh {
        height: 72px;
        padding: 8px 12px 0;
    }

    .fh--over {
        margin-bottom: -72px;
    }

    .fh__bar {
        height: 56px;
        padding: 0 7px 0 16px;
        border-radius: 16px;
    }

    .fh__nav,
    .fh__actions .fh__login,
    .fh__panel {
        display: none;
    }

    .fh__actions .fh__cta {
        height: 38px;
        padding: 0 13px;
        font-size: 13px;
    }

    .fh__actions .fh__cta svg {
        display: none;
    }

    .fh__burger {
        display: flex;
    }
}

@media (max-width: 380px) {
    .fh__actions .fh__cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fh *,
    .fh *::before {
        animation: none !important;
        transition: none !important;
    }
}
