/* RevMatch by twistopher: landing page styles */

:root {
  --bg: #0a0a0b;
  --bg-2: #111214;
  --line: #2a2c30;
  --text: #f2efe9;
  --muted: #9a9ca1;
  /* BMW Lava Orange (R 12 S) */
  --lava: #f05a1a;
  --lava-hot: #ff7a33;
  --lava-deep: #b83d0a;
  /* Brushed aluminum */
  --alu-hi: #eef0f2;
  --alu: #b9bdc3;
  --alu-mid: #8f949b;
  --alu-lo: #5d6168;
  /* fine horizontal grain + soft vertical sheen = brushed metal */
  --alu-grain: repeating-linear-gradient(180deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 2px, rgb(0 0 0 / .05) 2px 3px);
  --alu-sheen: linear-gradient(180deg, var(--alu-hi) 0%, var(--alu) 38%, var(--alu-mid) 52%, var(--alu) 68%, var(--alu-hi) 100%);
  --alu-brushed: var(--alu-grain), var(--alu-sheen);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient lava glow + film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgb(240 90 26 / .22), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(240 90 26 / .10), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lava); color: #000; }

a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -.02em; word-spacing: .12em; }
em { font-style: normal; color: var(--lava); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  --gutter: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding: 1.1rem var(--gutter);
  background: linear-gradient(rgb(10 10 11 / .85) 40%, transparent);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand-logo {
  border-radius: 8px;
  border: 1px solid var(--alu-lo);
  box-shadow: 0 0 14px rgb(240 90 26 / .25);
  transition: transform .2s var(--ease), border-color .2s;
  display: block;
}
.brand-lockup:hover .brand-logo {
  border-color: var(--lava);
  transform: scale(1.05);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-revmatch {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 75%;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  text-transform: lowercase;
  background: var(--alu-brushed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-revmatch span {
  color: var(--lava);
  -webkit-text-fill-color: var(--lava);
  text-shadow: 0 0 20px rgb(240 90 26 / .3);
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--alu-mid);
  margin-top: .15rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nle-pill-nav {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--alu-mid);
  padding: .35rem .75rem;
  border: 1px solid #282a30;
  border-radius: 999px;
  background: rgb(255 255 255 / .02);
}
@media (max-width: 768px) {
  .nle-pill-nav { display: none; }
}

.eyebrow-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--alu-lo);
  object-fit: cover;
  display: inline-block;
  vertical-align: -3px;
  margin-right: .2rem;
}

/* NLE compatibility badge strip */
.nle-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.nle-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .75rem;
  background: #111215;
  border: 1px solid #282a30;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--alu-hi);
  letter-spacing: .02em;
}
.nle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 8px var(--lava);
}

