:root {
  color-scheme: dark;
  --asphalt: #080a0c;
  --graphite: #101419;
  --steel: #7d8a93;
  --silver: #d8dde0;
  --headlight: #f7f4e9;
  --amber: #e2a94a;
  --amber-soft: #f2c875;
  --line: rgba(216, 221, 224, 0.14);
  --page-x: clamp(1.25rem, 4.8vw, 5.5rem);
  --page-y: clamp(1.25rem, 3vw, 2.6rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--asphalt);
  scrollbar-color: rgba(216, 221, 224, 0.28) var(--asphalt);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--asphalt);
  color: var(--headlight);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--asphalt);
}

body::-webkit-scrollbar-thumb {
  border: 3px solid var(--asphalt);
  border-radius: 999px;
  background: rgba(216, 221, 224, 0.28);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 0.3rem;
  background: var(--headlight);
  color: var(--asphalt);
  font-weight: 700;
  text-decoration: none;
}

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

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 48%, rgba(202, 147, 53, 0.07), transparent 26rem),
    linear-gradient(112deg, #07090b 0%, #0b0f13 48%, #07090b 100%);
}

.intro::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
}

.topbar,
.hero,
.footer {
  position: relative;
  z-index: 5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--page-y) var(--page-x);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  color: var(--headlight);
  text-decoration: none;
}

.brand:focus-visible {
  outline: 2px solid var(--amber-soft);
  outline-offset: 0.45rem;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  align-items: end;
  gap: 3px;
  width: 15px;
  height: 20px;
  transform: skewX(-16deg);
}

.brand-mark span {
  display: block;
  background: var(--amber);
}

.brand-mark span:nth-child(1) {
  height: 45%;
  opacity: 0.5;
}

.brand-mark span:nth-child(2) {
  height: 75%;
  opacity: 0.75;
}

.brand-mark span:nth-child(3) {
  height: 100%;
}

.brand-name {
  font-family: "Bahnschrift", "Aptos Display", "Arial Narrow", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 650;
  letter-spacing: 0.085em;
}

.brand-name span {
  color: var(--amber-soft);
}

.launch-state {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: rgba(216, 221, 224, 0.66);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(226, 169, 74, 0.5);
  animation: status-pulse 2.8s ease-out infinite;
}

.hero {
  width: min(72rem, 100%);
  align-self: center;
  padding: clamp(5rem, 10vh, 8.5rem) var(--page-x) clamp(5.5rem, 12vh, 9rem);
}

.eyebrow {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 0 0 1.6rem;
  color: var(--amber-soft);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--amber);
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Bahnschrift", "Aptos Display", "Arial Narrow", sans-serif;
  font-size: clamp(3.2rem, 8.4vw, 8rem);
  font-stretch: condensed;
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.87;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.headline-accent {
  margin-top: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 244, 233, 0.63);
  text-shadow: 0 0 34px rgba(247, 244, 233, 0.06);
}

