:root {
    --bg: #081014;
    --bg2: #0d171c;
    --panel: #101d23;
    --panel2: #16262e;
    --ink: #f2f5f4;
    --muted: #aebbc0;
    --line: rgba(255,255,255,.12);
    --line-strong: rgba(255,255,255,.20);
    --yellow: #ffd000;
    --yellow-soft: #e8bd19;
    --blue: #a9dbff;
    --green: #8bd49f;
    --danger: #ffb4a7;
    --critical: #e9424d;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0,0,0,.26);
    --display: "Arial Narrow", "Segoe UI Condensed", "Bahnschrift Condensed", Arial, Helvetica, sans-serif;
    --body: Arial, Helvetica, sans-serif;
    --shell: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 0%, rgba(255,208,0,.05), transparent 28rem),
        linear-gradient(135deg, #070d10 0%, #0b1418 48%, #071014 100%);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--yellow); color: #111; }

.site-page {
    position: relative;
    isolation: isolate;
    overflow: clip;
    min-height: 100vh;
}
.site-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.78), transparent 88%);
}

.site-shell {
    width: min(var(--shell), calc(100% - 40px));
    margin-inline: auto;
}

.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;
}

.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(8,16,20,.92);
    backdrop-filter: blur(18px);
}
.site-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.site-brand__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,208,0,.42);
    border-radius: 11px;
    background: var(--yellow);
    color: #101214;
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.site-brand__copy { display: flex; flex-direction: column; line-height: 1.08; }
.site-brand__copy strong { font-family: var(--display); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .035em; }
.site-brand__copy small { margin-top: 5px; color: var(--muted); font-size: .62rem; letter-spacing: .06em; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}
.site-nav a {
    padding: 10px 12px;
    border-radius: 9px;
    color: #c7d0d3;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    transition: .2s ease;
}
.site-nav a:hover { color: var(--yellow); background: rgba(255,208,0,.055); }

.site-search {
    width: 184px;
    display: grid;
    grid-template-columns: minmax(0,1fr) 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden;
    background: rgba(255,255,255,.025);
}
.site-search input {
    min-width: 0;
    padding: 9px 4px 9px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: .82rem;
}
.site-search input::placeholder { color: #78868b; }
.site-search button {
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--yellow);
    cursor: pointer;
    font-size: 1.15rem;
}

.site-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    cursor: pointer;
}
.site-nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.ui-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--yellow);
    font-family: var(--display);
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ui-kicker {
    padding: 7px 11px;
    border: 1px solid rgba(255,208,0,.24);
    border-radius: 999px;
    background: rgba(255,208,0,.045);
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 800;
    transition: .2s ease;
}
.ui-btn:hover { transform: translateY(-1px); border-color: rgba(255,208,0,.6); color: var(--yellow); }
.ui-btn--primary { background: var(--yellow); border-color: var(--yellow); color: #111; }
.ui-btn--primary:hover { color: #111; background: #ffe05b; }

.section-title-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(300px,450px);
    gap: 48px;
    align-items: end;
    margin-bottom: 30px;
}
.section-title-row > div { display: flex; align-items: flex-start; gap: 15px; }
.section-code {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,208,0,.30);
    border-radius: 13px;
    background: rgba(255,208,0,.055);
    color: var(--yellow);
    font-family: var(--display);
    font-weight: 900;
}
.section-title-row h2,
.listing-head h2 {
    margin: 4px 0 0;
    font-family: var(--display);
    font-size: clamp(1.8rem, 2.8vw, 2.85rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: -.015em;
}
.section-title-row > p { margin: 0; max-width: 440px; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.site-footer {
    border-top: 1px solid var(--line);
    background: #060c0f;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .8fr;
    gap: 60px;
    padding: 48px 0 34px;
}
.site-footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer__brand { display: flex; gap: 12px; align-items: center; }
.site-footer__brand > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); color: #111; font-family: var(--display); font-weight: 900; font-size: .75rem; }
.site-footer__brand div { display: flex; flex-direction: column; }
.site-footer__brand strong { font-family: var(--display); text-transform: uppercase; }
.site-footer__brand small { color: var(--muted); font-size: .62rem; }
.site-footer p { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.site-footer__title { margin-bottom: 5px; color: var(--yellow); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #c8d1d4; font-size: .82rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: #7f8d92; font-size: .74rem; }

.error-page { min-height: 65vh; display: grid; place-items: center; }
.error-page__inner { padding: 80px 0; }
.error-page__inner > span { color: var(--yellow); font-family: var(--display); font-weight: 900; letter-spacing: .12em; }
.error-page h1 { margin: 10px 0; font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5rem); text-transform: uppercase; }
.error-page p { max-width: 600px; color: var(--muted); }
.muted-copy { color: var(--muted); }

@media (max-width: 980px) {
    .site-search { display: none; }
    .site-nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(8,16,20,.98);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .section-title-row { grid-template-columns: 1fr; gap: 18px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .site-shell { width: min(var(--shell), calc(100% - 26px)); }
    .site-header__inner { min-height: 68px; gap: 14px; }
    .site-brand__copy small { display: none; }
    .site-brand__mark { width: 40px; height: 40px; }
    .section-title-row > div { gap: 11px; }
    .section-code { width: 43px; height: 43px; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__grid > div:first-child { grid-column: auto; }
    .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