.footer-nle {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--alu-mid);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 .95rem/1 var(--font-display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:focus-visible { outline: 2px solid var(--lava-hot); outline-offset: 3px; }

.btn-primary {
  background: var(--lava);
  color: #120600;
  box-shadow: 0 0 0 0 rgb(240 90 26 / 0), 0 10px 30px -10px rgb(240 90 26 / .7);
}
.btn-primary:hover { background: var(--lava-hot); transform: translateY(-1px); box-shadow: 0 0 0 6px rgb(240 90 26 / .15), 0 14px 34px -10px rgb(240 90 26 / .8); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }

.btn-ghost { border-color: var(--line); color: var(--text); padding: .65rem 1.1rem; font-size: .875rem; }
.btn-ghost:hover { border-color: var(--lava); color: var(--lava); }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 7rem;
  min-height: min(88vh, 900px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 .75rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 10px var(--lava);
  animation: pulse 2s infinite;
}

h1 {
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(3.4rem, 8.5vw, 7rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.015em;
}

.lede {
  max-width: 34rem;
  margin: 1.75rem 0 2.25rem;
  font-size: 1.2rem;
  color: var(--muted);
}

/* ---------- SIGNUP FORM ---------- */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  max-width: 30rem;
  padding: .4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.signup:focus-within { border-color: var(--lava); box-shadow: 0 0 0 4px rgb(240 90 26 / .15); }

.signup input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: .75rem 1rem;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: 500 1rem var(--font-display);
}
.signup input::placeholder { color: #5f5b55; }

.form-status {
  flex-basis: 100%;
  margin: 0;
  padding: 0 1rem;
  font: .85rem var(--font-mono);
  color: var(--muted);
}
.form-status:empty { display: none; }
.signup.is-success { border-color: var(--lava); }
.signup.is-success .form-status { color: var(--lava-hot); padding-bottom: .5rem; }
.signup.is-error .form-status { color: #ff8a80; padding-bottom: .5rem; }

.fine { margin: .9rem 0 0 1.2rem; font: .78rem var(--font-mono); color: #67625b; }

/* ---------- RIG (hero visual) ---------- */
.rig {
  --sync-x: 35%;
  position: relative;
  padding: 1.25rem;
  background: linear-gradient(180deg, #141416, #0d0d0e);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .02) inset;
  font-family: var(--font-mono);
}
.rig::before {
  /* lava rim light */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgb(240 90 26 / .55), transparent 40%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.rig-head, .rig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.rig-head .rig-status { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.rig-hud-telemetry {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-size: .72rem;
}
.hud-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .45rem;
  background: #111215;
  border: 1px solid #23252a;
  border-radius: 4px;
}
.hud-k { color: var(--alu-mid); font-weight: 600; }
.hud-v { color: var(--alu-hi); }
.rig.is-synced .hud-v { color: var(--lava-hot); }

.rig-tc-wrap {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--alu-hi);
  letter-spacing: .08em;
  background: #090a0b;
  padding: .25rem .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.rig-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--alu-mid);
  margin-top: 1rem;
  margin-bottom: .45rem;
  text-transform: uppercase;
}
.rig-subtag {
  color: #555860;
  font-size: .6rem;
  letter-spacing: .06em;
}

/* 1. Camera Viewports Grid */
.cams-viewports {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: .4rem;
}
.cam-box {
  background: #0d0e11;
  border: 1px solid #22242a;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .3s;
}
.cam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem .45rem;
  background: #15171c;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--alu-mid);
  border-bottom: 1px solid #1f2127;
}
.cam-fps { color: #5a5d64; }
.cam-screen {
  position: relative;
  height: 48px;
  background: radial-gradient(circle at 50% 50%, #15181f 0%, #0a0b0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cam-view-svg {
  width: 100%;
  height: 100%;
  opacity: .75;
}
.cam-pip-label {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-size: .5rem;
  color: #727680;
  letter-spacing: .04em;
}
.cam-drift-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: .5rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgb(245 176 65 / .15);
  color: #f5b041;
  border: 1px solid rgb(245 176 65 / .3);
  font-family: var(--font-mono);
  font-weight: 600;
  transition: all .3s;
}
.rig.is-synced .cam-box {
  border-color: rgb(240 90 26 / .4);
}
.rig.is-synced .cam-drift-badge {
  background: rgb(240 90 26 / .2);
  color: var(--lava-hot);
  border-color: var(--lava);
}

/* 2. Waveforms */
.tracks { display: grid; gap: 5px; }
.track {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: .65rem;
}
.track-label { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--alu-mid); font-weight: 600; }

.lane {
  position: relative;
  height: 38px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(255 255 255 / .025) calc(10% - 1px) 10%),
    #0b0b0d;
  border: 1px solid #1e2025;
  border-radius: 5px;
  overflow: hidden;
}
/* Laser Sync Line passing through each lane */
.lane::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--sync-x);
  width: 2px;
  margin-left: -1px;
  background: var(--lava);
  box-shadow: 0 0 14px 2px rgb(240 90 26 / .8);
  opacity: 0;
  transform: scaleY(.2);
  transition: opacity .35s, transform .35s var(--ease);
  z-index: 5;
}
.rig.is-synced .lane::after { opacity: 1; transform: scaleY(1); transition-delay: .7s; }

