/* =====================================================================
   RevMatch consumer landing — aligned to Sales Page design system
   Variants:
     A · "Pit Lane" — matches sales page (navy + red, scroll-driven)
     B · "Spec Sheet" — same tokens, editorial layout
   Toggle via body[data-variant="a"|"b"]
   ===================================================================== */

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

:root {
  --bg: #151929;
  --bg2: #1b1f30;
  --bg3: #202540;
  --surface: #222740;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --red: #CC2229;
  --red-hover: #e02530;
  --red-dim: rgba(204, 34, 41, 0.15);
  --red-glow: rgba(204, 34, 41, 0.35);
  --red-line: rgba(204, 34, 41, 0.3);
  --text: #EFF1F8;
  --muted: #8f9ab8;
  --faint: rgba(143, 154, 184, 0.55);

  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1280px;
  --pad: 5vw;
  --section-pad: clamp(80px, 10vw, 120px);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

body[data-variant="b"] {
  --bg: #0f1220;
  --bg2: #161a2b;
  --surface: #1d2238;
  --red: #E1383F; /* same family, slightly brighter for editorial mood */
}

body[data-density="compact"] {
  --section-pad: clamp(56px, 7vw, 90px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ======================== Typography ========================= */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ======================== Buttons ============================ */

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 24px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.btn-primary .arrow, .btn-ghost .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow, .btn-ghost:hover .arrow { transform: translateX(3px); }

/* ======================== Nav ================================ */

nav.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  height: 68px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
nav.nav.solid {
  background: rgba(21, 25, 41, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo {
  height: 28px;
  width: auto;
  display: block;
}
.nav-brand .mark {
  width: 30px; height: 30px;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px var(--red-glow);
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex; gap: 0.75rem;
}
.nav .btn-primary { padding: 0.55rem 1.3rem; font-size: 0.875rem; box-shadow: none; }
.nav .btn-ghost.nav-login { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ======================== Hero =============================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 110%;
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    rgba(204, 34, 41, 0.55) 0%,
    rgba(204, 34, 41, 0.32) 25%,
    rgba(204, 34, 41, 0.10) 50%,
    transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-visual .device {
  position: relative;
  z-index: 1;
}
.hero-video-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,25,41,0.55) 0%, rgba(21,25,41,0.78) 60%, rgba(21,25,41,0.95) 100%),
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(204,34,41,0.18) 0%, transparent 60%);
  z-index: 1;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 540px;
  background: radial-gradient(ellipse at center, rgba(204, 34, 41, 0.20) 0%, transparent 70%);
  pointer-events: none;
}
.hero-speed {
  position: absolute; inset: 0;
  overflow: hidden;
  opacity: 0.05;
  pointer-events: none;
}
.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff 50%, transparent);
  transform-origin: left center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-dim);
  border: 1px solid var(--red-line);
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 50ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
}
.hero-visual img.device {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.6));
}
.hero-visual .bg-geo {
  position: absolute; inset: -15%;
  z-index: -1;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-arrow {
  width: 16px; height: 16px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

/* Variant B layout shift */
body[data-variant="b"] .hero-inner {
  grid-template-columns: 1fr;
  gap: 60px;
}
body[data-variant="b"] .hero-visual {
  aspect-ratio: 16 / 9;
  margin-top: 20px;
}
body[data-variant="b"] .hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

/* ======================== Trust Bar ========================== */

.trust-bar {
  padding: 36px var(--pad);
  border: none;
  background: transparent;
}
.trust-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center;
  gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.trust-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.trust-divider {
  width: 1px; height: 24px;
  background: var(--border);
}
.trust-logos {
  display: flex; gap: 3rem; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.trust-logos img {
  height: 38px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1) grayscale(1);
  opacity: 0.55;
  transition: opacity 0.25s;
}
.trust-logos img:hover { opacity: 1; }
.trust-logos img.tall { height: 76px; }
.trust-logos img.no-filter {
  filter: none;
  opacity: 0.85;
}
.trust-logos img.no-filter:hover { opacity: 1; }
@media (max-width: 768px) {
  .trust-divider { display: none; }
}

/* ======================== Section header ===================== */

.section {
  padding: var(--section-pad) var(--pad);
  position: relative;
}
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-title em { font-style: normal; color: var(--red); }
.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.7;
}

/* ======================== Feature blocks ===================== */

.features-wrap { display: flex; flex-direction: column; gap: 0; }

/* ============== Pinned cross-fade features scroll ============= */
.features-scroll {
  position: relative;
  width: 100%;
  /* 5 slides × dwell per slide + final pin */
  height: calc(5 * 90vh + 100vh);
}
.features-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.features-stack {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  height: min(78vh, 760px);
}
.feature-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 100px);
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.feature-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.feature-slide .feature-text {
  display: flex;
  flex-direction: column;
}
.feature-slide .feature-text > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-slide.is-active .feature-text > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.feature-slide.is-active .feature-text > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.feature-slide.is-active .feature-text > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.feature-slide.is-active .feature-text > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

