#pain {
  position: relative;
  background-image:
    linear-gradient(180deg,
      rgba(254, 242, 242, 0.3) 0%,
      rgba(255, 237, 237, 0.5) 35%,
      rgba(254, 226, 226, 0.7) 70%,
      rgba(253, 228, 228, 0.85) 100%),
    radial-gradient(circle at 15% 25%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(251, 146, 60, 0.06) 0%, transparent 50%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,
      rgba(239, 68, 68, 0) 0%,
      rgba(246, 153, 153, 0.35) 25%,
      rgba(246, 153, 153, 0.35) 75%,
      rgba(239, 68, 68, 0) 100%) 1;
  box-shadow: 0 6px 32px rgba(239, 68, 68, 0.12),
    inset 0 -1px 0 rgba(239, 68, 68, 0.08);
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

[data-bs-theme="dark"] #pain {
  background-image:
    linear-gradient(180deg,
      rgba(127, 29, 29, 0.06) 0%,
      rgba(153, 44, 44, 0.1) 35%,
      rgba(186, 50, 50, 0.15) 70%,
      rgba(227, 103, 103, 0.2) 100%),
    radial-gradient(circle at 15% 25%, rgba(239, 68, 68, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(251, 146, 60, 0.03) 0%, transparent 50%);
  border-image: linear-gradient(90deg,
      rgba(239, 68, 68, 0) 0%,
      rgba(234, 121, 121, 0.15) 25%,
      rgba(234, 121, 121, 0.15) 75%,
      rgba(239, 68, 68, 0) 100%) 1;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.4),
    inset 0 -1px 0 rgba(239, 68, 68, 0.06);
}

/* Section heading and subtitle */
.pain-section-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pain-subtitle {
  max-width: 720px;
  margin: 0 auto;
}

/* Cards */
.pain-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 252, 252, 0.95) 100%);
  border: 2px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease;
}

[data-bs-theme="dark"] .pain-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.95) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.pain-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.35);
}

[data-bs-theme="dark"] .pain-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
}

/* Featured card variant */
.pain-card--featured {
  background: linear-gradient(135deg, rgba(255, 252, 252, 0.99) 0%, rgba(255, 246, 246, 0.97) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: var(--shadow-m);
}

.pain-card--featured h4 {
  font-size: 1.375rem;
  line-height: 1.3;
}

[data-bs-theme="dark"] .pain-card--featured {
  background: linear-gradient(135deg, rgba(37, 26, 26, 0.98) 0%, rgba(24, 16, 16, 0.95) 100%);
  border-color: rgba(239, 68, 68, 0.45);
}

.pain-card--featured:hover {
  border-color: rgba(239, 68, 68, 0.5);
}

[data-bs-theme="dark"] .pain-card--featured:hover {
  border-color: rgba(239, 68, 68, 0.65);
}

/* Industry preview block inside featured card */
.pain-industry-preview {
  border-top: 1px solid rgba(239, 68, 68, 0.15);
}

.pain-industry-label {
  font-size: 0.8rem;
  color: #6B7280;
}

.pain-industry-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  white-space: nowrap;
}

.pain-badge-elite {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.pain-badge-mediocre {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.pain-badge-good {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

.pain-industry-caption {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(107, 114, 128, 0.75);
}

[data-bs-theme="dark"] .pain-industry-preview {
  border-top-color: rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .pain-industry-label {
  color: #9CA3AF;
}

[data-bs-theme="dark"] .pain-badge-elite {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

[data-bs-theme="dark"] .pain-badge-mediocre {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
}

[data-bs-theme="dark"] .pain-badge-good {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
}

[data-bs-theme="dark"] .pain-industry-caption {
  color: rgba(156, 163, 175, 0.6);
}

/* CTA Banner */
.pain-more-info {
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 1) 0%,
      rgba(30, 41, 59, 1) 50%,
      rgba(15, 23, 42, 1) 100%);
  border-radius: var(--radius-xl);
  border: 2px solid rgba(var(--landing-gradient-secondary-rgb), 0.3);
  box-shadow: var(--shadow-l), 0 0 40px rgba(var(--landing-gradient-secondary-rgb), 0.15);
  padding: 3.5rem 2.5rem;
  overflow: hidden;
}

[data-bs-theme="dark"] .pain-more-info {
  border-color: rgba(var(--landing-gradient-secondary-rgb), 0.4);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(var(--landing-gradient-secondary-rgb), 0.2);
}

.pain-more-info__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pain-more-info__body {
  max-width: 65ch;
  margin: 0 auto;
  color: rgb(203 213 225);
  line-height: 1.75rem;
  position: relative;
  z-index: 1;
}

/* Banner text emphasis */
.pain-highlight {
  color: #14B8A6;
}

.pain-what-emphasis {
  color: rgba(203, 213, 225, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  #pain {
    padding-bottom: var(--space-xl);
  }

  .pain-more-info {
    padding: 2.5rem 1.5rem;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pain-card {
    transition: none !important;
  }

  .pain-card:hover {
    transform: none !important;
  }
}
