/* ============================================================================
   Ryvem — home page
   ============================================================================ */

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-9) var(--sp-8);
}
/* the single hero glow — the sparing gradient, low opacity, behind content */
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 620px;
  max-width: 140vw;
  background: var(--gradient);
  filter: blur(120px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: center;
}
.hero__copy { max-width: 780px; min-width: 0; }
@media (min-width: 1020px) {
  .hero__inner { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
}
.hero__eyebrow { margin-bottom: var(--sp-4); }
.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}
.hero__lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
  /* group gap: prose block → install widget */
  margin-bottom: var(--sp-6);
}
.hero__lede strong { color: var(--text); font-weight: var(--fw-semi); }
/* The CTA row sits the same distance below the code block as the OS selector
   sits above it: both gaps are --sp-3 (the selector gap lives on .tabs__list's
   margin-bottom in components.css). Keep the two in sync. */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

/* install block inside the hero */
.install { max-width: 680px; }
.install__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--sp-3);
}

/* ---- hero comparison chart ---------------------------------------------
   Emphasis pattern: the "without" baseline is a recessive gray mark, the
   "with ryvem-mcp" bar is the one accent. All text wears text tokens; the
   bars are the only colored marks. Static — no JS, no animation. */
.hero__viz { min-width: 0; }
.viz {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
}
.viz__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  margin-bottom: var(--sp-2);
}
.viz__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-5);
}
.viz__legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--faint);
}
.viz__swatch { width: 10px; height: 10px; border-radius: 3px; }
.viz__swatch--base { background: var(--faint); opacity: 0.4; }
.viz__swatch--accent { background: var(--accent); }
.viz__rows { display: grid; gap: var(--sp-4); }
.viz__metric {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.viz__delta { color: var(--faint); white-space: nowrap; }
.viz__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  gap: var(--sp-2);
  align-items: center;
}
.viz__line + .viz__line { margin-top: 6px; }
.viz__track { display: block; min-width: 0; }
.viz__fill {
  display: block;
  height: 10px;
  /* 4px rounded at the data end, square at the shared left baseline */
  border-radius: 0 4px 4px 0;
}
.viz__fill--base { background: var(--faint); opacity: 0.4; }
.viz__fill--accent { background: var(--accent); min-width: 3px; }
.viz__val {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.viz__caption {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--faint);
}
.viz__caption a { color: var(--muted); }

/* ---- generic section head --------------------------------------------- */
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--muted); font-size: var(--fs-md); }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--border); }

/* ---- feature grid ------------------------------------------------------ */
.features {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---- how it works ------------------------------------------------------ */
.steps {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: var(--sp-5); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-md);
}
.step::after {                      /* connecting rule between steps */
  content: "";
  position: absolute;
  top: 17px; left: 46px; right: -12px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.step p { color: var(--muted); font-size: var(--fs-sm); line-height: var(--lh-snug); }
/* Hide the connector once the 3-up row can wrap (steps are minmax(240px,1fr)
   in a --sp-5 gap, so 3 across need ~816px of viewport). Below that a
   wrapped last-of-row would trail a dangling line into an empty cell. */
@media (max-width: 860px) { .step::after { display: none; } }

/* ---- final CTA --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
}
.cta__accent { width: 56px; margin: 0 auto var(--sp-5); }
.cta h2 { margin-bottom: var(--sp-3); }
.cta p { color: var(--muted); font-size: var(--fs-md); max-width: 46ch; margin: 0 auto var(--sp-6); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
