:root {
    --bg0: #0a0b0f;
    --bg1: #15171d;
    --panel: rgba(30, 33, 42, 0.88);
    --panel-2: rgba(23, 25, 33, 0.9);
    --line: rgba(193, 200, 215, 0.26);
    --text: #f2f4f7;
    --muted: #b0b8c7;
    --lane: #ffd166;
    --accent: #e85d3f;
    --steel: #cdd5e4;
    --timeline-progress: 0%;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    line-height: 1.28;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 209, 102, 0.1) 0%, rgba(255, 209, 102, 0) 38%),
        radial-gradient(circle at 82% 14%, rgba(232, 93, 63, 0.1) 0%, rgba(232, 93, 63, 0) 40%),
        linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.16) 0.65px, transparent 0.65px),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0 2px,
            rgba(0, 0, 0, 0) 2px 4px
        );
    background-size: 3px 3px, auto;
}

.site-bg {
    position: fixed;
    inset: -10%;
    z-index: -4;
    opacity: 0.16;
    background:
        linear-gradient(180deg, rgba(8, 9, 13, 0.82), rgba(8, 10, 14, 0.92)),
        url("./bg@pc.png") center top / cover no-repeat;
    filter: saturate(0.72) contrast(1.05);
}

.highway-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.highway-overlay .lane {
    position: absolute;
    left: -44vw;
    width: 36vw;
    height: 2px;
    opacity: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(255, 241, 207, 0.96),
        rgba(255, 255, 255, 0)
    );
}

.highway-overlay .lane:nth-child(1) { top: 18%; }
.highway-overlay .lane:nth-child(2) { top: 39%; }
.highway-overlay .lane:nth-child(3) { top: 61%; }
.highway-overlay .lane:nth-child(4) { top: 82%; }

.site-noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.16;
    background-image: repeating-linear-gradient(
        -8deg,
        rgba(255, 255, 255, 0) 0 44px,
        rgba(255, 255, 255, 0.08) 44px 46px
    );
}

.site-lights {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.site-lights span {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    opacity: 0.14;
    filter: blur(16px);
}

.site-lights span:nth-child(1) {
    top: -14vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.72) 0%, rgba(255, 209, 102, 0) 72%);
}

.site-lights span:nth-child(2) {
    top: 20%;
    right: -14vw;
    background: radial-gradient(circle, rgba(232, 93, 63, 0.62) 0%, rgba(232, 93, 63, 0) 72%);
}

.site-lights span:nth-child(3) {
    bottom: -18vw;
    left: 28vw;
    background: radial-gradient(circle, rgba(126, 137, 160, 0.44) 0%, rgba(126, 137, 160, 0) 72%);
}

.back-home {
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 30;
    border: 1px solid rgba(213, 220, 235, 0.45);
    border-radius: 8px;
    background: rgba(20, 23, 31, 0.86);
    color: #e8edf8;
    text-decoration: none;
    font-family: "Teko", sans-serif;
    font-size: 0.94rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding: 0.34rem 0.68rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease;
}

.back-home:hover {
    border-color: rgba(255, 209, 102, 0.8);
    transform: translateY(-2px);
}

.hero,
.layout,
.footer {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

.hero {
    position: relative;
    margin-top: 3.45rem;
    padding: clamp(1rem, 2.8vw, 1.6rem);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(170deg, var(--panel), var(--panel-2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 20px 34px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background: repeating-linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0 38px,
        rgba(255, 255, 255, 0.07) 38px 40px
    );
}

.hero::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.08), rgba(255, 209, 102, 0.85), rgba(232, 93, 63, 0.76));
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    margin: 0;
    color: #ffdfa5;
    font-family: "Teko", sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0.58rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(2rem, 5.8vw, 3.8rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f8f9fc;
}

.hero-copy {
    margin: 0.68rem 0 0.9rem;
    color: var(--muted);
    max-width: 66ch;
}

