/* XoidDrift website — same palette, font and shapes as the game's UI (Client/Source/UI/Theme.hpp). */

@font-face {
    font-family: "Barlow";
    src: url("../fonts/Barlow-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/Barlow-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

:root {
    --bg: #07090b;
    --bg-alt: #0a0d10;
    --panel: #0d1013;
    --panel-border: #1c2228;
    --field: #1a2026;
    --divider: #1a2026;
    --text: #f4f6f8;
    --muted: #7d8793;
    --soft: #b5bdc6;
    --accent: #1ed6c6;
    --accent-hover: #4ce4d6;
    --accent-pressed: #16b0a3;
    --accent-text: #031614;
    --radius: 10px;
    --radius-lg: 16px;
    --max: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Barlow", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 600;
    line-height: 1.15;
}

p {
    margin: 0;
}

code {
    font-family: Consolas, "Courier New", monospace;
    font-size: .9em;
    background: var(--field);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 1px 6px;
}

::selection {
    background: var(--accent);
    color: var(--accent-text);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: 820px;
}

.accent {
    color: var(--accent);
}

.icon,
.btn__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* ---------- Wordmark ---------- */

.wordmark {
    display: inline-flex;
    gap: .13em;
    font-weight: 600;
    letter-spacing: .13em;
    color: var(--text);
    white-space: nowrap;
}

.wordmark .accent {
    color: var(--accent);
}

.wordmark--small {
    font-size: 20px;
}

.wordmark--small:hover {
    color: var(--text);
}

.wordmark--hero {
    font-size: clamp(54px, 11vw, 124px);
    line-height: 1;
    margin-right: -.13em;
}

.accent-bar {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    margin: 26px auto 22px;
}

.tagline,
.eyebrow,
.section__label {
    text-transform: uppercase;
    letter-spacing: .4em;
    font-size: 13px;
    color: var(--muted);
}

.eyebrow {
    margin-bottom: 28px;
    letter-spacing: .25em;
}

.section__label {
    color: var(--accent);
    letter-spacing: .3em;
    margin-bottom: 14px;
    font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 0 0 0 rgba(30, 214, 198, 0);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: var(--accent-text);
    box-shadow: 0 8px 32px -8px rgba(30, 214, 198, .55);
    transform: translateY(-1px);
}

.btn--primary:active {
    background: var(--accent-pressed);
    transform: none;
}

.btn--ghost {
    background: var(--panel);
    border-color: var(--panel-border);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: rgba(30, 214, 198, .6);
    color: var(--text);
}

.btn--small {
    height: 38px;
    padding: 0 18px;
    font-size: 12px;
}

.btn--large {
    height: 56px;
    padding: 0 32px;
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(7, 9, 11, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--divider);
}

.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav__links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
}

.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .25s;
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--text);
}

.nav__links a.is-active::after {
    transform: scaleX(1);
}

.nav__toggle {
    display: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 160px 0 var(--section);
    text-align: center;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    left: 50%;
    top: 120px;
    width: min(1100px, 140vw);
    height: 560px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(30, 214, 198, .16) 0%, rgba(30, 214, 198, .05) 38%, transparent 68%);
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero__content {
    position: relative;
}

.hero__lead {
    max-width: 640px;
    margin: 30px auto 0;
    color: var(--soft);
    font-size: clamp(17px, 2vw, 19px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 40px;
}

.hero__meta {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.hero__shot {
    margin: clamp(56px, 8vw, 88px) auto 0;
    max-width: 1040px;
    position: relative;
}

.hero__shot figcaption {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.hero__shot .frame {
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--panel-border), 0 0 90px -20px rgba(30, 214, 198, .25);
}

/* ---------- Screenshot frame ---------- */

.frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---------- Stats strip ---------- */

.stats {
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    background: var(--bg-alt);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--divider);
    background-clip: content-box;
}

.stat {
    padding: 34px 12px;
    text-align: center;
    background: var(--bg-alt);
}

.stat strong {
    display: block;
    font-size: clamp(34px, 4.4vw, 48px);
    font-weight: 600;
    line-height: 1;
    color: var(--text);
}

.stat strong small {
    font-size: .42em;
    color: var(--accent);
    margin-left: 3px;
    letter-spacing: .08em;
}

.stat span {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
    padding: var(--section) 0;
    position: relative;
}

.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(48px, 7vw, 72px);
}

