:root {
  --bg: #07090d;
  --bg2: #0d1017;
  --red: #d11a1f;
  --red-glow: #ff2a30;
  --white: #f3f4f5;
  --muted: #8b94a3;
  --line: rgba(255, 255, 255, 0.08);
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(120% 90% at 70% 10%, #161b26 0%, var(--bg2) 45%, var(--bg) 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

/* animated faint perspective grid */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 90%);
  opacity: 0.5;
  z-index: 0;
  animation: drift 24s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 96px, 48px 96px; }
}

/* 3D canvas fills the screen, car sits to the right on desktop */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 1.2s ease 0.2s;
}
#stage:active { cursor: grabbing; }
body.loaded #stage { opacity: 1; }

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
body.loaded .loader { opacity: 0; visibility: hidden; }
.loader__spinner {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Top bar ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 60px);
}
.brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: 0.18em;
}
.brand .dot { color: var(--red); }
.badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--red);
  border: 1px solid rgba(209, 26, 31, 0.5);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(209, 26, 31, 0.08);
  box-shadow: 0 0 24px rgba(209, 26, 31, 0.25) inset;
}

/* ---- Hero copy ---- */
.hero {
  position: fixed;
  z-index: 3;
  left: clamp(20px, 5vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 540px;
  pointer-events: none;
}
.hero > * { pointer-events: auto; }

.eyebrow {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--red);
  margin-bottom: 18px;
  opacity: 0;
  animation: rise 0.8s ease 0.3s forwards;
}
.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-shadow: 0 8px 40px rgba(0,0,0,0.6);
  opacity: 0;
  animation: rise 0.8s ease 0.45s forwards;
}
.hero .sub {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 34px;
  opacity: 0;
  animation: rise 0.8s ease 0.6s forwards;
}
.hero .sub strong { color: var(--white); font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- CTA ---- */
.cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 0.8s ease 0.75s forwards;
}
.btn {
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn--ghost {
  color: var(--white);
  border: 1px solid var(--red);
  background: linear-gradient(180deg, rgba(209,26,31,0.18), rgba(209,26,31,0.06));
  box-shadow: 0 0 0 rgba(209,26,31,0);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(209,26,31,0.45);
  background: linear-gradient(180deg, rgba(209,26,31,0.35), rgba(209,26,31,0.12));
}
.hint {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---- Specs strip ---- */
.specs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s ease 0.9s forwards;
}
.spec { display: flex; flex-direction: column; gap: 4px; }
.spec__k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.spec__v {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* ---- Footer ---- */
.footerbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.footerbar__tag { opacity: 0.8; }

/* ---- Mobile: stack copy over a top-anchored car ---- */
@media (max-width: 820px) {
  .hero {
    top: auto;
    bottom: 12vh;
    transform: none;
    max-width: 100%;
    right: clamp(20px, 5vw, 60px);
    text-align: left;
  }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero .sub { margin-bottom: 24px; }
  .specs { gap: 20px; }
  .footerbar { display: none; }
}
@media (max-width: 480px) {
  .badge { display: none; }
}
