:root {
  --sky: #d7dde4;
  --sky-deep: #aeb8c4;
  --asphalt: #2a2b2e;
  --asphalt-2: #35363a;
  --ink: #1b1a19;
  --cream: #f6efe2;
  --tabby: #c8894a;
  --tabby-dark: #7a4a22;
  --tabby-light: #e8b783;
  --road: #f5c518;
  --muted: #5d5a55;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(27, 26, 25, 0.45);
  --display: "Bungee", "Impact", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tabby-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--road);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--tabby); outline-offset: 3px; }
.btn--ghost { background: var(--cream); }
.btn--small { padding: 9px 18px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn--big { padding: 18px 34px; font-size: 20px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1140px) / 2));
  background: rgba(246, 239, 226, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
}
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: 15px; }
.nav__links a:hover { color: var(--tabby-dark); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, #c9c4ba 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
  padding: 72px 0 120px;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(56px, 9.5vw, 128px);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--tabby-light);
}
.hero__title span { color: var(--tabby-dark); }
.hero__ticker {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 16px;
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 30px);
  background: var(--asphalt);
  color: var(--road);
  border-radius: 10px;
  transform: rotate(-2deg);
}
.hero__lead { max-width: 30ch; margin: 22px 0 30px; font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art { position: relative; justify-self: center; width: min(100%, 480px); }
.hero__frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 4px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.hero__frame:hover { transform: rotate(0deg) scale(1.02); }
.hero__frame:focus-visible { outline: 4px solid var(--road); outline-offset: 4px; }
.hero__frame.is-purring { animation: purr 0.35s linear 3; }
@keyframes purr {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  25% { transform: rotate(-1.5deg) translateX(-3px); }
  75% { transform: rotate(1.5deg) translateX(3px); }
}
.hero__sign {
  position: absolute;
  top: -26px;
  left: -26px;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  width: 118px;
  height: 118px;
  background: var(--road);
  border: 4px solid var(--ink);
  border-radius: 12px;
  transform: rotate(-12deg);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}
.hero__hint {
  margin: 22px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

/* Road strip */
.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: var(--asphalt);
  overflow: hidden;
}
.road__line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 6px;
  margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--road) 0 60px, transparent 60px 110px);
  animation: drive 1.6s linear infinite;
}
@keyframes drive { to { transform: translateX(-110px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--road);
  border-block: 3px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  padding: 14px 26px;
  font-family: var(--display);
  font-size: 20px;
  white-space: nowrap;
}
.marquee__track span::after { content: "•"; margin-left: 52px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section__title {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 16px;
}
.section__lead { max-width: 56ch; margin: 0 0 44px; font-size: 19px; color: var(--muted); }

/* Lore */
.lore__quote {
  margin: 0 0 56px;
  padding: 36px 40px;
  background: var(--asphalt);
  color: var(--cream);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--tabby);
}
.lore__quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.2;
}
.lore__quote p + p {
  margin-top: 20px;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  color: #d9d3c8;
}
.lore__quote .hl { color: var(--road); }

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: stage;
}
.stage {
  position: relative;
  padding: 28px 26px 30px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 6px;
  margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--road) 0 26px, transparent 26px 44px);
}
.stage__km {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--asphalt);
  color: var(--road);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stage h3 { font-family: var(--display); font-size: 24px; margin-bottom: 10px; }
.stage p { margin: 0; color: #3d3a36; }
.stage--finish {
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) top right / 28px 28px no-repeat, #fff;
}

/* Anatomy */
.anatomy { background: var(--asphalt); color: var(--cream); }
.anatomy .eyebrow { color: var(--tabby-light); }
.anatomy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.anatomy__art {
  position: relative;
  border: 4px solid var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
}
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  background: var(--road);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 15px;
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.7);
  animation: ping 2.4s ease-out infinite;
}
.pin:nth-of-type(2) { animation-delay: 0.4s; }
.pin:nth-of-type(3) { animation-delay: 0.8s; }
.pin:nth-of-type(4) { animation-delay: 1.2s; }
.pin:nth-of-type(5) { animation-delay: 1.6s; }
.pin:nth-of-type(6) { animation-delay: 2s; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.7); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(245, 197, 24, 0); }
}
.parts { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: part; }
.parts li {
  position: relative;
  padding: 14px 0 14px 54px;
  border-bottom: 1px dashed rgba(246, 239, 226, 0.25);
  color: #d9d3c8;
}
.parts li::before {
  counter-increment: part;
  content: counter(part);
  position: absolute;
  left: 0;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--road);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 14px;
}
.parts b { color: var(--cream); }

