/* ============================================================
   home.css — MLB Homepage
   All styles scoped to .home-* classes.
   Relies on CSS variables from theme.css (loaded via nav.css).
   ============================================================ */

/* ── Reset / base ── */
.home-page {
  min-height: 100vh;
}

/* ── Layout wrapper ── */
.home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Section spacing ── */
.home-section {
  padding: 80px 0;
}

.home-divider {
  border: none;
  border-top: 1px solid var(--border-color-subtle);
  margin: 0 48px;
}

/* ── Section label (unused after redesign, kept for other pages) ── */
.home-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

/* ================================================================
   STRIPE BANNER
   ================================================================ */
.home-stripe-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 44px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
}

.home-stripe-banner--success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.home-stripe-banner--warning {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.home-stripe-banner__close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
  padding: 0 4px;
}

.home-stripe-banner__close:hover {
  opacity: 1;
}

/* ================================================================
   HERO
   ================================================================ */

/* Background Orbs & Mesh */
.home-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(31, 111, 235, 0.08) 0%, transparent 60%);
}

.home-hero-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: floatOrb 15s infinite alternate ease-in-out;
}

.home-hero-bg__orb--1 {
  top: -100px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: rgba(31, 111, 235, 0.15);
}

.home-hero-bg__orb--2 {
  top: 20%;
  right: -50px;
  width: 400px;
  height: 400px;
  background: rgba(56, 189, 248, 0.1);
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

.home-hero {
  position: relative;
  padding: 120px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  z-index: 1;
}

/* Hero left */
.home-hero__left {
  animation: heroFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 111, 235, 0.1);
  border: 1px solid rgba(31, 111, 235, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 700;
  color: #58a6ff;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(31, 111, 235, 0.15);
}

.home-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #58a6ff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px #58a6ff;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.home-hero__heading {
  font-family: 'Barlow Condensed', var(--font-headings), sans-serif;
  font-size: clamp(52px, 5.5vw, 82px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a5c8ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(31, 111, 235, 0.15);
}

.home-hero__sub {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 440px;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Outfit', var(--font-headings), sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.home-btn-primary--glow {
  box-shadow: 0 8px 24px rgba(31, 111, 235, 0.4);
}

.home-btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.5);
}

.home-btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: buttonShine 4s infinite;
}

@keyframes buttonShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.home-btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.home-btn-ghost:hover {
  color: #fff;
}

/* White button for dark CTA section */
.home-btn-primary--white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #060b14;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Outfit', var(--font-headings), sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.home-btn-primary--white:hover {
  opacity: 0.88;
}

/* Right: Bento Box UI */
.home-hero__bento {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  animation: heroFadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

@keyframes heroFadeInRight {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

.home-bento-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* General Bento Card styling */
.home-bento-card {
  position: relative;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.home-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.home-bento-card--main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  background: linear-gradient(145deg, rgba(22, 27, 34, 0.8), rgba(13, 17, 23, 0.9));
}

.home-bento-card--small {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.home-bento-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-bento-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-bento-card__icon svg {
  width: 16px;
  height: 16px;
}

.home-bento-card__icon--blue {
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
}

.home-bento-card__icon--teal {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.home-bento-card__icon--purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.home-bento-card__stat-group {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.home-bento-stat {
  display: flex;
  flex-direction: column;
}

.home-bento-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
}

.home-bento-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

.home-bento-card__text strong {
  display: block;
  font-family: var(--font-headings);
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.home-bento-card__text span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Data Pulse Animation */
.home-bento-card__pulse-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.home-bento-card__pulse-dot {
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 4px;
  background: #58a6ff;
  border-radius: 4px;
  box-shadow: 0 0 10px #58a6ff;
  animation: scanline 3s infinite linear;
}

@keyframes scanline {
  0% { left: -40px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Floating Elements around Bento Box */
.home-bento-float {
  position: absolute;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 13px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 2;
  animation: floatOrb 6s infinite alternate ease-in-out;
}

.home-bento-float--1 {
  top: -20px;
  right: -20px;
  padding: 12px;
  border-radius: 50%;
  color: #34d399;
}

.home-bento-float--1 svg {
  width: 20px;
  height: 20px;
}

.home-bento-float--2 {
  bottom: -15px;
  left: -25px;
  animation-delay: -2s;
}

.home-bento-rate {
  color: #34d399;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ================================================================
   TOOL SHOWCASE
   ================================================================ */
.home-showcase {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-showcase__header {
  text-align: left;
  margin-bottom: 36px;
}

.home-showcase__heading {
  font-family: 'Barlow Condensed', var(--font-headings), sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-headlines);
  letter-spacing: -0.5px;
  margin-bottom: 0;
}

/* Two-column container */
.home-showcase__panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--border-color-subtle);
  border-radius: 16px;
  overflow: hidden;
  min-height: 460px;
  background: var(--card-bg);
}

/* Tool list (left column) */
.home-tool-list {
  border-right: 1px solid var(--border-color-subtle);
  display: flex;
  flex-direction: column;
}

.home-tool-item {
  padding: 22px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color-subtle);
  position: relative;
  transition: background 0.15s;
}

.home-tool-item:last-child {
  border-bottom: none;
}

.home-tool-item:hover:not(.home-tool-item--active) {
  background: rgba(255, 255, 255, 0.025);
}

.home-tool-item--active {
  background: rgba(31, 111, 235, 0.07);
}

.home-tool-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-tool-item__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
  fill: none;
}

.home-tool-item__icon--search {
  background: rgba(31, 111, 235, 0.12);
}

.home-tool-item__icon--search svg {
  stroke: #388bfd;
}

.home-tool-item__icon--matchup {
  background: rgba(56, 139, 253, 0.1);
}

.home-tool-item__icon--matchup svg {
  stroke: #388bfd;
}

.home-tool-item__icon--board {
  background: rgba(94, 234, 212, 0.08);
}

.home-tool-item__icon--board svg {
  stroke: #5eead4;
}

.home-tool-item__name {
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-headlines);
  margin-bottom: 4px;
}

.home-tool-item--active .home-tool-item__name {
  color: var(--accent-blue-hover);
}

.home-tool-item__desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-tool-item__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue-hover);
  text-decoration: none;
  margin-top: 10px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}

.home-tool-item--active .home-tool-item__link {
  opacity: 1;
  transform: translateX(0);
}

/* Preview pane (right column) */
.home-preview-pane {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.home-preview-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.home-preview-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color-subtle);
}

