:root {
    --bg: #0a0a0c;
    --panel: rgba(255, 255, 255, .04);
    --line: rgba(255, 255, 255, .1);
    --text: #f2f2f4;
    --muted: #9b9ba6;
    --gold: #c9a24a;
    --gold-2: #f0d58a;
    --red: #ff2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
    z-index: 0;
    pointer-events: none
}

.glow-1 {
    width: 520px;
    height: 520px;
    background: #7a5c14;
    top: -160px;
    left: -120px;
    animation: float 14s ease-in-out infinite
}

.glow-2 {
    width: 460px;
    height: 460px;
    background: #5b0f14;
    bottom: -140px;
    right: -120px;
    animation: float 18s ease-in-out infinite reverse
}

@keyframes float {
    50% {
        transform: translate(60px, 40px) scale(1.15)
    }
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: opacity .7s ease, visibility .7s;
}

.loader.done {
    opacity: 0;
    visibility: hidden
}

.loader-mark {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 44px;
    letter-spacing: 6px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 1.2s ease-in-out infinite;
}

.loader-bar {
    width: 180px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
    border-radius: 2px
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--gold);
    animation: load 1s ease-in-out infinite
}

@keyframes load {
    from {
        transform: translateX(-100%)
    }

    to {
        transform: translateX(260%)
    }
}

@keyframes pulse {
    50% {
        opacity: .5
    }
}

/* Nav */
.nav {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px clamp(20px, 5vw, 64px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text)
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(201, 162, 74, .35) inset;
}

.brand-name {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 3px;
    font-size: 14px
}

.brand-name b {
    color: var(--gold)
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    backdrop-filter: blur(8px);
    color: var(--muted);
}

.badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: blink 1.4s infinite
}

@keyframes blink {
    50% {
        opacity: .2;
        transform: scale(.7)
    }
}

/* Hero */
.hero {
    position: relative;
    z-index: 5;
    flex: 1;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(10px, 3vh, 40px) clamp(20px, 5vw, 40px) 0;
    text-align: center;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.title {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 7.2vw, 86px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.title .line {
    display: block;
    overflow: hidden;
    padding: 4px 0
}

.title .line span {
    display: inline-block;
    transform: translateY(110%);
    animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards
}

.title .line:nth-child(1) span {
    animation-delay: .9s
}

.title .line:nth-child(2) span {
    animation-delay: 1.05s
}

.title .line:nth-child(3) span {
    animation-delay: 1.2s
}

@keyframes rise {
    to {
        transform: translateY(0)
    }
}

.accent {
    background: linear-gradient(100deg, var(--gold) 20%, var(--gold-2) 45%, var(--gold) 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rise 1s cubic-bezier(.2, .8, .2, 1) 1.05s forwards, shine 4s linear 2s infinite;
}

@keyframes shine {
    to {
        background-position: 200% center
    }
}

.lead {
    max-width: 640px;
    margin: 26px auto 0;
    color: var(--muted);
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    font-weight: 300;
}

.lead strong {
    color: var(--text);
    font-weight: 500;
    display: block;
    margin-top: 10px
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp .9s ease forwards
}

.eyebrow.reveal {
    animation-delay: .6s
}

.lead.reveal {
    animation-delay: 1.5s
}

.countdown.reveal {
    animation-delay: 1.7s
}

.progress.reveal {
    animation-delay: 1.9s
}

.notify.reveal {
    animation-delay: 2.1s
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none
    }
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
    margin-top: 38px;
    flex-wrap: wrap
}

.cd-box {
    min-width: clamp(70px, 12vw, 104px);
    padding: 16px 10px 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cd-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cd-box span {
    display: block;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 4vw, 38px);
    font-variant-numeric: tabular-nums
}

.cd-box small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted)
}

.cd-box span.tick {
    animation: tick .35s ease
}

@keyframes tick {
    0% {
        transform: translateY(-8px);
        opacity: 0
    }

    100% {
        transform: none;
        opacity: 1
    }
}

/* Progress */
.progress {
    max-width: 460px;
    margin: 34px auto 0
}

.progress-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px
}

.progress-top span:last-child {
    color: var(--gold)
}

.progress-track {
    height: 5px;
    border-radius: 5px;
    background: var(--line);
    overflow: hidden
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    box-shadow: 0 0 14px rgba(201, 162, 74, .7);
    transition: width 2.4s cubic-bezier(.2, .8, .2, 1);
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: translateX(-100%);
    animation: sweep 2s linear infinite;
}

@keyframes sweep {
    to {
        transform: translateX(100%)
    }
}

/* Notify */
.notify {
    position: relative;
    max-width: 520px;
    margin: 34px auto 0;
    display: flex;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    backdrop-filter: blur(10px);
    transition: border-color .3s, box-shadow .3s;
}

