/* ============================================
   VF-06: Industry Leaderboard — Styles
   All classes prefixed with lb- to avoid conflicts.
   ============================================ */
.lb-section {
  --lb-space: #162535;
  --lb-teal: #30ffeb;
  --lb-purple: #5033ff;
  --lb-text: #e2e2e1;
  --lb-text-2: #8fa3b8;
  --lb-text-3: #5a7a96;
  --lb-border: #243a52;
  --lb-card: #1a2d3d;
  --lb-font-d: 'Work Sans', sans-serif;
  --lb-font-b: 'DM Sans', sans-serif;

  background: var(--lb-space);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.lb-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(48,255,235,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,255,235,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.lb-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header — staggered fade-in */
.lb-eyebrow {
  font-family: var(--lb-font-d);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lb-teal);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s, transform 0.6s;
}
.lb-title {
  font-family: var(--lb-font-d);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 1px;
  color: var(--lb-text);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 0.1s, transform 0.6s 0.1s;
}
.lb-subtitle {
  font-family: var(--lb-font-b);
  font-size: 0.9rem;
  color: var(--lb-text-3);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 0.2s, transform 0.6s 0.2s;
}

.lb-section.visible .lb-eyebrow,
.lb-section.visible .lb-title,
.lb-section.visible .lb-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Ranking rows */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(36,58,82,0.4);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s;
}
.lb-row:last-child { border-bottom: none; }

.lb-section.visible .lb-row {
  opacity: 1;
  transform: translateX(0);
}

/* Rank number */
.lb-rank {
  font-family: var(--lb-font-d);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--lb-text-3);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.lb-row:nth-child(1) .lb-rank { color: var(--lb-teal); font-weight: 600; }
.lb-row:nth-child(2) .lb-rank { color: var(--lb-teal); }
.lb-row:nth-child(3) .lb-rank { color: var(--lb-teal); }

/* Industry name + count */
.lb-info {
  width: 180px;
  flex-shrink: 0;
}
.lb-industry {
  font-family: var(--lb-font-b);
  font-size: 0.88rem;
  color: var(--lb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-count {
  font-family: var(--lb-font-d);
  font-size: 0.58rem;
  letter-spacing: 0.8px;
  color: var(--lb-text-3);
  margin-top: 2px;
}

/* Bar */
.lb-bar-wrap {
  flex: 1;
  min-width: 0;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
}

.lb-bar {
  height: 100%;
  border-radius: 4px;
  position: relative;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Bar gradients — top ranks get brighter teal, lower ranks fade to purple */
.lb-bar-1 { background: linear-gradient(90deg, var(--lb-teal), rgba(48,255,235,0.6)); }
.lb-bar-2 { background: linear-gradient(90deg, rgba(48,255,235,0.7), rgba(48,255,235,0.35)); }
.lb-bar-3 { background: linear-gradient(90deg, rgba(48,255,235,0.5), rgba(48,255,235,0.25)); }
.lb-bar-mid { background: linear-gradient(90deg, rgba(48,255,235,0.35), rgba(48,255,235,0.15)); }
.lb-bar-low { background: linear-gradient(90deg, rgba(80,51,255,0.5), rgba(80,51,255,0.2)); }

/* Score */
.lb-score {
  font-family: var(--lb-font-d);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--lb-text);
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}
.lb-score span {
  font-weight: 300;
  font-size: 0.62rem;
  color: var(--lb-text-3);
}

/* Band label */
.lb-band {
  font-family: var(--lb-font-d);
  font-weight: 600;
  font-size: 0.52rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  width: 72px;
  text-align: right;
  flex-shrink: 0;
}
.lb-band-proactive { color: var(--lb-teal); opacity: 0.7; }
.lb-band-responsive { color: var(--lb-text-3); }
.lb-band-reactive { color: var(--lb-purple); }

/* Global average vertical line */
.lb-avg-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--lb-teal);
  opacity: 0;
  transition: opacity 0.8s 1.5s;
  z-index: 2;
  pointer-events: none;
}
.lb-avg-marker::before {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--lb-font-d);
  font-size: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lb-teal);
  white-space: nowrap;
}
.lb-section.visible .lb-avg-marker { opacity: 0.5; }

/* Footer */
.lb-footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s 1.8s, transform 0.6s 1.8s;
}
.lb-section.visible .lb-footer {
  opacity: 1;
  transform: translateY(0);
}
.lb-meta {
  font-family: var(--lb-font-b);
  font-size: 0.72rem;
  color: var(--lb-text-3);
}
.lb-cta {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  border: 1.5px solid var(--lb-teal);
  border-radius: 6px;
  font-family: var(--lb-font-d);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lb-teal);
  text-decoration: none;
  transition: background 0.15s;
}
.lb-cta:hover { background: rgba(48,255,235,0.06); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .lb-section { padding: 60px 16px; }
  .lb-row { gap: 10px; padding: 12px 0; }
  .lb-info { width: 120px; }
  .lb-industry { font-size: 0.8rem; }
  .lb-band { display: none; }
  .lb-rank { width: 22px; font-size: 0.9rem; }
  .lb-score { width: 44px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .lb-section { padding: 48px 12px; }
  .lb-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
  }
  .lb-rank { width: 20px; font-size: 0.8rem; }
  .lb-info {
    flex: 1;
    min-width: 0;
    width: auto;
  }
  .lb-score {
    width: auto;
    font-size: 0.8rem;
    order: 0;
  }
  .lb-bar-wrap {
    width: calc(100% - 34px);
    order: 3;
    height: 18px;
    margin-left: 34px;
  }
  .lb-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .lb-cta { width: 100%; text-align: center; }
  .lb-avg-marker { display: none; }
}
