@font-face {
    font-family: "DM Sans";
    src: url("/static/fonts/dm-sans-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/static/fonts/space-grotesk-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: "Space Grotesk", "DM Sans", system-ui, sans-serif;
    --font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --brand-canvas: #090b14;
    --brand-surface-2: #0c0e1a;
    --brand-card-tint: rgba(255, 255, 255, 0.04);
    --brand-border: rgba(255, 255, 255, 0.08);
    --brand-text: #e8eaf0;
    --brand-text-dim: #8b8fa8;
    --border-light: #18181b;
    --input-bg: #09090b;
    --input-border: #3f3f46;
    --input-text: #fafafa;
    --success-bg: rgba(34, 197, 94, 0.1);
    --success-text: #4ade80;
    --success-solid: #22c55e;
    --error-text: #f87171;
    --warning-text: #fbbf24;
    --warning-solid: #f59e0b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    min-width: 320px;
    min-height: 100vh;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease,
        box-shadow 160ms ease;
}

.qm {
    --acc: #7c6cf0;
    --acc-l: #9b8cff;
    --acc-s: #b8a8ff;
    --acc-rgb: 124, 108, 240;
    --acc-grad: linear-gradient(90deg, #9b8cff 0%, #c4a0e8 40%, #d4a574 100%);
    overflow: clip;
}

.qm a[style*="background:var(--acc)"]:hover,
.qm button[type="submit"]:hover {
    background: var(--acc-l) !important;
    transform: translateY(-1px);
}

.qm input:focus-visible,
.qm select:focus-visible {
    border-color: var(--acc) !important;
    box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.18);
    outline: none;
}

.qm input::placeholder {
    color: #6f7389;
}

.qm button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.qm-skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: #090b14;
    font: 600 0.9rem var(--font-body);
    transform: translateY(-160%);
}

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

.qm-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.qm-form-status {
    min-height: 1.4em;
    margin-top: 14px;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.5;
}

.qm-form-status.is-success {
    color: var(--success-text);
}

.qm-form-status.is-error {
    color: var(--error-text);
}

.qm-challenge {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.qm-challenge[hidden] {
    display: none;
}

.qm-challenge-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 5, 12, 0.82);
    backdrop-filter: blur(8px);
    cursor: default;
}

.qm-challenge-dialog {
    position: relative;
    width: min(100%, 520px);
    border: 1px solid rgba(var(--acc-rgb), 0.42);
    border-radius: 18px;
    padding: 34px;
    background: var(--brand-surface-2);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.qm-challenge-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--brand-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--brand-text-dim);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.qm-challenge-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-bottom: 18px;
    background: rgba(var(--acc-rgb), 0.15);
    color: var(--acc-s);
    font-size: 1.25rem;
}

.qm-challenge-dialog h2 {
    margin: 0;
    font: 700 clamp(1.35rem, 5vw, 1.8rem) / 1.18 var(--font-heading);
}

.qm-challenge-dialog > p {
    margin: 10px 0 24px;
    color: var(--brand-text-dim);
}

.qm-challenge-dialog label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.86rem;
    color: var(--brand-text-dim);
}

.qm-challenge-dialog label strong {
    color: var(--brand-text);
}

.qm-challenge-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.qm-challenge-row input {
    min-width: 0;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    padding: 12px 13px;
    background: var(--input-bg);
    color: var(--input-text);
    font: inherit;
}

.qm-challenge-row button {
    border: 0;
    border-radius: 9px;
    padding: 12px 19px;
    background: var(--acc);
    color: #fff;
    font: 600 0.9rem var(--font-body);
    cursor: pointer;
}

.qm-challenge-status {
    min-height: 1.4em;
    margin: 9px 0 0;
    color: var(--error-text);
    font-size: 0.82rem;
}

.qm-challenge-dialog .qm-challenge-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--brand-border);
    font-size: 0.76rem;
}

body.qm-challenge-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 600px) {
    #qm-announcement .qm-wrap {
        min-height: 56px !important;
        justify-content: flex-start !important;
        padding-right: 52px !important;
    }

    #qm-announcement a {
        display: none;
    }

    #qm-dismiss-announcement {
        right: 14px !important;
    }

    nav .qm-wrap {
        gap: 10px;
        height: auto !important;
        min-height: 62px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    nav .qm-wrap > a:last-child {
        max-width: 112px;
        padding: 8px 11px !important;
        white-space: normal !important;
        text-align: center;
        line-height: 1.25;
    }

    .qm-hero-copy {
        padding-top: 60px !important;
        padding-bottom: 18px !important;
    }

    .qm-hero-cta {
        flex-direction: column;
        align-items: stretch;
        margin-top: 26px !important;
    }

    .qm-hero-cta > a {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        padding: 12px 15px !important;
        font-size: 0.86rem !important;
        line-height: 1.35;
        text-align: center;
    }

    .qm-hero-proof {
        display: grid !important;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 10px !important;
        max-width: 290px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .qm-architecture-shell {
        padding-top: 34px !important;
    }

    .qm-architecture-frame {
        padding: 18px !important;
    }

    .qm-boundary-label {
        position: static !important;
        display: flex !important;
        width: 100%;
        margin-bottom: 10px;
        padding: 7px 9px !important;
        border: 1px solid var(--brand-border);
        border-radius: 7px;
        line-height: 1.45;
    }

    .qm-boundary-label-secondary {
        margin-bottom: 18px;
    }

    .qm-challenge-dialog {
        padding: 28px 20px 24px;
    }

    .qm-challenge-row {
        grid-template-columns: 1fr;
    }

    .qm-challenge-row button {
        width: 100%;
    }

    .qm-foot-grid {
        grid-template-columns: 1fr !important;
    }
}