.section__head h2,
.download__card h2 {
    font-size: clamp(32px, 4.6vw, 52px);
    letter-spacing: .01em;
}

.section__intro {
    margin-top: 18px;
    color: var(--soft);
    font-size: 18px;
}

/* ---------- Feature spotlights ---------- */

.spotlight {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    margin-bottom: clamp(64px, 9vw, 112px);
}

.spotlight--flip .spotlight__media {
    order: 2;
}

.spotlight__media {
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}

.spotlight__text h3 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 16px;
}

.spotlight__text > p:not(.section__label) {
    color: var(--soft);
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.ticks li {
    position: relative;
    padding-left: 32px;
    color: var(--soft);
    font-size: 16px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid var(--accent);
    background: rgba(30, 214, 198, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ED6C6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Feature cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: border-color .25s, transform .25s;
}

.card:hover {
    border-color: rgba(30, 214, 198, .45);
    transform: translateY(-3px);
}

.card__icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(30, 214, 198, .1);
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 20px;
}

.card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 16px;
}

/* ---------- Cars ---------- */

.cars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.car {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .25s, transform .25s;
}

.car:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.car__img {
    overflow: hidden;
}

.car__img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .6s;
}

.car:hover .car__img img {
    transform: scale(1.05);
}

.car__body {
    padding: 22px 24px 26px;
}

.car h3 {
    font-size: 19px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.car__stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.car__stat b {
    color: var(--text);
    letter-spacing: .08em;
    font-weight: 600;
}

.bar {
    height: 4px;
    border-radius: 2px;
    background: var(--field);
    overflow: hidden;
    margin-bottom: 16px;
}

.bar:last-child {
    margin-bottom: 0;
}

.bar i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    width: 0;
    transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .15s;
}

.car.is-visible .bar__speed {
    width: calc(var(--speed) / 360 * 100%);
}

.car.is-visible .bar__power {
    width: calc(var(--power) / 1050 * 100%);
}

/* ---------- Steps ---------- */

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step__img {
    margin-bottom: 24px;
}

.step__num {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3em;
    color: var(--accent);
    margin-bottom: 8px;
}

.step h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.step p {
    color: var(--muted);
    font-size: 16px;
}

/* ---------- Gallery ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.shot {
    position: relative;
    padding: 0;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    cursor: zoom-in;
    transition: border-color .25s;
}

.shot--wide {
    grid-column: span 2;
    grid-row: span 2;
}

.shot img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .5s, opacity .3s;
}

.shot::after {
    content: attr(data-caption);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 12px;
    font: 600 13px/1.4 "Barlow", sans-serif;
    letter-spacing: .04em;
    color: var(--text);
    text-align: left;
    background: linear-gradient(transparent, rgba(7, 9, 11, .92));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}

.shot:hover,
.shot:focus-visible {
    border-color: var(--accent);
}

.shot:hover img {
    transform: scale(1.04);
}

.shot:hover::after,
.shot:focus-visible::after {
    opacity: 1;
    transform: none;
}

/* ---------- Requirements ---------- */

.specs {
    max-width: 880px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 40px);
}

.spec-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.spec-list div {
    display: flex;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider);
}

.spec-list dt {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
}

.spec-list dd {
    margin: 0;
    color: var(--text);
}

.specs__note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 15px;
}

/* ---------- Download ---------- */

.download {
    overflow: hidden;
}

.download__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(30, 214, 198, .13), transparent 70%);
    pointer-events: none;
}

.download__card {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: clamp(32px, 6vw, 64px);
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9);
}

.download__card .section__intro {
    margin-bottom: 36px;
}

.download__file {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.install {
    list-style: none;
    padding: 32px 0 0;
    margin: 40px 0 0;
    border-top: 1px solid var(--divider);
    display: grid;
    gap: 18px;
    text-align: left;
}

.install li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    color: var(--soft);
    font-size: 16px;
}

