:root {
  --asphalt: #121419;
  --asphalt-2: #1b1e25;
  --asphalt-3: #262a33;
  --line: #343946;
  --lime: #c6f135;
  --lime-dark: #9fc919;
  --yellow: #ffd23f;
  --red: #ff5a47;
  --white: #f6f6f1;
  --muted: #a6abb6;
  --radius: 18px;
  --display: "Bungee", "Arial Black", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.02; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.checker {
  height: 18px;
  background: conic-gradient(var(--white) 25%, #0b0c0f 0 50%, var(--white) 0 75%, #0b0c0f 0) 0 0 / 18px 18px;
}
.checker.thin { height: 12px; background-size: 12px 12px; }

/* road divider */
.road {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 34px, transparent 34px 60px);
  opacity: .9;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-size: 16px; letter-spacing: .02em; text-decoration: none;
  background: var(--lime); color: #111;
  box-shadow: 0 4px 0 var(--lime-dark);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--lime-dark); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lime-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--muted); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px #5a2a26; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* forms */
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
label.field > span small { font-weight: 400; color: var(--muted); }
.input, input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--asphalt); border: 2px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); }
input::placeholder, textarea::placeholder { color: #6f7583; }

.error {
  background: rgba(255, 90, 71, .12); color: #ffb3a8; border: 1px solid rgba(255, 90, 71, .4);
  border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 15px;
}

.card {
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}

.preview-banner {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50;
  background: var(--yellow); color: #111; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  max-width: calc(100vw - 32px); text-align: center;
}

.toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -140%); z-index: 60;
  background: var(--lime); color: #111; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  transition: transform .3s ease, visibility .3s; box-shadow: 0 6px 20px rgba(0,0,0,.4); visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* car */
.car-drive { animation: drive-in 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes drive-in { from { transform: translateX(-120vw); } to { transform: translateX(0); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .5s linear infinite; }
.car-drive .wheel { animation: spin .35s linear 3, spin 3s linear 1.05s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .car-drive, .wheel { animation: none !important; }
  html { scroll-behavior: auto; }
}
