:root {
    color-scheme: dark;

    --color-bg: #08090b;
    --color-bg-elevated: #101216;
    --color-surface: #15181d;
    --color-surface-soft: #1b1f25;
    --color-geek: #08d8f3;
    --color-jock: #ff5b1a;
    --color-show: #ffd21a;
    --color-on-orange: #160b06;
    --color-text: #f7f8fa;
    --color-text-muted: #a9afb9;
    --color-text-subtle: #777f8c;
    --color-border: rgba(255, 255, 255, 0.13);
    --color-border-strong: rgba(255, 255, 255, 0.22);
    --color-success: #43d59a;
    --color-error: #ff6b6b;

    --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
    --font-eyebrow: Audiowide, "Arial Black", Impact, sans-serif;
    --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container: 76rem;
    --container-wide: 90rem;
    --header-height: 4.5rem;
    --mobile-nav-height: 4.5rem;
    --radius-small: 0.55rem;
    --radius-medium: 1rem;
    --radius-large: 1.5rem;
    --shadow-small: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
    --shadow-large: 0 2rem 5rem rgba(0, 0, 0, 0.34);
    --transition: 180ms ease;
}

@font-face {
    font-family: Audiowide;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/audiowide-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Audiowide;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/audiowide-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    background: var(--color-bg);
}

body {
    min-width: 20rem;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.public-site {
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
}

body.is-sheet-open {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

[hidden] {
    display: none !important;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text);
    font-family: var(--font-display);
    line-height: 1.04;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 8vw, 5rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 7vw, 4.25rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: -0.025em;
}

::selection {
    background: var(--color-geek);
    color: #001216;
}

:focus-visible {
    outline: 0.2rem solid var(--color-show);
    outline-offset: 0.22rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin-inline: auto;
}

.container--wide {
    width: min(calc(100% - 2rem), var(--container-wide));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: clamp(4.5rem, 10vw, 8.5rem);
}

.section-heading {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading > p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.section-heading--split {
    max-width: none;
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--color-jock);
    font-family: var(--font-eyebrow);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow--light {
    color: var(--color-show);
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.82rem 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.button svg path[d^="M8 5"],
.button svg path[d^="M9 6"] {
    fill: currentColor;
    stroke: none;
}

.button:hover {
    transform: translateY(-0.12rem);
}

.button:active {
    transform: translateY(0);
}

.button--primary {
    background: var(--color-jock);
    box-shadow: 0 0.65rem 1.75rem rgba(255, 91, 26, 0.2);
    color: var(--color-on-orange);
}

.button--primary:hover {
    background: #ff713b;
    box-shadow: 0 0.8rem 2rem rgba(255, 91, 26, 0.3);
}

.button--outline {
    border-color: var(--color-border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.button--outline:hover,
.button--ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.11);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(7, 8, 10, 0.28);
    backdrop-filter: blur(0.7rem);
}

.button--small {
    min-height: 2.6rem;
    padding: 0.58rem 0.95rem;
    font-size: 0.85rem;
}

.header-cta.button--outline {
    border-color: rgba(255, 123, 66, 0.9);
    background: var(--color-jock);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
    color: var(--color-on-orange);
    letter-spacing: 0.01em;
    text-shadow: none;
}

.header-cta.button--outline:hover,
.header-cta.button--outline:focus-visible,
.header-cta.button--outline:active {
    border-color: #ffb08d;
    background: #ff6d2f;
    box-shadow:
        0 0 1.35rem 0.15rem rgba(255, 91, 26, 0.72),
        0 0.8rem 1.8rem rgba(255, 91, 26, 0.36),
        inset 0 1px rgba(255, 255, 255, 0.28);
}

.button--text {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
}

.button--text:hover {
    color: var(--color-text);
}

.button--disabled,
.button:disabled {
    border-color: var(--color-border);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: var(--color-text-subtle);
    cursor: not-allowed;
    transform: none;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-small);
    background: var(--color-show);
    color: #14100a;
    font-weight: 800;
    transform: translateY(-200%);
    transition: transform var(--transition);
}

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

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: transparent;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.site-header::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: calc(var(--header-height) + 3.25rem);
    background: linear-gradient(
        to bottom,
        rgba(6, 7, 9, 0.95) 0,
        rgba(6, 7, 9, 0.72) calc(var(--header-height) * 0.7),
        rgba(6, 7, 9, 0.28) var(--header-height),
        transparent 100%
    );
    content: "";
    pointer-events: none;
    transition: opacity var(--transition);
}

.site-header.is-scrolled {
    border-color: var(--color-border);
    background: rgba(8, 9, 11, 0.9);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(1rem);
}

.site-header.is-scrolled::before {
    opacity: 0;
}

.site-header__inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    width: min(18rem, 100%);
    min-width: 0;
    align-items: center;
}

.brand-link img {
    width: 100%;
    height: auto;
}

.desktop-nav,
.header-cta {
    display: none;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0 2rem;
    background: #060709;
}

.site-footer__grid {
    display: grid;
    gap: 2.2rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer__brand img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.8rem;
    object-fit: cover;
}

.site-footer__brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.site-footer__brand p {
    max-width: 28rem;
    margin: 0.25rem 0 0;
    color: var(--color-text-subtle);
    font-size: 0.85rem;
    line-height: 1.5;
}