.lead {
  max-width: 40rem;
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  color: rgba(216, 221, 224, 0.68);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.arrival {
  display: grid;
  grid-template-columns: auto minmax(4rem, 13rem) auto;
  gap: 1rem;
  align-items: center;
  width: min(100%, 34rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
  color: rgba(216, 221, 224, 0.52);
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.arrival-time {
  color: var(--headlight);
}

.arrival-line {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(216, 221, 224, 0.18);
}

.arrival-line span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  background: linear-gradient(90deg, transparent, var(--amber-soft));
  animation: progress-pass 3.8s ease-in-out infinite;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: var(--page-y) var(--page-x);
  border-top: 1px solid var(--line);
  color: rgba(216, 221, 224, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.atmosphere {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.garage-grid {
  position: absolute;
  top: 0;
  right: -9%;
  bottom: 0;
  width: 58%;
  transform: perspective(700px) rotateY(-9deg);
  transform-origin: right center;
  border-left: 1px solid rgba(216, 221, 224, 0.08);
  background:
    repeating-linear-gradient(90deg, transparent 0 15.9%, rgba(216, 221, 224, 0.07) 16%, transparent 16.1% 32%),
    repeating-linear-gradient(0deg, transparent 0 14.9%, rgba(216, 221, 224, 0.045) 15%, transparent 15.1% 30%);
  mask-image: linear-gradient(90deg, transparent 0%, black 34%, black 100%);
  opacity: 0.54;
}

.horizon-glow {
  position: absolute;
  top: 49%;
  right: -6rem;
  width: min(72vw, 74rem);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(226, 169, 74, 0.65), rgba(247, 244, 233, 0.9), transparent);
  filter: blur(1px);
  opacity: 0.44;
  box-shadow: 0 0 30px rgba(226, 169, 74, 0.25);
}

.car-line {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(68vw, 74rem);
  height: auto;
  transform: translateY(-49%);
  opacity: 0.34;
  filter: drop-shadow(0 0 8px rgba(226, 169, 74, 0.18));
}

.car-line path {
  fill: none;
  stroke: url("#stroke-fade");
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-car 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards;
}

.scan-beam {
  position: absolute;
  top: 9%;
  right: 22%;
  bottom: 9%;
  width: 1px;
  background: linear-gradient(transparent, rgba(242, 200, 117, 0.86), transparent);
  box-shadow: 0 0 23px 3px rgba(226, 169, 74, 0.14);
  animation: scan 7s ease-in-out infinite;
  opacity: 0;
}

.floor-reflection {
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 70%;
  height: 37%;
  transform: perspective(400px) rotateX(63deg);
  background:
    linear-gradient(90deg, transparent, rgba(226, 169, 74, 0.08), transparent),
    repeating-linear-gradient(90deg, transparent 0 12%, rgba(216, 221, 224, 0.04) 12.1% 12.2%, transparent 12.3% 24%);
  filter: blur(2px);
  mask-image: linear-gradient(transparent, black);
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 169, 74, 0.5); }
  65%, 100% { box-shadow: 0 0 0 0.55rem rgba(226, 169, 74, 0); }
}

@keyframes progress-pass {
  0% { transform: translateX(-110%); opacity: 0; }
  20% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(390%); opacity: 0; }
}

@keyframes draw-car {
  to { stroke-dashoffset: 0; }
}

@keyframes scan {
  0%, 10% { transform: translateX(18rem); opacity: 0; }
  20% { opacity: 0.62; }
  50% { opacity: 0.34; }
  78% { opacity: 0.58; }
  90%, 100% { transform: translateX(-34rem); opacity: 0; }
}

@media (max-width: 760px) {
  .launch-state span:last-child {
    display: none;
  }

  .launch-dot {
    width: 0.5rem;
    height: 0.5rem;
  }

  .hero {
    align-self: center;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }

  h1 {
    font-size: clamp(3rem, 16.5vw, 5.4rem);
    line-height: 0.92;
  }

  .lead {
    max-width: 31rem;
    font-size: 1rem;
  }

  .garage-grid {
    right: -34%;
    width: 105%;
    opacity: 0.38;
  }

  .car-line {
    top: 53%;
    right: -38%;
    width: 134vw;
    opacity: 0.2;
  }

  .horizon-glow {
    top: 53%;
    width: 112vw;
  }

  .scan-beam {
    right: 18%;
  }

  .footer-note {
    display: none;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    gap: 0.65rem;
    letter-spacing: 0.15em;
  }

  .eyebrow::before {
    width: 1.7rem;
  }

  .arrival {
    grid-template-columns: auto 1fr;
  }

  .arrival-label {
    display: none;
  }
}

@media (max-height: 690px) and (min-width: 761px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 8vw, 6.4rem);
  }

  .lead {
    margin-top: 1.7rem;
  }

  .arrival {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .car-line path {
    stroke-dashoffset: 0;
  }
}

@media (forced-colors: active) {
  .brand-mark span,
  .launch-dot,
  .eyebrow::before,
  .arrival-line span {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .headline-accent {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}