/* Tool panels */
.home-tool-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.home-tool-panel--active {
  display: flex;
}

/* Player search panel */
.home-ps-search {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 10px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}

.home-ps-search svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
}

.home-ps-player-card {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-ps-player-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-ps-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1f3a5f, #2a4d7a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-ps-avatar svg {
  width: 22px;
  height: 22px;
  stroke: #388bfd;
  stroke-width: 1.5;
  fill: none;
}

.home-ps-player-name {
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-headlines);
  margin-bottom: 2px;
}

.home-ps-player-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
}

.home-ps-trending-badge {
  margin-left: auto;
  background: rgba(31, 111, 235, 0.1);
  border: 1px solid rgba(31, 111, 235, 0.2);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue-hover);
  white-space: nowrap;
}

.home-ps-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.home-ps-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  background: rgba(31, 111, 235, 0.1);
  border: 1px solid rgba(31, 111, 235, 0.2);
  color: var(--accent-blue-hover);
}

.home-ps-chip--dim {
  background: var(--primary-bg);
  border-color: var(--border-color-subtle);
  color: var(--text-secondary);
}

.home-ps-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-ps-stat {
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.home-ps-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-blue-hover);
  letter-spacing: -0.5px;
}

.home-ps-stat-key {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.home-ps-trend-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.home-ps-trend-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 36px;
}

.home-ps-trend-bar {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(180deg, #388bfd, rgba(31, 111, 235, 0.4));
}

/* Matchup panel */
.home-mu-header-card {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-mu-side {
  flex: 1;
  text-align: center;
}

.home-mu-role {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.home-mu-player-name {
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-headlines);
  margin-bottom: 2px;
}

.home-mu-player-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
}

.home-mu-vs {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-secondary);
}

.home-mu-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-mu-stat {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.home-mu-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2px;
}

