:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #b8bec7;
  --soft: rgba(245, 241, 232, 0.72);
  --panel: rgba(12, 14, 17, 0.72);
  --line: rgba(245, 241, 232, 0.16);
  --red: #e7343f;
  --gold: #d8b45a;
  --cyan: #62d7ff;
  --charcoal: #08090b;
  --steel: #2b3038;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--charcoal);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(231, 52, 63, 0.14), transparent 34%),
    linear-gradient(255deg, rgba(98, 215, 255, 0.12), transparent 38%),
    radial-gradient(circle at 52% 12%, rgba(216, 180, 90, 0.16), transparent 26%),
    #08090b;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 80%);
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 42vh;
  content: "";
  background:
    linear-gradient(to top, rgba(8, 9, 11, 0.95), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(245, 241, 232, 0.08) 0 1px,
      transparent 1px 110px
    );
  transform: perspective(520px) rotateX(64deg);
  transform-origin: bottom;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 22px;
}

.hero {
  width: min(1120px, 100%);
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  grid-template-areas:
    "brand status"
    "copy visual"
    "cards cards";
  align-content: center;
  gap: 28px 44px;
}

.brand-row {
  grid-area: brand;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(216, 180, 90, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 180, 90, 0.24), rgba(231, 52, 63, 0.1)),
    rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink);
}

.status-pill {
  grid-area: status;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(12, 14, 17, 0.62);
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(216, 180, 90, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

.copy {
  grid-area: copy;
  align-self: center;
  max-width: 570px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: 4.25rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

.animation-stage {
  grid-area: visual;
  align-self: center;
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}

.spotlight {
  position: absolute;
  width: 42%;
  height: 92%;
  top: -4%;
  opacity: 0.75;
  filter: blur(2px);
  clip-path: polygon(43% 0, 61% 0, 100% 100%, 0 100%);
  transform-origin: top;
  animation: sweep 8s ease-in-out infinite alternate;
}

.spotlight-a {
  left: 6%;
  background: linear-gradient(to bottom, rgba(98, 215, 255, 0.18), transparent 76%);
}

.spotlight-b {
  right: 5%;
  background: linear-gradient(to bottom, rgba(216, 180, 90, 0.16), transparent 76%);
  animation-delay: -3.8s;
}

.lift-frame {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 1.75;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(20, 23, 29, 0.88), rgba(8, 9, 11, 0.78));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bay-light {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 38%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  opacity: 0.5;
  transform: translateX(-50%);
  animation: bay-flicker 5.6s ease-in-out infinite;
}

.car-line {
  position: relative;
  z-index: 1;
  width: 92%;
  height: auto;
  overflow: visible;
}

.car-stroke,
.wheel,
.wheel-inner {
  fill: none;
  stroke: rgba(245, 241, 232, 0.92);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(245, 241, 232, 0.16));
}

.car-stroke {
  stroke-dasharray: 1240;
  stroke-dashoffset: 1240;
  animation: draw-car 3.2s ease-in-out infinite;
}

.car-detail {
  stroke: rgba(98, 215, 255, 0.72);
  stroke-width: 7;
  animation-delay: 0.2s;
}

.wheel {
  stroke: rgba(216, 180, 90, 0.86);
  stroke-width: 8;
  transform-origin: center;
  animation: wheel-glow 2.8s ease-in-out infinite;
}

.wheel-inner {
  stroke: rgba(245, 241, 232, 0.72);
  stroke-width: 6;
}

.cover {
  fill: rgba(231, 52, 63, 0.14);
  stroke: rgba(231, 52, 63, 0.58);
  stroke-width: 3;
  animation: cover-breathe 3.4s ease-in-out infinite;
}

.scanner {
  position: absolute;
  inset: 24% 6% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(98, 215, 255, 0.75);
  opacity: 0;
  animation: scan 4.4s ease-in-out infinite;
}

.road {
  position: absolute;
  right: 0;
  bottom: 17%;
  left: 0;
  height: 2px;
  background: rgba(245, 241, 232, 0.14);
}

.road span {
  position: absolute;
  top: -1px;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.88), transparent);
  animation: road-dash 2.8s linear infinite;
}

.road span:nth-child(2) {
  animation-delay: -0.9s;
}

.road span:nth-child(3) {
  animation-delay: -1.8s;
}

.status-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.status-card {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.status-card span,
.status-card strong {
  display: block;
}

.status-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.status-card strong {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 180, 90, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(216, 180, 90, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 180, 90, 0);
  }
}

@keyframes sweep {
  0% {
    transform: rotate(-5deg) translateX(-2%);
  }
  100% {
    transform: rotate(6deg) translateX(2%);
  }
}

@keyframes draw-car {
  0%,
  14% {
    stroke-dashoffset: 1240;
    opacity: 0.45;
  }
  42%,
  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -1240;
    opacity: 0.45;
  }
}

@keyframes wheel-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(216, 180, 90, 0.26));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(216, 180, 90, 0.72));
  }
}

@keyframes cover-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes scan {
  0%,
  24% {
    opacity: 0;
    transform: translateY(0);
  }
  34% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    transform: translateY(168px);
  }
  72%,
  100% {
    opacity: 0;
    transform: translateY(168px);
  }
}

@keyframes road-dash {
  from {
    transform: translateX(-120px);
  }
  to {
    transform: translateX(780px);
  }
}

@keyframes bay-flicker {
  0%,
  100% {
    opacity: 0.36;
  }
  45% {
    opacity: 0.74;
  }
  48% {
    opacity: 0.42;
  }
  52% {
    opacity: 0.8;
  }
}

@media (max-width: 920px) {
  .page-shell {
    padding: 28px 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "copy"
      "visual"
      "status"
      "cards";
    gap: 24px;
  }

  .status-pill {
    justify-self: start;
  }

  h1 {
    max-width: 11ch;
    font-size: 3.1rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .animation-stage {
    min-height: 300px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 20px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 0.93rem;
  }

  h1 {
    max-width: 10ch;
    font-size: 2.42rem;
    line-height: 1.02;
  }

  .lift-frame {
    aspect-ratio: 1.18;
  }

  .car-line {
    width: 118%;
    transform: translateY(16px);
  }

  .status-card {
    min-height: 86px;
  }
}

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