.hero-speed {
    width: min(460px, 100%);
    margin: 0 0 0.9rem;
    padding: 0.7rem;
    border: 1px solid rgba(214, 191, 140, 0.38);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(36, 30, 23, 0.78), rgba(28, 24, 20, 0.86));
}

.hero-speed p {
    margin: 0;
    color: #ffd8a2;
    font-family: "Teko", sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.speed-readout {
    margin-top: 0.2rem;
    display: flex;
    align-items: flex-end;
    gap: 0.48rem;
}

.speed-number {
    font-family: "Teko", sans-serif;
    font-size: clamp(1.8rem, 5.2vw, 3.2rem);
    line-height: 0.94;
    color: #ffebc8;
    letter-spacing: 0.03em;
}

.speed-unit {
    margin-bottom: 0.2rem;
    font-family: "Teko", sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.1em;
    color: #ffd8a2;
    text-transform: uppercase;
}

.speed-bar {
    margin-top: 0.42rem;
    border: 1px solid rgba(207, 178, 123, 0.42);
    border-radius: 999px;
    height: 10px;
    background: rgba(21, 17, 15, 0.84);
    overflow: hidden;
}

.speed-bar span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #ffe3aa, #ffd166, #f8a75f, #e85d3f);
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.56rem;
}

.hero-nav a {
    border: 1px solid rgba(203, 211, 228, 0.34);
    border-radius: 999px;
    background: rgba(20, 23, 31, 0.86);
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Teko", sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.11em;
    padding: 0.35rem 0.72rem;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease;
}

.hero-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.76);
}

.hero-stats {
    margin-top: 0.92rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
}

.hero-stats article {
    border: 1px solid rgba(197, 205, 220, 0.25);
    border-radius: 10px;
    background: rgba(20, 23, 31, 0.82);
    padding: 0.54rem 0.62rem;
}

.hero-stats span {
    display: block;
    color: var(--muted);
    font-family: "Teko", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-stats strong {
    display: block;
    margin-top: 0.06rem;
    font-family: "Teko", sans-serif;
    font-size: clamp(1.1rem, 2.4vw, 1.7rem);
    line-height: 1;
    letter-spacing: 0.02em;
}

.layout {
    display: grid;
    gap: 0.92rem;
    padding: 1rem 0 1.55rem;
}

.panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(176deg, rgba(28, 31, 40, 0.88), rgba(22, 24, 32, 0.92));
    padding: 0.94rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    background: repeating-linear-gradient(
        116deg,
        rgba(255, 255, 255, 0) 0 44px,
        rgba(255, 255, 255, 0.06) 44px 46px
    );
}

.panel > * {
    position: relative;
    z-index: 1;
}

.panel-heading {
    margin-bottom: 0.74rem;
}

.panel-tag {
    margin: 0;
    color: #ffc083;
    text-transform: uppercase;
    font-family: "Teko", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
}

.panel h2 {
    margin: 0.3rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(1.4rem, 3.6vw, 2.2rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.panel-heading p:last-child {
    margin: 0.44rem 0 0;
    color: var(--muted);
}

.js-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    filter: blur(6px);
}

.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0.24rem 0 0;
    position: relative;
}

.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    left: 0.64rem;
    top: 0;
    width: 2px;
}

.timeline::before {
    bottom: 0;
    background: rgba(255, 255, 255, 0.16);
}