.notify:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 74, .12)
}

.notify input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    padding: 0 20px;
    font-size: 14px;
    font-family: inherit;
}

.notify input::placeholder {
    color: #6f6f7a
}

.notify button {
    border: 0;
    cursor: pointer;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111;
    background: linear-gradient(100deg, var(--gold), var(--gold-2));
    font-family: inherit;
    transition: transform .25s, box-shadow .25s;
}

.notify button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 162, 74, .35)
}

.notify .msg {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    font-size: 13px;
    color: var(--muted);
    min-height: 18px;
}

.notify .msg.ok {
    color: #7be0a0
}

.notify .msg.err {
    color: #ff7a7a
}

/* Scene */
.scene {
    position: relative;
    z-index: 4;
    height: 210px;
    margin-top: 70px;
    overflow: hidden;
}

.skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 70px;
    height: 80px;
    opacity: .25;
    background:
        linear-gradient(#1a1a20, #1a1a20) 0 100%/60px 55px no-repeat,
        linear-gradient(#1a1a20, #1a1a20) 80px 100%/40px 80px no-repeat,
        linear-gradient(#1a1a20, #1a1a20) 140px 100%/70px 40px no-repeat,
        linear-gradient(#1a1a20, #1a1a20) 230px 100%/50px 70px no-repeat;
    background-repeat: repeat-x;
    background-size: 300px 100%;
    animation: city 30s linear infinite;
}

@keyframes city {
    to {
        background-position: -300px 0
    }
}

.road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(#141418, #0b0b0e);
    border-top: 1px solid #2a2a32;
}

.dashes {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 50px, transparent 50px 120px);
    opacity: .8;
    animation: road .6s linear infinite;
}

@keyframes road {
    to {
        background-position: -120px 0
    }
}

.speed-lines i {
    position: absolute;
    height: 1.5px;
    width: 140px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    animation: speed 1.4s linear infinite;
}

.speed-lines i:nth-child(1) {
    top: 40px;
    animation-delay: 0s
}

.speed-lines i:nth-child(2) {
    top: 70px;
    animation-delay: .4s;
    width: 200px
}

.speed-lines i:nth-child(3) {
    top: 100px;
    animation-delay: .9s
}

.speed-lines i:nth-child(4) {
    top: 55px;
    animation-delay: .2s;
    width: 100px
}

.speed-lines i:nth-child(5) {
    top: 120px;
    animation-delay: .6s;
    width: 180px
}

.speed-lines i:nth-child(6) {
    top: 85px;
    animation-delay: 1.1s;
    width: 120px
}

@keyframes speed {
    from {
        left: 110%;
        opacity: 0
    }

    20% {
        opacity: 1
    }

    to {
        left: -30%;
        opacity: 0
    }
}

.car-wrap {
    position: absolute;
    bottom: 42px;
    left: -460px;
    width: min(420px, 70vw);
    animation: drive 7s cubic-bezier(.25, .6, .3, 1) 2.4s forwards;
}

@keyframes drive {
    0% {
        left: -460px
    }

    70% {
        left: calc(50% - 210px)
    }

    100% {
        left: calc(50% - 210px)
    }
}

.car {
    width: 100%;
    display: block;
    overflow: visible;
    animation: bounce .5s ease-in-out infinite
}

@keyframes bounce {
    50% {
        transform: translateY(-2px)
    }
}

.wheel {
    animation: spin .5s linear infinite;
    transform-box: fill-box
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.beam {
    animation: beam 2.2s ease-in-out infinite
}

@keyframes beam {
    50% {
        opacity: .55
    }
}

.hl {
    filter: drop-shadow(0 0 8px #ffe9b0)
}

.tl {
    filter: drop-shadow(0 0 6px #ff2a2a);
    animation: blink 1.2s infinite
}

.car-shadow {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -6px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .8), transparent 70%);
}

/* Footer */
.foot {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px clamp(20px, 5vw, 64px);
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(10, 10, 12, .7);
    backdrop-filter: blur(8px);
}

.foot-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap
}

.foot a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s
}

.foot a:hover {
    color: var(--gold)
}

@media (max-width:560px) {
    .badge {
        display: none
    }

    .notify {
        flex-direction: column;
        border-radius: 22px;
        padding: 8px;
        gap: 8px
    }

    .notify input {
        padding: 14px 16px
    }

    .notify button {
        width: 100%
    }

    .scene {
        height: 180px
    }

    .foot {
        justify-content: center;
        text-align: center
    }
}

@media (prefers-reduced-motion:reduce) {

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

    .car-wrap {
        left: calc(50% - 210px)
    }
}