/* Rush Bike: World Tour - site styles. Chunky slanted panels like the game's menus. */
@font-face {
  font-family: "Luckiest";
  src: url("assets/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "FA";
  src: url("assets/fa-solid-900.ttf") format("truetype");
  font-display: block;
}

:root {
  --sky: #1c6fe0;
  --sky-deep: #0d3f8f;
  --sun: #ffd23f;
  --orange: #f26e22;
  --green: #2bb673;
  --ink: #181228;
  --paper: #fff8ec;
  --text: #2a2238;
  --muted: #6b6178;
  --card: #ffffff;
  --line: #181228;
  --skew: -8deg;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }

.fa { font-family: "FA"; font-style: normal; font-weight: 900; line-height: 1; }
.display, h1, h2, h3, .btn, .nav a {
  font-family: "Luckiest", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

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

/* --- Top bar --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink);
  border-bottom: 4px solid var(--sun);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #fff; }
.brand span { font-family: "Luckiest", sans-serif; font-size: 22px; padding-top: 4px; }
.brand b { color: var(--sun); font-weight: 400; }
.nav nav { margin-left: auto; display: flex; gap: 6px; }
.nav nav a {
  color: #fff; text-decoration: none; font-size: 16px; padding: 8px 12px 5px;
  transform: skewX(var(--skew)); border-radius: 4px;
}
.nav nav a:hover { background: rgba(255, 255, 255, 0.12); }

/* --- Buttons: slanted parallelograms with a hard shadow --- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px 12px;
  font-size: 22px; color: #fff; text-decoration: none;
  background: var(--green);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  transform: skewX(var(--skew));
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn > * { transform: skewX(8deg); }
.btn:hover { transform: skewX(var(--skew)) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.btn:active { transform: skewX(var(--skew)) translate(4px, 4px); box-shadow: 2px 2px 0 var(--line); }
.btn.alt { background: var(--sky); }
.btn small { display: block; font-size: 12px; opacity: 0.85; letter-spacing: 0.08em; }
.btn .fa { font-size: 26px; margin-top: -4px; }

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--sky) url("assets/hero.jpg") center / cover no-repeat;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  border-bottom: 6px solid var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(24, 18, 40, 0.65));
}
.hero .wrap { position: relative; z-index: 1; padding: 40px 0 48px; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero .tag {
  display: inline-block; color: var(--ink); background: var(--sun);
  font-family: "Luckiest", sans-serif; font-size: clamp(18px, 2.4vw, 26px);
  padding: 10px 22px 6px; border: 4px solid var(--ink);
  transform: skewX(var(--skew)); margin-bottom: 20px;
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 720px) {
  /* Portrait art: show the whole title + bike, buttons sit on the ground strip below the bike. */
  .hero {
    background-image: url("assets/hero_tall.jpg"); background-position: center top; background-size: 100% auto;
    min-height: calc(100vw * 1.6);
  }
  .hero::after { background: linear-gradient(180deg, transparent 70%, rgba(24, 18, 40, 0.5)); }
  .hero .wrap { padding-bottom: 28px; }
  .hero .tag { display: none; }
  .hero .ctas { gap: 14px; flex-wrap: nowrap; }
  .hero .btn { flex: 1; justify-content: center; font-size: 16px; padding: 12px 10px 9px; gap: 8px; box-shadow: 4px 4px 0 var(--line); }
  .hero .btn .fa { font-size: 18px; }
  .hero .btn small { font-size: 10px; }
  .nav nav a.hide-sm { display: none; }
}

/* --- Stat strip --- */
.stats { background: var(--ink); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 22px 0; }
.stats strong { display: block; font-family: "Luckiest", sans-serif; font-size: 40px; color: var(--sun); line-height: 1.1; }
.stats span { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
@media (max-width: 600px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } }

/* --- Sections --- */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 {
  display: inline-block; margin: 0;
  font-size: clamp(30px, 4.5vw, 46px); color: #fff;
  background: var(--orange); padding: 12px 30px 6px;
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transform: skewX(var(--skew));
}
.section-title p { color: var(--muted); margin: 18px auto 0; max-width: 560px; }

/* Feature rows: picture + text, alternating sides (child 1 is the section title) */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  margin-bottom: 56px;
}
.feature:nth-child(odd) .shot { order: 2; }
.shot {
  border: 5px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink); background: var(--ink);
  transform: rotate(-1.2deg);
}
.feature:nth-child(odd) .shot { transform: rotate(1.2deg); }
.feature h3 { font-size: 30px; margin: 0 0 8px; color: var(--ink); display: flex; gap: 14px; align-items: center; }
.feature h3 .fa {
  font-size: 22px; color: #fff; background: var(--sky);
  width: 52px; height: 52px; display: grid; place-items: center; flex: none;
  border: 3px solid var(--ink); transform: skewX(var(--skew));
}
.feature p { margin: 0; color: var(--text); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-child(odd) .shot { order: 0; }
  .feature h3 { font-size: 24px; }
  .feature h3 .fa { width: 44px; height: 44px; font-size: 19px; }
}

/* Small feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 4px solid var(--ink); border-radius: 14px;
  padding: 22px; box-shadow: 6px 6px 0 var(--ink);
}
.card .fa { font-size: 30px; color: var(--orange); }
.card h3 { font-size: 21px; margin: 12px 0 4px; color: var(--ink); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Online section */
.online { background: linear-gradient(160deg, var(--sky), var(--sky-deep)); color: #fff; border-block: 6px solid var(--ink); }
.online .section-title h2 { background: var(--sun); color: var(--ink); }
.online .section-title p { color: rgba(255, 255, 255, 0.85); }
.online .feature h3 { color: #fff; }
.online .feature p { color: rgba(255, 255, 255, 0.92); }
.online .feature h3 .fa { background: var(--orange); }

/* Download band */
.download { text-align: center; }
.download .icon { width: 128px; height: 128px; margin: 0 auto 22px; border-radius: 28px; border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.download h2 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 6px; color: var(--ink); }
.download p { color: var(--muted); margin: 0 0 30px; }
.download .ctas { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.soon { opacity: 0.55; pointer-events: none; }

/* --- Footer --- */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 34px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: var(--sun); }
footer .links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }

/* --- Long-form document (privacy) --- */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); color: var(--ink); margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 {
  font-size: 24px; color: #fff; background: var(--sky);
  display: inline-block; padding: 8px 18px 4px; margin: 36px 0 12px;
  border: 3px solid var(--ink); transform: skewX(var(--skew));
}
.doc .box { background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 18px 22px; box-shadow: 5px 5px 0 var(--ink); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e7dfd2; }
.doc th { background: #f3eadb; }
.doc .scroll-x { overflow-x: auto; }
.doc li { margin-bottom: 6px; }
@media (max-width: 640px) {
  /* Stack the data table into one card per row. */
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr:first-child { display: none; }
  .doc tr { border: 2px solid var(--ink); border-radius: 10px; background: #fff; margin-bottom: 14px; padding: 6px 4px; }
  .doc td { border: 0; padding: 6px 12px; }
  .doc td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
}
