/* ============ Ride Hero — motion-led landing ============ */
:root {
  --bg: #07080f;
  --bg-soft: #0d0f1a;
  --ink: #f4f5fb;
  --ink-dim: #9aa0b8;
  --cyan: #67e8f9;
  --cyan-transparent: rgba(103, 232, 249, 0.805);
  --complement: #f87171;
  --violet: #a78bfa;
  --card: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.09);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--cyan); color: #04141a; }

h1, h2, h3, .nav__logo, .step__num {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--cyan);
}

/* ---- WebGL canvas + grain ---- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

main { position: relative; z-index: 2; }

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-content: center;
  gap: 1.2rem;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__mark { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.08em; }
.loader__mark span { color: var(--cyan); }
.loader__bar { width: 180px; height: 2px; background: var(--stroke); border-radius: 2px; overflow: hidden; }
.loader__fill { width: 0%; height: 100%; background: var(--cyan); transition: width 0.4s ease; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.4s;
  /* Firefox mobile: prevent children from blowing out the fixed bar */
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}
.nav.scrolled {
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.nav__logo {
  font-weight: 800;
  font-size: 1.15rem;
  min-width: 0;
  flex-shrink: 1;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.nav__logo span { color: var(--cyan); }
.nav__logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__logo-img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }

/* ---- Buttons & badges ---- */
.btn {
  display: inline-block;
  background: var(--cyan-transparent);
  color: #04141a;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 5px;
  padding: 0.85rem 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(103, 232, 249, 0.35); }
.btn--small {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.7rem 1.3rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(103, 232, 249, 0.08);
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; font-size: 1rem; }
.store-badge small { font-size: 0.68rem; font-weight: 400; color: var(--ink-dim); }
.store-badge--lg { padding: 0.95rem 1.7rem; border-radius: 16px; }
.store-badge--lg svg { width: 30px; height: 30px; }
.store-badge--web { border-color: rgba(167, 139, 250, 0.4); }
.store-badge--soon {
  opacity: 0.55;
  cursor: default;
}
.store-badge--soon:hover { transform: none; border-color: var(--stroke); background: rgba(255, 255, 255, 0.06); }
.footer__soon { color: var(--ink-dim); opacity: 0.6; }

/* ---- Sections shared ---- */
section { position: relative; padding: clamp(6rem, 12vh, 10rem) clamp(1.2rem, 6vw, 6rem); }
.section-head { max-width: 900px; margin: 0 auto 4rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 7rem;
}
.hero__inner { max-width: 980px; }
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.6rem;
}
.hero__title { font-size: clamp(3.2rem, 10vw, 7.5rem); font-weight: 800; }
.line { display: block; overflow: hidden; }
.line > span { display: inline-block; will-change: transform; }
.hero__sub {
  max-width: 620px;
  margin: 1.8rem auto 2.4rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  justify-content: center;
  margin-top: 3.5rem;
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.hero__stats em { font-style: normal; color: var(--ink-dim); font-size: 0.85rem; }
.hero__scrollhint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scrollhint span {
  width: 1px; height: 44px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---- Visual section ---- */
.visual { padding-top: 0; }
.visual__sticky { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.visual__words { font-size: clamp(2rem, 6vw, 4.6rem); font-weight: 800; }
.vw { display: block; opacity: 0.12; transition: none; }
.visual__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0;
}
.vcard { will-change: transform; }
.vcard__img {
  height: clamp(320px, 46vh, 460px);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
}
.vcard__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 15, 0.85));
}
.vcard__img--1 { background: url("../assets/images/maya.webp") center / cover no-repeat, #0b1726; }
.vcard__img--2 { background: url("../assets/images/darnell.webp") center / cover no-repeat, #161229; }
.vcard__img--3 { background: url("../assets/images/friday-night.webp") center / cover no-repeat, #0b1f23; }
.vcard figcaption { margin-top: 0.9rem; color: var(--ink-dim); font-size: 0.9rem; }

/* ---- Features ---- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
}
.fcard {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 2.4rem 2rem;
  backdrop-filter: blur(6px);
  transition: transform 0.35s, border-color 0.35s;
  will-change: transform;
}
.fcard:hover { transform: translateY(-6px); border-color: rgba(103, 232, 249, 0.45); }
.fcard__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-content: center;
  background: rgba(103, 232, 249, 0.1);
  color: var(--cyan);
  margin-bottom: 1.4rem;
}
.fcard__icon svg { width: 26px; height: 26px; }
.fcard h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.fcard p { color: var(--ink-dim); font-size: 0.95rem; }
.fcard__tag {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.35);
  color: var(--cyan);
}

/* ---- How it works ---- */
.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.step { position: relative; padding-top: 1rem; }
.step__num {
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.9;
}
.step__line {
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin: 1.2rem 0 1.4rem;
  transform-origin: left;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }

/* ---- Safety ---- */
.safety {
  background: linear-gradient(180deg, transparent, rgba(13, 15, 26, 0.85) 18%, rgba(13, 15, 26, 0.85) 82%, transparent);
}
.safety__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.safety h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
.safety__lede { color: var(--ink-dim); margin: 1.4rem 0 2.4rem; max-width: 540px; }
.safety__list { list-style: none; display: grid; gap: 1.8rem; }
.safety__list h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.safety__list h3::before { content: "— "; color: var(--cyan); }
.safety__list p { color: var(--ink-dim); font-size: 0.95rem; max-width: 520px; }
.safety__shield { display: grid; place-content: center; }
.safety__shield svg { width: clamp(200px, 24vw, 320px); filter: drop-shadow(0 0 40px rgba(103, 232, 249, 0.25)); }

/* ---- Stories ---- */
.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
}
.quote {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  will-change: transform;
}
.quote p { font-size: 1.02rem; line-height: 1.7; }
.quote footer { display: flex; flex-direction: column; gap: 0.15rem; }
.quote strong { font-family: var(--font-display); }
.quote span { color: var(--ink-dim); font-size: 0.85rem; }

/* ---- Final conversion ---- */
.final { text-align: center; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.final__title { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 800; }
.final > p { color: var(--ink-dim); margin: 1.4rem 0 2.4rem; }
.final__badges { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 4.5rem clamp(1.2rem, 6vw, 6rem) 2rem;
  background: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}
.footer__brand p { color: var(--ink-dim); margin-top: 0.8rem; font-size: 0.92rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.footer__col a { color: var(--ink); opacity: 0.78; text-decoration: none; font-size: 0.92rem; transition: opacity 0.2s, color 0.2s; }
.footer__col a:hover { opacity: 1; color: var(--cyan); }
.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.footer__col p{ color: var(--cyan); opacity: 0.78; font-size: 0.92rem; transition: opacity 0.2s, color 0.2s; }
.footer__apps { display: flex; gap: 1.4rem; }
.footer__apps a { color: var(--ink-dim); text-decoration: none; }
.footer__apps a:hover { color: var(--cyan); }

/* ---- Inner pages (help, accessibility, cookies, terms, privacy) ---- */
.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 9rem clamp(1.2rem, 5vw, 2rem) 6rem;
  position: relative;
  z-index: 2;
}
.page-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.4rem;
}
.page-wrap .page-meta {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stroke);
}
.page-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
}
.page-wrap p {
  color: var(--ink-dim);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.page-wrap ul, .page-wrap ol {
  color: var(--ink-dim);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}
.page-wrap li { margin-bottom: 0.4rem; }
.page-wrap a { color: var(--cyan); text-decoration: none; }
.page-wrap a:hover { text-decoration: underline; }
.page-wrap strong { color: var(--ink); font-weight: 600; }

/* ---- Reveal default state (animated in by GSAP) ---- */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .safety__inner { grid-template-columns: 1fr; }
  .safety__shield { order: -1; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .nav {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }
  .nav__logo {
    flex-shrink: 0;
    min-width: 0;
  }
  .btn--small {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .nav__logo { font-size: 0; gap: 0; }
  .nav__logo-img { width: 30px; height: 30px; }
}

@media (max-width: 600px) {
  .hero__cta, .final__badges {
    flex-direction: column;
    align-items: center;
  }
  .hero__cta .store-badge,
  .final__badges .store-badge {
    width: auto;
    max-width: 300px;
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__scrollhint span { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