.feature-slide .feature-visual img.shot {
  transform: translateY(18px) scale(0.985);
  opacity: 0.6;
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-slide.is-active .feature-visual img.shot {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* HUD: progress + counter + dots */
.features-hud {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
}
.features-counter {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 4px;
}
.features-counter .cur { color: var(--red); transition: color 0.3s; }
.features-counter .sep { opacity: 0.4; }
.features-progress {
  width: min(320px, 60vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.features-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff5057);
  border-radius: 100px;
  box-shadow: 0 0 12px rgba(204, 34, 41, 0.6);
  transition: width 0.18s linear;
}
.features-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  pointer-events: auto;
}
.features-dot {
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  width: 18px;
  height: 4px;
  border-radius: 100px;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.features-dot:hover { background: rgba(255, 255, 255, 0.4); }
.features-dot.is-active {
  background: var(--red);
  width: 32px;
}

@media (max-width: 860px) {
  /* Fallback: no pin, all slides stacked linearly */
  .features-scroll { height: auto !important; }
  .features-stage { position: static; height: auto; min-height: 0; padding: 20px 0; display: block; overflow: visible; }
  .features-hud { display: none; }
  .features-stack { position: relative; height: auto; padding: 0 clamp(20px, 5vw, 40px); }
  .feature-slide {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    grid-template-columns: 1fr;
    padding: 56px 0;
    border-top: 1px solid var(--border);
    pointer-events: auto;
  }
  .feature-slide:last-child { border-bottom: 1px solid var(--border); }
  .feature-slide .feature-text > *,
  .feature-slide .feature-visual img.shot {
    opacity: 1;
    transform: none;
  }
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 100px);
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.features-wrap .feature:last-child { border-bottom: 1px solid var(--border); }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-visual { order: 1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-text, .feature.reverse .feature-visual { order: 0; }
}

.feature-text { display: flex; flex-direction: column; }
.feature-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.feature-number::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.4;
}
.feature-text h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.feature-text h3 em { font-style: normal; color: var(--red); }
.feature-text p.lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 1.5rem;
}

.feature-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover {
  background: var(--red-dim);
  border-color: var(--red-line);
  color: #f87171;
}

.feature-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.feature-visual::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    rgba(204, 34, 41, 0.50) 0%,
    rgba(204, 34, 41, 0.28) 25%,
    rgba(204, 34, 41, 0.08) 50%,
    transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.feature-visual img.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.feature:hover .feature-visual img.shot { transform: translateY(-6px); }

/* ======================== Stats row ========================== */

.stats-row {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px var(--pad);
}
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  text-align: center;
}
.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-val em { font-style: normal; color: var(--red); }
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ======================== Testimonials ======================= */

.testimonials-section {
  background: var(--bg2);
  padding: var(--section-pad) var(--pad);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  border-color: var(--red-line);
  transform: translateY(-3px);
}
.testimonial-stars {
  display: flex; gap: 3px;
  color: var(--red);
  font-size: 14px;
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red-dim);
  border: 1px solid var(--red-line);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-role { font-size: 0.78rem; color: var(--muted); }

/* ======================== FAQ ================================ */

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--red); }
.faq-arrow {
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.3s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--muted);
}
.faq-item[data-open="true"] .faq-arrow {
  transform: rotate(180deg);
  background: var(--red-dim);
  border-color: var(--red-line);
  color: var(--red);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  min-height: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  padding-right: 2rem;
}
.faq-item[data-open="true"] .faq-a-inner { padding-bottom: 1.5rem; }