.clip {
  position: absolute;
  top: 3px; bottom: 3px;
  left: 10%;
  width: 80%;
  display: flex;
  align-items: center;
  padding: 0;
  background: linear-gradient(180deg, #1f2126, #141519);
  border: 1px solid #2b2e35;
  border-radius: 4px;
  transform: translateX(var(--off, 0%));
  transition: transform 1.1s var(--ease), border-color .4s;
}
.rig.is-synced .clip { border-color: rgb(240 90 26 / .5); }

.bar {
  flex: 1;
  height: var(--h, 30%);
  padding: 0 1px;
  background: #50545c;
  background-clip: content-box;
  border-radius: 1px;
}
.bar.spike {
  background-color: var(--lava-hot);
  height: 94%;
  box-shadow: 0 0 8px rgb(240 90 26 / .6);
}

/* 3. Telemetry Oscilloscope Lane */
.telemetry-lane {
  background: #0b0c0e;
  border: 1px solid #1e2025;
  border-radius: 6px;
  padding: .45rem;
  position: relative;
  overflow: hidden;
}
.telemetry-legend {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .56rem;
  font-family: var(--font-mono);
  color: var(--alu-mid);
  margin-bottom: .3rem;
}
.telem-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.telem-line-sample {
  display: inline-block;
  width: 12px;
  height: 2px;
  border-radius: 1px;
}
.roll-line { background: var(--alu-mid); }
.g-line { background: var(--lava); box-shadow: 0 0 6px var(--lava); }
.gps-line { background: #3b82f6; }

.telem-oscilloscope {
  position: relative;
  height: 52px;
  background:
    radial-gradient(ellipse at 50% 50%, #15181f 0%, #08090a 100%);
  border-radius: 4px;
  border: 1px solid #1a1c22;
}
.telem-svg {
  width: 100%;
  height: 100%;
}
.telem-oscilloscope::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--sync-x);
  width: 2px;
  margin-left: -1px;
  background: var(--lava);
  box-shadow: 0 0 14px 2px rgb(240 90 26 / .8);
  opacity: 0;
  transform: scaleY(.2);
  transition: opacity .35s, transform .35s var(--ease);
}
.rig.is-synced .telem-oscilloscope::after { opacity: 1; transform: scaleY(1); transition-delay: .7s; }

/* Rig Footer */
.rig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--alu-mid);
}
.rig-foot-left {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.sync-lock-indicator {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #f5b041;
}
.sync-check { display: none; }
.rig.is-synced .sync-lock-indicator { color: var(--lava-hot); }
.rig.is-synced .sync-check { display: inline; color: var(--lava); }
.rig-metric strong { color: var(--alu-hi); }
.rig-foot-right { color: #5a5d64; font-weight: 600; }

/* ---------- SECTIONS ---------- */
.how, .features, .cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-title {
  max-width: 44rem;
  margin-bottom: 3.5rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 2rem 0 0;
  border-top: 2px solid var(--line);
}
.step::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 3rem; height: 2px;
  background: var(--lava);
}
.step-num { font: 600 .8rem var(--font-mono); color: var(--lava); letter-spacing: .1em; }
.step h3 {
  margin: .9rem 0 .6rem;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 2rem;
  text-transform: uppercase;
}
.step p { margin: 0; color: var(--muted); max-width: 22rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  position: relative;
  padding: 2.25rem 2rem 2.5rem;
  background: var(--bg);
  transition: background-color .3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 14rem at 0% 0%, rgb(240 90 26 / .12), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover::before { opacity: 1; }
.card h3 {
  position: relative;
  margin-bottom: .75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.card h3::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  margin-bottom: 1.25rem;
  background: var(--lava);
  border-radius: 2px;
  transform: rotate(45deg);
}
.card p { position: relative; margin: 0; color: var(--muted); font-size: 1rem; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 8rem;
}
.cta h2 {
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: .9;
  text-transform: uppercase;
}
.cta .lede { margin-inline: auto; }
.cta .signup { width: 100%; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font: .8rem var(--font-mono);
  color: #67625b;
}
.footer .wordmark { font-size: 1.15rem; }

/* ---------- BRUSHED ALUMINUM TREATMENT ---------- */
/* Black body, aluminum structure, lava for the moments that matter. */

h1, .cta h2, .section-title, .step h3, .wordmark, .pillar-title, .section-headline, .hero-title-main, .passport-title {
  background: var(--alu-brushed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 em, .cta h2 em, .wordmark span, .section-headline em, .hero-title-main span.accent, .pillar-title em {
  color: var(--lava);
  -webkit-text-fill-color: var(--lava);
  text-shadow: 0 0 40px rgb(240 90 26 / .25);
}

/* Machined aluminum strip under the nav */
.nav::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--alu-mid) 20%, var(--alu-hi) 50%, var(--alu-mid) 80%, transparent);
  opacity: .35;
}

.eyebrow { border-color: var(--alu-lo); color: var(--alu); }

.btn-ghost {
  border-color: var(--alu-lo);
  color: var(--alu-hi);
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / 0));
}