/* Specs */
.specs { background: var(--sky); }
.spec-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
}
.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 2px solid #e6e0d4;
}
.spec:nth-child(odd) { border-right: 2px solid #e6e0d4; }
.spec:nth-last-child(-n + 2) { border-bottom: 0; }
.spec__k { font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec__v { font-family: var(--display); font-size: 19px; text-align: right; }

/* Pedal game */
.pedal { background: var(--tabby-light); }
.pedal .eyebrow { color: var(--ink); }
.pedal .section__lead { color: #4a3826; }
.pedal__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pedal__stats { display: flex; flex-wrap: wrap; gap: 14px; }
.pedal__stats > div {
  flex: 1 1 120px;
  padding: 16px 18px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.stat__v { display: block; font-family: var(--display); font-size: 38px; line-height: 1; }
.stat__k { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pedal__msg { margin: 22px 0 0; font-weight: 700; font-size: 18px; min-height: 1.6em; }
.pedal__machine { display: grid; justify-items: center; gap: 28px; }
.wheel { width: min(100%, 300px); height: auto; filter: drop-shadow(8px 8px 0 rgba(27, 26, 25, 0.35)); }
.btn--pedal { font-size: 24px; padding: 18px 54px; user-select: none; touch-action: manipulation; }

/* How to buy */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  padding: 26px 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step__n {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 40px;
  color: var(--tabby);
  -webkit-text-stroke: 2px var(--ink);
}
.step h3 { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: #3d3a36; font-size: 16px; }
.buy__cta { margin-top: 48px; text-align: center; }

/* Footer */
.footer {
  position: relative;
  padding: 104px 0 40px;
  background: var(--ink);
  color: #bdb6aa;
}
.road--footer { top: 0; bottom: auto; }
.footer__inner { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--road); object-fit: cover; }
.footer__name { margin: 0; font-family: var(--display); font-size: 26px; color: var(--cream); }
.footer__tag { margin: 0; }
.footer__legal { max-width: 80ch; margin: 0; font-size: 14px; }
.footer__copy { margin: 0; font-size: 13px; color: #8a8378; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; padding: 48px 0 112px; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { width: min(100% - 24px, 420px); }
  .route { grid-template-columns: 1fr; }
  .anatomy__grid, .pedal__grid { grid-template-columns: 1fr; gap: 40px; }
  .anatomy__art { width: 100%; max-width: 520px; justify-self: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav__brand span { font-size: 17px; }
  .hero__sign { width: 88px; height: 88px; font-size: 11px; top: -18px; left: -12px; }
  .lore__quote { padding: 26px 22px; }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec:nth-child(odd) { border-right: 0; }
  .spec:nth-last-child(2) { border-bottom: 2px solid #e6e0d4; }
  .steps { grid-template-columns: 1fr; }
  .btn--big { font-size: 16px; padding: 16px 22px; }
  .pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }

/* ---------- Contract address ---------- */
.ca {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  width: fit-content;
  margin-top: 26px;
  padding: 8px 8px 8px 14px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.ca__label {
  flex: none;
  padding: 2px 8px;
  background: var(--asphalt);
  color: var(--road);
  border-radius: 6px;
  font-family: var(--display);
  font-size: 13px;
}
.ca__addr {
  min-width: 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}
.ca__copy {
  flex: none;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--road);
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ca__copy:hover { background: var(--tabby-light); }
.ca__copy:focus-visible { outline: 3px solid var(--tabby); outline-offset: 2px; }
.ca__copy.is-copied { background: #8fd694; }
.ca--big { margin: 0 auto; padding: 12px 12px 12px 18px; }
.ca--big .ca__addr { font-size: 16px; }
.buy__ca { margin-top: 48px; display: flex; justify-content: center; }
.buy__ca + .buy__cta { margin-top: 28px; }

/* ---------- Socials ---------- */
.nav__right { display: flex; align-items: center; gap: 12px; }
.socials { display: flex; gap: 8px; }
.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:hover { background: var(--road); transform: translateY(-2px); }
.socials--footer .social { width: 46px; height: 46px; border-color: var(--road); background: transparent; color: var(--cream); }
.socials--footer .social svg { width: 22px; height: 22px; }
.socials--footer .social:hover { background: var(--road); color: var(--ink); }
.footer__ca { margin: 0; font-size: 14px; word-break: break-all; }
.footer__ca code { color: var(--cream); font-family: ui-monospace, Consolas, monospace; }

.community {
  margin-top: 64px;
  padding: 40px 28px;
  text-align: center;
  background: var(--asphalt);
  color: var(--cream);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--tabby);
}
.community__title { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.community p { margin: 0 0 26px; color: #d9d3c8; }
.community__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.btn--social { box-shadow: 4px 4px 0 var(--tabby); border-color: var(--cream); }
.btn--social:hover { box-shadow: 6px 6px 0 var(--tabby); }
.btn--social svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 960px) {
  .hero__copy .ca { margin-inline: auto; }
}
@media (max-width: 600px) {
  .socials--nav { display: none; }
  .ca { padding: 8px; gap: 8px; }
  .ca__addr, .ca--big .ca__addr { font-size: 12px; }
}