.site-footer__nav,
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.8rem 1.4rem;
}

.site-footer__nav a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer__nav a:hover {
    color: var(--color-geek);
}

.site-footer__legal span {
    color: var(--color-text-subtle);
    font-size: 0.82rem;
}

.site-footer__legal small {
    display: block;
    color: var(--color-text-subtle);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-subtle);
    font-size: 0.76rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a:hover {
    color: var(--color-text);
}

.mobile-tab-bar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    padding: 0.45rem 0.25rem calc(0.38rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border-strong);
    background: rgba(10, 11, 14, 0.96);
    box-shadow: 0 -0.5rem 2rem rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(1.25rem);
}

.mobile-tab-bar > a,
.mobile-tab-bar > button {
    display: flex;
    min-width: 0;
    min-height: 3.6rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.25rem 0.1rem;
    border: 0;
    background: transparent;
    color: var(--color-text-subtle);
    font-size: 0.62rem;
    font-weight: 700;
}

.mobile-tab-bar svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

.mobile-tab-bar > a.is-active {
    color: var(--color-geek);
}

.mobile-tab-bar__primary {
    position: relative;
    color: var(--color-text) !important;
}

.mobile-tab-bar__primary-icon {
    position: absolute;
    bottom: 1.65rem;
    display: grid;
    width: 3.4rem;
    height: 3.4rem;
    place-items: center;
    border: 0.25rem solid #0b0c0f;
    border-radius: 50%;
    background: var(--color-jock);
    box-shadow: 0 0.7rem 1.6rem rgba(255, 91, 26, 0.25);
    color: var(--color-on-orange);
}

.mobile-tab-bar__primary-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.mobile-tab-bar__primary > span:last-child {
    margin-top: 1.6rem;
}

.more-sheet {
    position: fixed;
    z-index: 200;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(100%, 34rem);
    max-width: none;
    max-height: min(82dvh, 44rem);
    margin: auto auto 0;
    padding: 0.7rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    border: 1px solid var(--color-border-strong);
    border-bottom: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-large);
    color: var(--color-text);
}

.more-sheet::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.18rem);
}

.more-sheet[open] {
    animation: sheet-in 220ms ease-out;
}

.more-sheet__handle {
    width: 2.8rem;
    height: 0.25rem;
    margin: 0 auto 1.25rem;
    border-radius: 99rem;
    background: var(--color-border-strong);
}

.more-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.more-sheet__header h2 {
    margin: 0;
    font-size: 1.7rem;
}

.icon-button {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
}

.icon-button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.more-sheet__links {
    display: grid;
    gap: 0.2rem;
}

.more-sheet__links a,
.more-sheet__links > span {
    display: flex;
    min-height: 3.35rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 700;
}

.more-sheet__links > span {
    color: var(--color-text-subtle);
}

.more-sheet__links small {
    color: var(--color-text-subtle);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes sheet-in {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (min-width: 48rem) {
    .container,
    .container--wide {
        width: min(calc(100% - 4rem), var(--container));
    }

    .section-heading--split {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 2rem;
    }

    .site-footer__grid {
        grid-template-columns: minmax(18rem, 1.6fr) 1fr 0.7fr;
        align-items: start;
    }

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 62rem) {
    body.public-site {
        padding-bottom: 0;
    }

    .mobile-tab-bar {
        display: none;
    }

    .brand-link {
        width: clamp(17.25rem, 29vw, 18rem);
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: clamp(1rem, 2.6vw, 2.15rem);
    }

    .desktop-nav a {
        position: relative;
        padding-block: 0.7rem;
        color: rgba(255, 255, 255, 0.76);
        font-size: 1.05rem;
        font-weight: 750;
        text-shadow: none;
        transition:
            color var(--transition),
            text-shadow var(--transition);
    }

    .desktop-nav a::after {
        position: absolute;
        right: 0;
        bottom: 0.25rem;
        left: 0;
        height: 0.12rem;
        background: var(--color-jock);
        box-shadow: none;
        content: "";
        transform: scaleX(0);
        transform-origin: right;
        transition:
            transform var(--transition),
            box-shadow var(--transition);
    }

    .desktop-nav a:hover,
    .desktop-nav a:focus-visible,
    .desktop-nav a:active {
        color: #fff4ed;
        text-shadow:
            0 0 0.45rem rgba(255, 91, 26, 0.85),
            0 0 1.15rem rgba(255, 91, 26, 0.55);
    }

    .desktop-nav a:hover::after,
    .desktop-nav a:focus-visible::after,
    .desktop-nav a:active::after {
        transform: scaleX(1);
        transform-origin: left;
        box-shadow:
            0 0 0.85rem rgba(255, 91, 26, 0.85),
            0 0 1.4rem rgba(255, 91, 26, 0.4);
    }
}

@media (min-width: 75rem) {
    .brand-link {
        width: clamp(17.25rem, 24vw, 19rem);
    }

    .header-cta {
        display: inline-flex;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .header-cta {
        justify-self: end;
    }
}

@media (min-width: 100rem) {
    :root {
        --container: 86rem;
    }

    body {
        font-size: 1.08rem;
    }
}

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

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

@supports not (backdrop-filter: blur(1rem)) {
    .site-header.is-scrolled,
    .mobile-tab-bar,
    .button--ghost {
        background-color: rgba(8, 9, 11, 0.98);
    }
}