/* Rig gets a brushed-aluminum bezel with a lava corner glint */
.rig {
  border: 0;
  padding: calc(1.25rem + 6px);
  background:
    linear-gradient(180deg, #141518, #0c0d0e) padding-box;
}
.rig::before {
  padding: 6px;
  background:
    linear-gradient(140deg, rgb(240 90 26 / .85), transparent 22%),
    var(--alu-grain),
    linear-gradient(90deg, var(--alu-lo), var(--alu-hi) 30%, var(--alu-mid) 55%, var(--alu-hi) 80%, var(--alu-lo));
  opacity: .9;
}
.rig::after {
  /* inner shadow where metal meets screen */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px #000, inset 0 8px 20px rgb(0 0 0 / .6);
  pointer-events: none;
}
.bar { background-color: var(--alu-mid); }
.clip { background: linear-gradient(180deg, #2a2c31, #1d1f23); border-color: #3a3d43; }
.track-label { color: var(--alu-mid); }

/* Steps: aluminum rail with a lava start mark */
.step { border-top: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--alu-mid), var(--alu-lo) 70%, transparent);
  opacity: .6;
}
.step::before { z-index: 1; }

/* Feature grid: aluminum seams, diamonds alternate lava / aluminum */
.grid { background: linear-gradient(135deg, #3a3d42, #1e2023 60%, #3a3d42); border-color: #33363b; }
.card:nth-child(even) h3::before { background: var(--alu-sheen); }

.footer { border-top-color: #2a2c30; }

/* ---------- LIFESTYLE LANDING PAGE STYLES ---------- */

/* Top Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--alu);
  text-decoration: none;
  transition: color .2s var(--ease), text-shadow .2s;
  position: relative;
  padding: .3rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--alu-hi);
}
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lava);
  box-shadow: 0 0 8px var(--lava);
}
.nav-pill-badge {
  font-size: .65rem;
  padding: .15rem .45rem;
  background: rgb(240 90 26 / .18);
  border: 1px solid rgb(240 90 26 / .5);
  color: var(--lava-hot);
  border-radius: 999px;
  margin-left: .35rem;
}

/* Lifestyle Hero */
.hero-lifestyle {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title-main {
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-stretch: 72%;
  font-weight: 850;
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title-main span.accent {
  color: var(--lava);
  -webkit-text-fill-color: var(--lava);
  text-shadow: 0 0 32px rgb(240 90 26 / .35);
}

.hero-subhead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--alu);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.5rem;
}

/* Hero HUD Strip */
.hero-hud-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #111215;
  border: 1px solid #23252a;
  border-radius: 10px;
  max-width: 560px;
}
.hero-hud-col {
  display: flex;
  flex-direction: column;
}
.hero-hud-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--alu-lo);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-hud-val {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 600;
  color: var(--alu-hi);
  margin-top: .15rem;
}
.hero-hud-val span.unit {
  color: var(--lava);
  font-size: .75rem;
  margin-left: 2px;
}

/* Hero Media Frame */
.hero-media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #121316;
  border: 1px solid #282a30;
  box-shadow: 0 20px 50px -10px rgb(0 0 0 / .8), 0 0 40px rgb(240 90 26 / .1);
}
.hero-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(240 90 26 / .7) 0%, transparent 35%, var(--alu-lo) 70%, rgb(240 90 26 / .3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  display: block;
  transition: transform .6s var(--ease);
}
.hero-media-card:hover .hero-img-wrap img {
  transform: scale(1.03);
}

/* Hero Overlay HUD */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 10 11 / .3) 0%, transparent 40%, rgb(10 10 11 / .85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 1;
}
.overlay-top-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overlay-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  padding: .3rem .6rem;
  background: rgb(10 10 11 / .75);
  backdrop-filter: blur(8px);
  border: 1px solid #33363d;
  border-radius: 6px;
  color: var(--alu-hi);
}
.overlay-tag.tag-live {
  border-color: rgb(240 90 26 / .5);
  color: var(--lava-hot);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.overlay-bottom-card {
  background: rgb(14 15 18 / .85);
  backdrop-filter: blur(12px);
  border: 1px solid #2a2c33;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overlay-bike-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--alu-hi);
  display: block;
}
.overlay-bike-sub {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--alu-mid);
}
.overlay-bike-badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--lava);
  border: 1px solid var(--lava-deep);
  background: rgb(240 90 26 / .1);
  padding: .3rem .6rem;
  border-radius: 4px;
}

