/* RideRisers marketing site
   Brand: Night #14102a, Lime #B4E700, Ink #080808, White #f4f2ff, Muted #a59ccc
   Cyan inside .stage only: it is an in-world ride colour, not a brand colour.
   No third-party fonts, analytics, or tracking. */

:root {
  --night: #14102a;
  --night-2: #1b1636;
  --ink: #080808;
  --white: #f4f2ff;
  --muted: #a59ccc;
  --lime: #b4e700;
  --line: rgba(165, 156, 204, 0.32);
  --card: rgba(24, 19, 52, 0.92);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(180, 231, 0, 0.14), transparent 55%),
    radial-gradient(700px 480px at -10% 8%, rgba(70, 52, 140, 0.45), transparent 50%),
    var(--night);
  color: var(--white);
  font: 17px/1.6 var(--font);
}

main { flex: 1; }

img, svg { max-width: 100%; height: auto; }

p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.15rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #d4ff4a; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

::selection { background: var(--lime); color: var(--night); }

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--lime);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 30;
}

.skip:focus { transform: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 16, 42, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { width: auto; height: 28px; display: block; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.nav-label {
  cursor: pointer;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.nav-toggle:focus-visible + .nav-label {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.nav-toggle:checked + .nav-label {
  border-color: var(--lime);
  color: var(--lime);
}

.primary {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #14102a;
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 18px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle:checked ~ .primary { display: flex; }

.primary a {
  color: var(--white);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.primary a:hover { color: var(--lime); }
.primary a[aria-current="page"] { color: var(--lime); }

.primary .button {
  margin-top: 8px;
  color: var(--night);
}

.primary .button:hover { color: var(--night); }

@media (min-width: 980px) {
  .nav-toggle,
  .nav-label { display: none; }
  .primary,
  .nav-toggle:checked ~ .primary {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 0;
    padding: 0;
    flex: none;
  }
  .primary a { padding: 0 10px; font-size: 15px; }
  .primary .button { margin-top: 0; padding: 0 16px; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--lime);
}

.button:hover { background: #c6f431; border-color: #c6f431; color: var(--night); }

.button.secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.button.secondary:hover { border-color: var(--lime); color: var(--lime); background: transparent; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }

@media (max-width: 560px) {
  .actions .button { width: 100%; }
}

.fine { color: var(--muted); font-size: 0.95rem; }

.kicker {
  color: var(--lime);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.lede { font-size: 1.12rem; max-width: 42rem; }

section { padding: 64px 0; }

@media (min-width: 800px) {
  section { padding: 88px 0; }
  .hero { padding-top: 64px; }
}

.hero { padding-top: 36px; padding-bottom: 24px; }

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

.facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

.facts li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
}

.facts strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.facts span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }

.stage {
  position: relative;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07051a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.stars {
  position: absolute;
  inset: 0 0 45% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff 55%, transparent 60%),
    radial-gradient(1.2px 1.2px at 28% 62%, #fff 55%, transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 22%, #fff 55%, transparent 60%),
    radial-gradient(1px 1px at 63% 48%, #fff 55%, transparent 60%),
    radial-gradient(1.6px 1.6px at 78% 28%, #b4e700 55%, transparent 60%),
    radial-gradient(1.2px 1.2px at 90% 58%, #fff 55%, transparent 60%),
    radial-gradient(1px 1px at 18% 78%, #fff 55%, transparent 60%);
}

.horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 38%;
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(95, 244, 255, 0.38), transparent 68%);
}

.road {
  position: absolute;
  left: 50%;
  top: 44%;
  bottom: -8%;
  width: 140%;
  transform: translateX(-50%);
  background: linear-gradient(#241848, #0a0718 70%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}

.road .edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #5ff4ff;
}

.road .edge.left { left: 0; }
.road .edge.right { right: 0; }

.lane {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    #b4e700 0 16px,
    transparent 16px 42px
  );
  clip-path: polygon(49% 0, 51% 0, 57% 100%, 43% 100%);
  animation: drive 0.85s linear infinite;
}

@keyframes drive {
  to { background-position-y: 42px; }
}

.hud {
  position: absolute;
  top: 16px;
  left: 16px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(95, 244, 255, 0.45);
  background: rgba(7, 5, 26, 0.72);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.bike {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(92%, 460px);
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
}

.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.steps, .tiers, .controls, .split {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.steps li, .card, .controls li, .split article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--night);
  font-weight: 800;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(180, 231, 0, 0.14);
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
}

.card h3, .steps h3, .controls h3 { margin-top: 0; }

.card ul, .ticks { margin: 12px 0 0; padding: 0; list-style: none; }
.card li { margin: 0 0 8px; padding-left: 0; }

.note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(180, 231, 0, 0.06);
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .controls { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tiers .card { height: 100%; }
}

.band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 10px;
}

.ticks li::before {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: 6px;
  margin-left: 4px;
  border-right: 3px solid var(--lime);
  border-bottom: 3px solid var(--lime);
  transform: rotate(40deg);
}

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  padding: 8px 0;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(45deg);
  flex: none;
  margin-top: -4px;
}

.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details p { max-width: 65ch; padding-bottom: 8px; }

.cta { padding-top: 32px; }
.panel {
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(180, 231, 0, 0.45);
  padding: clamp(28px, 5vw, 56px) 20px;
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(180, 231, 0, 0.16), transparent 70%),
    #1a1534;
}

.panel .actions { justify-content: center; }
.panel .lede { margin-inline: auto; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand img { width: auto; height: 26px; }

.site-footer p, .site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--lime); }

.foot-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-nav a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot-nav a[aria-current="page"] { color: var(--lime); }

.colophon {
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.crumbs { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0 0 0.4rem; }
.prose .toc { padding-left: 1.2rem; }
.prose .toc a { font-weight: 650; }

.contact-email {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

.contact-email a { text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }

.page {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding-top: 36px;
}

.prose ol { padding-left: 2rem; }

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

@media (forced-colors: active) {
  .button, .card, .stage, .facts li, .steps li, .controls li, .split article, .panel {
    border: 1px solid ButtonText;
  }
}

@media print {
  body { background: #fff; color: #111; }
  .site-header, .skip, .stage, .cta, .site-footer { display: none !important; }
  a { color: #111; }
  .card, .steps li, .controls li, .split article, .facts li { background: #fff; }
}
