html.js body {
    opacity: 0;
    transform: translateY(10px);
}

html.js body.page-enter {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease;
}

html.js body.page-leave {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: rgba(238, 246, 255, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(31, 59, 96, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.42);
    border: 1px solid rgba(255,255,255,0.46);
    color: #2a3d5e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: #51637e;
    background: rgba(255,255,255,0.30);
    border: 1px solid rgba(255,255,255,0.36);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.46);
    box-shadow: 0 10px 22px rgba(36, 62, 103, 0.10);
}

.topbar-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(245,86,193,0.94), rgba(112,219,255,0.94));
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(114,219,255,0.18);
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f556c1, #ff79d4);
    box-shadow: 0 14px 28px rgba(245, 86, 193, 0.22);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 840px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-nav {
        justify-content: flex-start;
    }

    .topbar-cta {
        align-self: flex-start;
    }
}