.install li > span {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.install b {
    color: var(--text);
    font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
    display: grid;
    gap: 12px;
}

.faq details {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    transition: border-color .25s;
}

.faq details[open] {
    border-color: rgba(30, 214, 198, .45);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s;
}

.faq details[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.faq details p {
    padding: 0 24px 22px;
    color: var(--soft);
    font-size: 16px;
}

.faq b {
    color: var(--text);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--divider);
    padding: 64px 0 40px;
    background: var(--bg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
}

.footer__brand p {
    margin: 16px 0 24px;
    color: var(--muted);
    font-size: 15px;
    max-width: 380px;
}

.footer__credits h5 {
    font-size: 12px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer__credits p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer__credits b {
    color: var(--soft);
    font-weight: 600;
}

.footer__credits a {
    color: var(--soft);
}

.footer__credits a:hover {
    color: var(--accent);
}

.footer__legal {
    margin-top: 48px;
    padding-top: 24px;
    background: linear-gradient(var(--divider), var(--divider)) content-box top / 100% 1px no-repeat;
    background-origin: padding-box;
    background-position: var(--gutter) 0;
    background-size: calc(100% - 2 * var(--gutter)) 1px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 72px;
    background: rgba(3, 4, 5, .93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fade .2s ease;
}

.lightbox[hidden] {
    display: none;
}

.lightbox figure {
    margin: 0;
    max-width: 1280px;
    width: 100%;
    text-align: center;
}

.lightbox img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--panel-border);
    background: var(--panel);
}

.lightbox figcaption {
    margin-top: 16px;
    color: var(--soft);
    font-size: 15px;
}

.lightbox button {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    color: var(--text);
    font: 400 28px/1 "Barlow", sans-serif;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color .2s, color .2s;
}

.lightbox button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__nav--prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Discord community CTA ---------- */

.discord-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 56px;
    min-height: 56px;
    padding: 0 20px;
    border: 1px solid rgba(88, 101, 242, .55);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(88, 101, 242, .18), rgba(30, 214, 198, .06));
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}

.discord-cta:hover {
    border-color: #7289ff;
    background: rgba(88, 101, 242, .22);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -12px rgba(88, 101, 242, .4);
}

.discord-cta__icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.discord-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.discord-cta__text small {
    margin-top: 3px;
    color: var(--soft);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .cards,
    .cars {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .shot--wide {
        grid-column: span 2;
        grid-row: auto;
    }
}

@media (max-width: 860px) {
    .nav__links {
        position: fixed;
        inset: 68px 0 auto;
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: rgba(7, 9, 11, .97);
        border-bottom: 1px solid var(--divider);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }

    .nav__links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--divider);
    }

    .nav__links a::after {
        display: none;
    }

    .nav.is-open {
        background: rgba(7, 9, 11, .97);
    }

    .nav.is-open .nav__links {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__cta {
        margin-left: auto;
    }

    .nav__toggle {
        display: grid;
        gap: 6px;
        align-content: center;
        width: 40px;
        height: 40px;
        padding: 0 9px;
        border: 1px solid var(--panel-border);
        border-radius: 8px;
        background: var(--panel);
        cursor: pointer;
    }

    .nav__toggle span {
        display: block;
        height: 2px;
        background: var(--text);
        border-radius: 1px;
        transition: transform .2s;
    }

    .nav.is-open .nav__toggle span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .nav.is-open .nav__toggle span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .spotlight {
        grid-template-columns: 1fr;
    }

    .spotlight--flip .spotlight__media {
        order: 0;
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .stats__grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .stat {
        grid-column: span 2;
    }

    .stat:nth-child(n + 4) {
        grid-column: span 3;
    }

    .spec-list {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding-top: 128px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .btn--large {
        padding: 0 20px;
        letter-spacing: .14em;
    }

    .discord-cta {
        width: 100%;
        padding: 0 16px;
        white-space: normal;
    }

    .cards,
    .cars,
    .gallery {
        grid-template-columns: 1fr;
    }

    .shot--wide {
        grid-column: auto;
    }

    .stat,
    .stat:nth-child(n + 4) {
        grid-column: span 3;
    }

    .stat:last-child {
        grid-column: span 6;
    }

    .spec-list div {
        flex-direction: column;
        gap: 4px;
    }

    .spec-list dt {
        flex-basis: auto;
    }

    .lightbox {
        padding: 64px 12px;
    }

    .lightbox__nav--prev,
    .lightbox__nav--next {
        top: auto;
        bottom: 16px;
        transform: none;
    }

    .lightbox__nav--prev {
        left: calc(50% - 60px);
    }

    .lightbox__nav--next {
        right: calc(50% - 60px);
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        margin-left: auto;
    }
}