@font-face {
    font-family: "Lexend";
    src: url("./fonts/lexend-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Lexend Deca";
    src: url("./fonts/lexend-deca-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --xp-blue: #003df5;
    --xp-blue-hover: #4449e5;
    --xp-blue-light: #4d7bff;
    --xp-blue-soft: #89a9ff;
    --xp-navy: #00021b;
    --xp-night: #080914;
    --xp-ink: #06154a;
    --xp-ink-soft: #5572b0;
    --xp-muted: #7888b0;
    --xp-light-text: #eaedff;
    --xp-surface: #ffffff;
    --xp-surface-soft: #f8faff;
    --xp-surface-muted: #f5f5f7;
    --xp-line: #dfe6ff;
    --xp-success: #19a974;
    --xp-warning: #f5b82e;
    --xp-danger: #e53935;
    --xp-radius-sm: 8px;
    --xp-radius: 10px;
    --xp-radius-lg: 14px;
    --xp-radius-modal: 20px;
    --xp-shadow-sm: 0 8px 24px rgba(20, 30, 72, 0.08);
    --xp-shadow: 0 18px 50px rgba(20, 30, 72, 0.14);
    --xp-shadow-blue: 0 14px 34px rgba(0, 61, 245, 0.24);
    --xp-font-display: "Lexend", Arial, sans-serif;
    --xp-font-body: "Lexend Deca", "Lexend", Arial, sans-serif;
}

.xp-branded {
    font-family: var(--xp-font-body);
    letter-spacing: 0;
}

.xp-branded :where(h1, h2, h3, h4, h5, h6, button, nav, .xp-label) {
    font-family: var(--xp-font-display);
    letter-spacing: 0;
}

.xp-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: var(--xp-radius);
    background: var(--xp-blue);
    color: #fff;
    font: 600 14px/1 var(--xp-font-display);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.xp-skip-link:focus {
    transform: translateY(0);
}

.xp-brandbar {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 14px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid #edf0f7;
    background: rgba(255, 255, 255, 0.96);
    color: var(--xp-ink);
    box-shadow: 0 4px 18px rgba(20, 30, 72, 0.04);
}

.xp-brandbar__identity,
.xp-brandbar__tools {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.xp-brandbar__logo {
    display: block;
    width: clamp(156px, 18vw, 210px);
    height: auto;
}

.xp-brandbar__divider {
    width: 1px;
    height: 28px;
    background: #dfe3ef;
}

.xp-brandbar__title {
    overflow: hidden;
    color: var(--xp-ink);
    font: 600 14px/1.25 var(--xp-font-display);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xp-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #ccd7ff;
    border-radius: var(--xp-radius);
    background: #fff;
    color: var(--xp-blue);
    font: 600 13px/1 var(--xp-font-display);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.xp-back:hover {
    border-color: var(--xp-blue);
    box-shadow: 0 8px 22px rgba(0, 61, 245, 0.12);
    transform: translateY(-1px);
}

.xp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid #ccd7ff;
    border-radius: 999px;
    background: #f1f4ff;
    color: var(--xp-blue);
    font: 700 10px/1 var(--xp-font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.xp-primary {
    border-color: var(--xp-blue) !important;
    background: linear-gradient(135deg, var(--xp-blue), var(--xp-blue-light)) !important;
    color: #fff !important;
    box-shadow: var(--xp-shadow-blue);
}

.xp-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--xp-blue-hover), var(--xp-blue-light)) !important;
    transform: translateY(-2px);
}

.xp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.xp-branded :where(a, button, [tabindex]):focus-visible {
    outline: 3px solid rgba(0, 61, 245, 0.4);
    outline-offset: 3px;
}

.xp-branded :where(button, [role="button"]):disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 640px) {
    .xp-brandbar {
        min-height: 60px;
        padding: 10px 14px;
    }

    .xp-brandbar__logo {
        width: 142px;
    }

    .xp-brandbar__divider,
    .xp-brandbar__title {
        display: none;
    }

    .xp-back {
        width: 40px;
        padding: 8px;
        font-size: 0;
    }

    .xp-back svg {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xp-branded *,
    .xp-branded *::before,
    .xp-branded *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