/* Section Header Shared */
.section-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 2.5rem;
  text-align: left;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lava);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}
.section-headline {
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 72%;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  text-transform: uppercase;
  line-height: .95;
  margin-bottom: .85rem;
}
.section-desc {
  font-size: 1.08rem;
  color: var(--alu-mid);
  max-width: 640px;
}

/* Pillars Container */
.pillars-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Pillar Card Shared */
.pillar-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #111215;
  border: 1px solid #23252a;
  border-radius: var(--radius);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgb(0 0 0 / .6);
}
.pillar-card.reversed {
  grid-template-columns: 1fr 1fr;
}
.pillar-card.reversed .pillar-visual-side {
  order: 1;
}
.pillar-card.reversed .pillar-info-side {
  order: 2;
}

.pillar-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.pillar-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--alu-mid);
  background: #18191d;
  border: 1px solid #282a30;
  padding: .25rem .6rem;
  border-radius: 4px;
}
.pillar-tag.highlight {
  color: var(--lava-hot);
  border-color: rgb(240 90 26 / .4);
  background: rgb(240 90 26 / .1);
}

.pillar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pillar-desc {
  font-size: 1.02rem;
  color: var(--alu);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Visual Box inside Pillar */
.pillar-visual-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2d34;
  background: #0d0e10;
  box-shadow: 0 16px 40px rgb(0 0 0 / .7);
}
.pillar-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s var(--ease);
}
.pillar-card:hover .pillar-visual-frame img {
  transform: scale(1.02);
}

/* Pillar 1: RevMatch Special Interactive Widget */
.revmatch-preview-box {
  background: #0e0f12;
  border: 1px solid #282a30;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.preview-cam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.preview-cam-tile {
  background: #14161a;
  border: 1px solid #282a32;
  border-radius: 6px;
  padding: .6rem .75rem;
  position: relative;
}
.preview-cam-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--alu-hi);
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}
.preview-cam-meta {
  color: var(--lava);
  font-size: .65rem;
}
.preview-cam-wave {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.preview-wave-bar {
  flex: 1;
  background: var(--alu-lo);
  border-radius: 1px;
  height: 30%;
}
.preview-wave-bar.peak {
  background: var(--lava);
  height: 90%;
  box-shadow: 0 0 6px var(--lava);
}
.preview-sync-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem .8rem;
  background: rgb(240 90 26 / .1);
  border: 1px solid rgb(240 90 26 / .3);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--alu-hi);
}

/* Pillar 2: Trip Planner Route Specs Grid */
.route-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.route-spec-card {
  background: #16171b;
  border: 1px solid #26282e;
  border-radius: 6px;
  padding: .75rem .6rem;
  text-align: center;
}
.route-spec-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--alu-hi);
  display: block;
}
.route-spec-val span.sub {
  font-size: .7rem;
  color: var(--lava);
}
.route-spec-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--alu-mid);
  text-transform: uppercase;
  margin-top: .2rem;
}

/* Pillar 3: Ride Coach Telemetry Grid */
.telemetry-bars-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1.75rem;
}
.telemetry-bar-row {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.telemetry-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .75rem;
}
.telemetry-bar-name { color: var(--alu); }
.telemetry-bar-val { color: var(--lava-hot); font-weight: 600; }
.telemetry-bar-track {
  height: 6px;
  background: #202227;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.telemetry-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--alu-lo), var(--lava));
}