.home-mu-stat-val--blue   { color: #388bfd; }
.home-mu-stat-val--teal   { color: #5eead4; }
.home-mu-stat-val--orange { color: #f97316; }

.home-mu-stat-key {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-secondary);
}

.home-mu-form-card {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 10px;
  padding: 14px 16px;
}

.home-mu-form-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.home-mu-form-tiles {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.home-mu-tile {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
}

.home-mu-tile--hit {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.home-mu-tile--out {
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  color: var(--text-secondary);
}

/* Prop board panel */
.home-pb-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.home-pb-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}

.home-pb-chip--active {
  background: rgba(31, 111, 235, 0.1);
  border: 1px solid rgba(31, 111, 235, 0.2);
  color: var(--accent-blue-hover);
}

.home-pb-chip--dim {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  color: var(--text-secondary);
}

.home-pb-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-pb-row {
  background: var(--primary-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-pb-row-info {
  flex: 1;
}

.home-pb-row-prop {
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-headlines);
  margin-bottom: 2px;
}

.home-pb-row-meta {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-secondary);
}

.home-pb-row-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.home-pb-row-rate-label {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 1px;
}

.home-pb-rate--high   { color: #5eead4; }
.home-pb-rate--mid    { color: #388bfd; }
.home-pb-rate--low    { color: #f97316; }

/* ================================================================
   VALUE PROPS — numbered strip, no cards
   ================================================================ */
.home-vp-section {
  padding: 0 48px 88px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-vp-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.home-vp-item {
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--border-color-subtle);
}

.home-vp-item:last-child {
  padding-right: 0;
}

.home-vp-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 1px;
  margin-bottom: 14px;
  opacity: 0.8;
}

.home-vp-title {
  font-family: 'Outfit', var(--font-headings), sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-headlines);
  margin-bottom: 8px;
}

.home-vp-desc {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================
   FINAL CTA — full-bleed dark section
   ================================================================ */
.home-cta-wrap {
  background: #060b14;
  padding: 96px 48px;
  margin: 0;
  max-width: none;
}

.home-final-cta {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-final-cta__heading {
  font-family: 'Barlow Condensed', var(--font-headings), sans-serif;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 900;
  text-transform: uppercase;
  color: #f0f6fc;
  letter-spacing: -1px;
  line-height: 1.0;
  margin-bottom: 18px;
}

.home-final-cta__sub {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(240, 246, 252, 0.55);
  margin-bottom: 40px;
  line-height: 1.6;
}

.home-final-cta__actions {
  margin-bottom: 0;
}

.home-final-cta__note {
  font-family: 'Outfit', var(--font-body), sans-serif;
  font-size: 12px;
  color: rgba(240, 246, 252, 0.35);
  margin-top: 18px;
  letter-spacing: 0.2px;
}

/* ── Mobile showcase cards (base styles — shown at ≤600px via display override) ── */
.home-showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.home-showcase-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-showcase-card__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  fill: none;
}

.home-showcase-card__name {
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-headlines);
  margin-bottom: 4px;
}

.home-showcase-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.home-showcase-card__link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue-hover);
  text-decoration: none;
}

/* ── Accessibility: focus states ── */
.home-btn-primary:focus-visible,
.home-btn-ghost:focus-visible {
  outline: 2px solid var(--accent-blue-hover);
  outline-offset: 2px;
}

.home-tool-item:focus-visible {
  outline: 2px solid var(--accent-blue-hover);
  outline-offset: -2px;
}

.home-stripe-banner__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet: 600px – 960px */
@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding: 64px 32px 56px;
    gap: 40px;
    text-align: center;
  }

  .home-hero__sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-hero__stat-row {
    max-width: 420px;
    margin: 0 auto;
  }

  /* Tool showcase: stack vertically */
  .home-showcase__panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-tool-list {
    border-right: none;
    border-bottom: 1px solid var(--border-color-subtle);
    flex-direction: row;
    overflow-x: auto;
  }

  .home-tool-item {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border-color-subtle);
    padding: 16px 20px;
    min-width: 120px;
    text-align: center;
  }

  .home-tool-item:last-child {
    border-right: none;
  }

  .home-tool-item--active::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .home-tool-item__icon {
    margin: 0 auto 8px;
  }

  .home-tool-item__desc,
  .home-tool-item__link {
    display: none;
  }

  .home-vp-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .home-vp-item {
    padding: 24px 24px 24px 0;
  }

  .home-vp-item:nth-child(even) {
    padding-right: 0;
  }

  .home-showcase,
  .home-vp-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .home-cta-wrap {
    padding: 72px 32px;
  }

  .home-divider {
    margin: 0 32px;
  }

  .home-final-cta__heading {
    font-size: clamp(44px, 7vw, 60px);
  }
}

/* Mobile: < 600px */
@media (max-width: 600px) {
  .home-hero {
    padding: 48px 20px 40px;
  }

  .home-hero__heading {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .home-hero__stat-row {
    max-width: 100%;
  }

  /* Collapse tool showcase to three standalone cards */
  .home-showcase__panel {
    display: none;
  }

  .home-showcase__mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .home-vp-strip {
    grid-template-columns: 1fr 1fr;
  }

  .home-vp-item {
    padding: 20px 16px 20px 0;
  }

  .home-showcase,
  .home-vp-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-cta-wrap {
    padding: 64px 24px;
  }

  .home-divider {
    margin: 0 20px;
  }

  .home-final-cta__heading {
    font-size: clamp(40px, 10vw, 52px);
  }
}

/* On desktop, hide mobile cards (align boundary with max-width: 600px above) */
@media (min-width: 600px) {
  .home-showcase__mobile-cards {
    display: none;
  }
}

/* ================================================================
   LIGHT MODE OVERRIDES
   ================================================================ */
html[data-theme='light'] .home-stripe-banner--success {
  color: #16a34a;
}

html[data-theme='light'] .home-stripe-banner--warning {
  color: #ca8a04;
}

/* Badge icons simplified — no bg color overrides needed */

html[data-theme='light'] .home-tool-item:hover:not(.home-tool-item--active) {
  background: rgba(0, 0, 0, 0.02);
}

html[data-theme='light'] .home-tool-item--active {
  background: rgba(37, 99, 235, 0.06);
}

html[data-theme='light'] .home-mu-tile--hit {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: #0284c7;
}

/* In dark mode, use deep navy so CTA is visually distinct from the near-black page background */
html[data-theme='dark'] .home-cta-wrap {
  background: #0b1e3d;
  border-top: 1px solid rgba(56, 139, 253, 0.12);
}

html[data-theme='light'] .home-ps-trend-bar {
  background: linear-gradient(180deg, #1d4ed8, rgba(29, 78, 216, 0.4));
}
