* {
  box-sizing: border-box;
}

:root {
  --blue: #0797ff;
  --blue-bright: #20b4ff;
  --navy: #061b46;
  --white: #f6faff;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
}

body {
  user-select: none;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(3, 18, 48, .34), rgba(2, 13, 33, .22)),
    url("assets/garage-bg.png") center center / cover no-repeat;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 7, 24, .42) 100%),
    linear-gradient(to bottom, rgba(0, 8, 25, .28), transparent 32%, rgba(0, 8, 25, .48));
  z-index: 1;
}

.topbar,
.hero,
.rolling-area,
.bottom {
  position: relative;
  z-index: 2;
}

.topbar {
  position: absolute;
  top: 28px;
  left: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #138fff;
  background: linear-gradient(145deg, #09265d, #063b86);
  box-shadow: 0 0 24px rgba(0, 146, 255, .35);
  font-size: 12px;
  font-weight: 900;
  color: white;
}

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: .22em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #7dc9ff;
  font-size: 8px;
  letter-spacing: .18em;
}

.hero {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(760px, 90vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: #58bdff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 76px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 900;
  text-shadow: 0 5px 30px rgba(0, 0, 0, .4);
}

h1 span {
  color: var(--blue-bright);
  text-shadow: 0 0 28px rgba(0, 157, 255, .35);
}

.intro {
  max-width: 600px;
  margin: 18px auto 0;
  color: rgba(240, 248, 255, .82);
  font-size: 14px;
}

.rolling-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 35%;
  min-height: 220px;
  touch-action: none;
}

.tyre-wrap {
  position: absolute;
  left: 50%;
  bottom: -16%;
  width: clamp(180px, 23vw, 310px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  cursor: grab;
  z-index: 4;
  will-change: left, transform;
  touch-action: none;
}

.tyre-wrap.dragging {
  cursor: grabbing;
}

.tyre-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 16px 13px rgba(0, 0, 0, .5));
}

.tyre-shadow {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: clamp(150px, 18vw, 245px);
  height: 25px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  filter: blur(10px);
  z-index: 2;
  pointer-events: none;
}

.drag-hint {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(20, 155, 255, .55);
  border-radius: 999px;
  background: rgba(3, 24, 58, .58);
  backdrop-filter: blur(8px);
  color: white;
  transition: opacity .4s, transform .4s;
  z-index: 5;
  pointer-events: none;
}

.drag-hint.hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.drag-hint .hand-up {
  font-size: 20px;
}

.drag-hint .hand-down {
  display: none;
}

.drag-hint b,
.drag-hint small {
  display: block;
}

.drag-hint b {
  font-size: 10px;
  letter-spacing: .12em;
}

.drag-hint small {
  margin-top: 2px;
  color: #8fd4ff;
  font-size: 9px;
}

.bottom {
  position: absolute;
  left: 50%;
  bottom: 25px;
  width: min(650px, 82vw);
  transform: translateX(-50%);
  text-align: center;
}

.progress-copy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: .25em;
  color: #a9cbe5;
}

.progress-copy b {
  color: white;
  letter-spacing: 0;
}

.progress {
  height: 6px;
  padding: 1px;
  border: 1px solid rgba(80, 178, 255, .55);
  border-radius: 99px;
  background: rgba(1, 15, 39, .6);
}

.progress div {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #067df4, #2bc0ff);
  box-shadow: 0 0 12px rgba(0, 166, 255, .65);
}

.services {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 15px;
  color: #79c9ff;
  font-size: 9px;
  letter-spacing: .08em;
}

.copyright {
  margin: 13px 0 0;
  color: rgba(210, 230, 245, .48);
  font-size: 8px;
  letter-spacing: .18em;
}

@media (max-width: 700px) {
  .scene {
    min-height: 560px;
    background-position: 58% center;
  }

  .topbar {
    top: 18px;
    left: 18px;
  }

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

  .brand strong {
    font-size: 11px;
  }

  .brand small {
    font-size: 6px;
  }

  .hero {
    top: 12%;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: .2em;
  }

  h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .intro {
    font-size: 12px;
    padding: 0 20px;
  }

  .rolling-area {
    bottom: 24%;
    height: 31%;
  }

  .tyre-wrap {
    width: min(48vw, 220px);
  }

  .tyre-shadow {
    width: min(40vw, 175px);
  }

  .services {
    gap: 10px;
    font-size: 7px;
  }

  .drag-hint {
    top: 0;
  }

  .bottom {
    position: fixed;
    left: 50%;
    bottom: 12px;
    width: calc(100% - 30px);
    max-width: 650px;
    transform: translateX(-50%);
  }
  
  .drag-hint .hand-up {
    display: none;
  }

  .drag-hint .hand-down {
    display: block;
    font-size: 16px;
  }
}