.timeline::after {
    height: var(--timeline-progress);
    background: linear-gradient(180deg, #ffd166, #e85d3f);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.74rem;
    margin-bottom: 0.84rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 0.33rem;
    border-radius: 50%;
    border: 2px solid #fff0d1;
    background: #d69c4f;
    box-shadow: 0 0 0 3px rgba(22, 24, 32, 0.9);
}

.timeline-item article {
    border: 1px solid rgba(197, 205, 220, 0.22);
    border-radius: 12px;
    background: rgba(20, 23, 31, 0.76);
    padding: 0.62rem 0.68rem;
}

.timeline-item time {
    color: #ffd49b;
    font-family: "Teko", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin: 0.38rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(1rem, 2.3vw, 1.4rem);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.timeline-item p {
    margin: 0.42rem 0 0;
    color: var(--muted);
}

.timeline-item ul {
    margin: 0.52rem 0 0;
    padding-left: 1rem;
}

.timeline-item li {
    margin-top: 0.12rem;
}

.garage-grid {
    display: grid;
    gap: 0.84rem;
}

.car-card {
    display: grid;
    grid-template-columns: minmax(290px, 1.06fr) minmax(0, 1fr);
    gap: 0.68rem 0.9rem;
    align-items: start;
    border: 1px solid rgba(197, 205, 220, 0.24);
    border-radius: 14px;
    background: linear-gradient(170deg, rgba(27, 30, 39, 0.9), rgba(20, 23, 31, 0.94));
    padding: 0.8rem;
}

.car-card header,
.car-card dl,
.car-card ul {
    grid-column: 2;
}

.car-card:nth-child(even) header,
.car-card:nth-child(even) dl,
.car-card:nth-child(even) ul {
    grid-column: 1;
}

.car-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.54rem;
}

.car-card h3 {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(1rem, 2.1vw, 1.42rem);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status {
    display: inline-block;
    border: 1px solid rgba(232, 93, 63, 0.72);
    border-radius: 999px;
    color: #ffd7cd;
    background: rgba(44, 20, 16, 0.84);
    padding: 0.18rem 0.44rem;
    font-family: "Teko", sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.car-media {
    grid-column: 1;
    grid-row: 1 / 4;
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(216, 223, 236, 0.35);
    border-radius: 10px;
    background: #0f1218;
    aspect-ratio: 16 / 10;
    transform-style: preserve-3d;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
}

.car-card:nth-child(even) .car-media {
    grid-column: 2;
}

.car-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.68;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(255, 220, 164, 0.28) 0%,
        rgba(255, 220, 164, 0) 44%
    );
}

.car-media-scan {
    position: absolute;
    inset: -140% 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.38;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 209, 102, 0.46) 50%,
        rgba(255, 255, 255, 0) 60%
    );
}

.car-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.06);
    filter: contrast(1.04) saturate(0.96);
}

.car-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.18rem 0 0;
}

.car-card dt {
    color: var(--muted);
    font-family: "Teko", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.car-card dd {
    margin: 0.04rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: 0.94rem;
    letter-spacing: 0.04em;
}

.car-card ul {
    margin: 0.22rem 0 0;
    padding-left: 1rem;
}

.car-card li {
    margin-top: 0.12rem;
}

.inventory {
    margin-top: 0.92rem;
    border-top: 1px solid rgba(197, 205, 220, 0.2);
    padding-top: 0.74rem;
}

.inventory h3 {
    margin: 0 0 0.52rem;
    font-family: "Teko", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.item-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.item-chips span {
    border: 1px solid rgba(214, 191, 140, 0.4);
    border-radius: 999px;
    background: rgba(39, 33, 25, 0.8);
    color: #fce8c4;
    padding: 0.22rem 0.52rem;
    font-family: "Teko", sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer {
    margin: 0 auto 1.4rem;
    color: var(--muted);
    text-transform: uppercase;
    font-family: "Teko", sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.11em;
}

.footer p {
    margin: 0;
}

@media (max-width: 980px) {
    .car-card {
        grid-template-columns: minmax(250px, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .hero {
        margin-top: 3.2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .car-card {
        grid-template-columns: 1fr;
        gap: 0.64rem;
    }

    .car-media,
    .car-card header,
    .car-card dl,
    .car-card ul,
    .car-card:nth-child(even) .car-media,
    .car-card:nth-child(even) header,
    .car-card:nth-child(even) dl,
    .car-card:nth-child(even) ul {
        grid-column: 1;
        grid-row: auto;
    }

    .car-media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-copy {
        font-size: 1.02rem;
    }

    .back-home {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }
}

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

    .js-ready [data-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
