/* ═══════════════════════════════════════════════════════════════
   fitnex.css — Fitnex Case Study theme
   Reuses the LUMA case study layout (luma.css) and swaps the
   palette for Fitnex: graphite dark · signal red.
   Load AFTER luma.css.
   ═══════════════════════════════════════════════════════════════ */

body.fitnex-body {
  --luma-bg: #0A0A0B;
  --luma-surface: #121214;
  --luma-surface-elevated: #1A1A1D;
  --luma-border: #26262B;
  --luma-border-bright: #3A3A40;
  --luma-blue: #E5383B;
  --luma-blue-glow: rgba(229, 56, 59, 0.35);
  --luma-cyan: #FF6B6B;
  --luma-cyan-glow: rgba(255, 107, 107, 0.22);
  --luma-muted: #A1A1AA;
  --luma-dim: #71717A;
  --fitnex-control: #141416;

  background-image: radial-gradient(circle, #26262B 1px, transparent 1px);
}

/* Hard-coded LUMA blues → Fitnex graphite / red */
.fitnex-body .luma-progress-bar {
  background: linear-gradient(90deg, #B91C1C, #E5383B, #FF6B6B);
}

.fitnex-body .luma-back-link,
.fitnex-body .luma-act-pills,
.fitnex-body .luma-zoom-btn,
.fitnex-body .luma-ctrl-btn,
.fitnex-body .luma-footer-btn {
  background: var(--fitnex-control);
}

.fitnex-body .luma-hero-title .text-gradient {
  background: linear-gradient(135deg, #FF6B6B 0%, #E5383B 50%, #B91C1C 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.fitnex-body .luma-cta-scroll:hover {
  background: #C62828;
}

.fitnex-body .luma-act-frame:hover {
  border-color: rgba(229, 56, 59, 0.5);
}

.fitnex-body .luma-progress-container {
  background: rgba(20, 20, 22, 0.8);
}

.fitnex-body .luma-progress-bar {
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.fitnex-body .luma-topnav.scrolled {
  background-color: rgba(10, 10, 11, 0.96);
  border-bottom-color: rgba(229, 56, 59, 0.4);
}

.fitnex-body .luma-act-pill:hover {
  background: rgba(229, 56, 59, 0.15);
}

.fitnex-body .luma-hero-prompt,
.fitnex-body .luma-act-badge .badge-tag {
  background: rgba(229, 56, 59, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
}

.fitnex-body .luma-overview-strip {
  background: rgba(229, 56, 59, 0.06);
  border-color: rgba(229, 56, 59, 0.25);
}

.fitnex-body .luma-footer {
  background: #060607;
}

/* ── Chapter dividers between frame groups ─────────────────── */
.fitnex-chapter {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 24px clamp(16px, 3.5vw, 48px) 0;
  scroll-margin-top: calc(var(--site-nav-h, 76px) + 80px);
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: 'Geist Mono', monospace;
}

.fitnex-chapter-num {
  color: var(--luma-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.fitnex-chapter-title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fitnex-chapter-range {
  margin-left: auto;
  color: var(--luma-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@media (max-width: 540px) {
  .fitnex-chapter {
    flex-wrap: wrap;
    gap: 6px 12px;
    scroll-margin-top: 120px;
  }

  .fitnex-chapter-range {
    margin-left: 0;
    width: 100%;
  }
}