/* Pillar 4: Adventures Gallery & Expeditions */
.adventures-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
.adventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.adventure-card {
  background: #111215;
  border: 1px solid #23252a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.adventure-card:hover {
  transform: translateY(-4px);
  border-color: #383b43;
  box-shadow: 0 16px 36px rgb(0 0 0 / .6), 0 0 20px rgb(240 90 26 / .15);
}
.adventure-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #16181d;
  overflow: hidden;
}
.adventure-thumb svg,
.adventure-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.adventure-pill-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  background: rgb(10 10 11 / .8);
  backdrop-filter: blur(6px);
  border: 1px solid #33363e;
  padding: .2rem .5rem;
  border-radius: 4px;
  color: var(--alu-hi);
}
.adventure-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / .3);
  transition: background .2s;
}
.adventure-card:hover .adventure-play-btn {
  background: rgb(240 90 26 / .2);
}
.play-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(10 10 11 / .85);
  border: 1px solid var(--lava);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lava);
  box-shadow: 0 0 16px rgb(240 90 26 / .3);
  transition: transform .2s var(--ease);
}
.adventure-card:hover .play-icon-circle {
  transform: scale(1.1);
  background: var(--lava);
  color: #111;
}

.adventure-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.adventure-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--alu-mid);
  margin-bottom: .6rem;
}
.adventure-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: .6rem;
  color: var(--alu-hi);
}
.adventure-excerpt {
  font-size: .9rem;
  color: var(--alu-mid);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}
.adventure-footer-stats {
  display: flex;
  gap: .8rem;
  border-top: 1px solid #1f2126;
  padding-top: .8rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--alu);
}
.adventure-footer-stats span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.adventure-footer-stats span.accent {
  color: var(--lava);
}

/* Conquered Passes Passport Strip */
.passport-banner {
  background: #111215;
  border: 1px solid #23252a;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-top: 1rem;
}
.passport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #1f2126;
  padding-bottom: 1rem;
}
.passport-title-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.passport-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--alu-hi);
}
.passport-tally {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--lava);
}
.passes-scroll-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.pass-stamp-card {
  background: #16181d;
  border: 1px dashed #30333c;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}
.pass-stamp-card.conquered {
  border-color: rgb(240 90 26 / .5);
  background: rgb(240 90 26 / .04);
}
.pass-stamp-num {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--alu-lo);
  display: block;
}
.pass-stamp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--alu-hi);
  margin: .25rem 0 .4rem;
  display: block;
}
.pass-stamp-alt {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--lava);
  display: block;
}
.pass-stamp-check {
  position: absolute;
  top: .8rem;
  right: .8rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  padding: .15rem .4rem;
  border-radius: 3px;
  background: rgb(240 90 26 / .2);
  color: var(--lava-hot);
  border: 1px solid var(--lava);
}

/* Garage Section */
.garage-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}
.garage-card {
  background: #111215;
  border: 1px solid #23252a;
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.garage-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-top: 1.75rem;
}
.garage-spec-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--lava);
  padding-left: .85rem;
}
.garage-spec-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--alu-mid);
}
.garage-spec-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--alu-hi);
  margin-top: .15rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .pillar-card, .pillar-card.reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  .pillar-card.reversed .pillar-visual-side { order: 2; }
  .pillar-card.reversed .pillar-info-side { order: 1; }
  .adventures-grid {
    grid-template-columns: 1fr;
  }
  .garage-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .hero-hud-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-title-main {
    font-size: 2.8rem;
  }
  .route-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .passes-scroll-row {
    grid-template-columns: 1fr;
  }
  .garage-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SCROLL REVEAL ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
  50% { opacity: .35; }
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 3.5rem; padding-top: 3rem; min-height: 0; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps, .grid { grid-template-columns: 1fr; }
  .signup { border-radius: 18px; }
  .signup .btn { flex: 1 1 100%; }
  .track { grid-template-columns: 3.25rem 1fr; gap: .5rem; }
  .how, .features { padding-block: 4.5rem; }
}