/* ======================== Team =============================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.25s, transform 0.25s;
}
.team-card:hover {
  border-color: var(--red-line);
  transform: translateY(-3px);
}
.team-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
}
.team-card-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.team-card p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.7;
}
.team-prev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4px;
}
.team-prev-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.team-prev > span:not(.team-prev-label) {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.team-prev > span:not(.team-prev-label):hover {
  background: var(--red-dim);
  border-color: var(--red-line);
  color: #f87171;
}
.team-card .dream {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}
.team-card .dream b { color: var(--text); font-weight: 600; }
.team-link {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.team-link:hover {
  background: var(--red-dim);
  border-color: var(--red-line);
  color: var(--red);
}

/* ======================== CTA / Newsletter =================== */

.cta-section {
  background: var(--bg);
  text-align: center;
  padding: var(--section-pad) var(--pad);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(204, 34, 41, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.cta-title em { font-style: normal; color: var(--red); }
.cta-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.newsletter {
  margin: 0;
  width: 100%;
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.2s;
}
.newsletter:focus-within { border-color: var(--red-line); }
.newsletter input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter button:hover { background: var(--red-hover); }

/* ======================== Partners =========================== */

.partners {
  border-top: 1px solid var(--border);
  padding: 60px var(--pad);
}
.partners-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.partners-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.partner-logos {
  display: flex; gap: 3rem; align-items: center; flex-wrap: wrap;
}
.partner-logos img {
  height: 38px; width: auto;
  filter: brightness(0) invert(1) grayscale(1);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.partner-logos img:hover { opacity: 1; }
.partner-logos img.tall { height: 52px; }

/* ======================== Footer ============================= */

footer.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px var(--pad) 32px;
}
.footer-inner { max-width: none; margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-nav {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--red); }
.footer-socials {
  display: flex; gap: 14px; align-items: center;
}
.social-link {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-link:hover {
  color: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand img { height: 22px; width: auto; display: block; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav { gap: 20px; }
}

/* ======================== Scroll reveals ===================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* hero entry */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.hero-anim { opacity: 0; animation: heroUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-anim-1 { animation-delay: 0.15s; }
.hero-anim-2 { animation-delay: 0.4s; }
.hero-anim-3 { animation-delay: 0.7s; }
.hero-anim-4 { animation-delay: 1.0s; }

/* ======================== Tweaks panel ======================= */

#tweaks-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: rgba(20, 24, 41, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 1000;
  color: #fff;
  display: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
#tweaks-panel.active { display: block; }
#tweaks-panel h6 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: flex; justify-content: space-between;
}
.tw-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 14px; }
.tw-group { margin-bottom: 14px; }
.tw-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  display: block;
}
.tw-seg {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
}
.tw-seg button {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.16s;
}
.tw-seg button:hover { background: rgba(255, 255, 255, 0.06); }
.tw-seg button.on { background: var(--red); color: #fff; }
.tw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tw-switch {
  position: relative;
  width: 34px; height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: background 0.16s;
}
.tw-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.tw-switch.on { background: var(--red); }
.tw-switch.on::after { transform: translateX(14px); }
.tw-row span { font-size: 12px; color: rgba(255, 255, 255, 0.8); }


/* ======================== Legal pages ============================= */
.legal-page {
  background: var(--bg);
}
.legal-page .nav {
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.legal-hero {
  padding: 160px var(--pad) 60px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.legal-hero .eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.legal-hero h1 em {
  color: var(--red);
  font-style: normal;
}
.legal-hero .legal-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.legal-hero .legal-meta strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px var(--pad) 96px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.legal-body .legal-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin-bottom: 48px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 28px 0 10px;
  color: var(--text);
}
.legal-body p { margin: 0 0 16px; color: var(--muted); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul, .legal-body ol {
  margin: 0 0 16px 22px;
  color: var(--muted);
}
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--red-bright); }

.legal-toc {
  position: sticky; top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 40px;
}
.legal-toc-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}
.legal-toc li {
  counter-increment: toc;
  font-size: 13px;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.legal-toc a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.legal-toc a:hover { color: var(--red); }
@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-hero { padding-top: 120px; }
}
