/* =========================================================
   Ride Cult — Landing
   Theme: monochrome, dark, minimal (matches app)
   ========================================================= */

:root {
  --bg: #0D0D0D;
  --bg-2: #111;
  --surface: #161616;
  --surface-2: #1A1A1A;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #FFFFFF;
  --text-dim: rgba(255,255,255,0.62);
  --text-mute: rgba(255,255,255,0.38);
  --accent: #FFFFFF;
  --danger: #C44D4D;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px rgba(0,0,0,0.6);
  --container: 1180px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Backgrounds ---------- */
.bg-grid, .bg-glow, .bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(40% 30% at 90% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(50% 40% at 10% 60%, rgba(255,255,255,0.04), transparent 60%);
}
.bg-noise {
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 22px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em; font-size: 18px;
}
.brand-mark {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  color: #fff; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-accent { color: var(--text-dim); font-weight: 600; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta { padding: 9px 14px; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-primary {
  background: #fff; color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(255,255,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-2);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- Hero ---------- */
.hero { padding: 24px 24px 0; }
.hero-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 40px 0 60px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--text-dim); background: rgba(255,255,255,0.03);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 18px 0 18px; font-weight: 800;
}
.grad-text {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(15px, 1.2vw, 17px); color: var(--text-dim); max-width: 540px; margin: 0 0 28px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-mute);
}
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-meta .sep { color: var(--text-mute); }

/* ---------- Phone mock ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 320px; height: 640px; border-radius: 44px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  padding: 14px; position: relative; overflow: hidden;
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-2deg) translateY(-10px); } }

.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #000; border-radius: 14px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px;
  background: radial-gradient(120% 80% at 50% 0%, #1a1a1a 0%, #0c0c0c 60%);
  padding: 36px 16px 18px; overflow: hidden; position: relative;
}
.phone-glow {
  position: absolute; inset: auto; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 380px; height: 200px; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent 70%);
  filter: blur(10px); z-index: -1;
}

.screen-top {
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--text-mute); padding: 0 8px 12px;
}
.screen-time { font-family: var(--mono); }

.trip-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; margin-bottom: 12px;
}
.trip-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mute); margin-bottom: 8px;
}
.speedo {
  position: relative; height: 130px; display: grid; place-items: center; margin-bottom: 10px;
}
.speedo-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.speedo-val {
  font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1;
  display: flex; align-items: flex-end; gap: 6px;
}
.speedo-val em { font-style: normal; font-size: 11px; color: var(--text-mute); padding-bottom: 6px; }

.trip-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
.trip-stats > div {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px;
}
.trip-stats span { display: block; font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .12em; }
.trip-stats strong { font-family: var(--mono); font-size: 14px; }

.event-row { display: flex; gap: 6px; flex-wrap: wrap; }
.event {
  font-size: 10px; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.event.warn { color: #ffb3b3; border-color: rgba(196,77,77,0.4); background: rgba(196,77,77,0.08); }

.leaderboard {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 14px;
}
.lb-title { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.leaderboard ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.leaderboard li {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 8px;
  font-size: 12px; align-items: center;
}
.leaderboard .rank { font-family: var(--mono); color: var(--text-mute); }
.leaderboard .pts { font-family: var(--mono); }
.leaderboard li:first-child .rank { color: #fff; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; margin-top: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.marquee-track {
  display: inline-flex; gap: 32px; padding: 18px 0;
  white-space: nowrap; animation: scroll 30s linear infinite;
  color: var(--text-mute); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.marquee-track span { display: inline-block; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--container); margin: 0 auto; padding: 100px 24px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 800; margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); margin: 0; }

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); background: rgba(255,255,255,0.04); }
.feature-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; color: #fff; }
.feature h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  counter-reset: steps;
}
.steps li {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
  position: relative;
}
.step-num {
  font-family: var(--mono); color: var(--text-mute);
  font-size: 13px; letter-spacing: 0.18em;
}
.steps h3 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--text-dim); }

/* Compete */
.compete-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.compete h2 { text-align: left; }
.compete .kicker { display: block; text-align: left; margin-bottom: 14px; }
.compete-copy p { color: var(--text-dim); max-width: 480px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checklist li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14.5px; }
.checklist svg { width: 16px; height: 16px; color: #fff; flex: 0 0 16px; }

.card-stack { position: relative; height: 420px; }
.mini-card {
  position: absolute; left: 0; right: 0;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, #161616, #0f0f0f);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.mc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-mute); }
.mc-head .badge {
  background: #fff; color: #0a0a0a; border-radius: 999px;
  font-weight: 700; font-size: 11px; padding: 3px 10px;
}
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mc-stats em { font-style: normal; font-family: var(--mono); font-size: 18px; display: block; }
.mc-stats span { font-size: 11px; color: var(--text-mute); }
.mc-body { margin-top: 12px; color: var(--text-dim); font-size: 14px; }
.mini-lb { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 13px; }
.mini-lb li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; }
.mini-lb b { font-family: var(--mono); color: var(--text-mute); font-weight: 500; }
.mini-lb span { font-family: var(--mono); }

.mc-1 { top: 0;   transform: rotate(-3deg); }
.mc-2 { top: 140px; transform: rotate(2deg); }
.mc-3 { top: 250px; transform: rotate(-1deg); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 60px 24px;
}
.stat {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}
.stat strong {
  display: block; font-family: var(--mono); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em;
}
.stat span { color: var(--text-mute); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: rgba(255,255,255,0.02); transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--line-2); background: rgba(255,255,255,0.04); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-weight: 400; color: var(--text-mute); font-size: 20px; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--text-dim); font-size: 14.5px; }

/* CTA */
.cta { padding-top: 40px; }
.cta-inner {
  border: 1px solid var(--line-2); border-radius: 28px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, #141414, #0a0a0a);
  padding: 64px 24px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(28px, 4.2vw, 52px); margin: 0 0 12px; }
.cta-inner p { color: var(--text-dim); max-width: 540px; margin: 0 auto 28px; }
.cta-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Footer */
.footer {
  border-top: 1px solid var(--line); margin-top: 60px; padding: 40px 24px 60px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-brand b { font-weight: 800; }
.foot-links { display: inline-flex; gap: 22px; justify-content: center; }
.foot-links a { color: var(--text-dim); font-size: 14px; }
.foot-links a:hover { color: #fff; }
.foot-copy { text-align: right; color: var(--text-mute); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
  .hero-visual { order: -1; margin-bottom: 10px; }
  .phone { width: 280px; height: 560px; transform: rotate(-1deg); }
  .features-grid, .steps { grid-template-columns: 1fr 1fr; }
  .compete-inner { grid-template-columns: 1fr; gap: 40px; }
  .card-stack { height: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-copy { text-align: center; }
  .foot-brand { justify-content: center; }
}

@media (max-width: 560px) {
  .nav { padding: 16px; }
  .nav-cta { display: none; }
  .section { padding: 70px 18px; }
  .hero { padding: 8px 18px 0; }
  .features-grid, .steps, .stats { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 18px; border-radius: 20px; }
  .phone { width: 260px; height: 520px; }
  .hero h1 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .marquee-track, .eyebrow .dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
