/* ==========================================================================
   Cases Page Styles
   ========================================================================== */

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #FAFBFC 0%, #EEF2F7 40%, #E8F0FE 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 59, 107, 0.05) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(78, 205, 196, 0.12);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-badge i { color: var(--accent); }
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--cta), #FF8F6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Case Study Cards ===== */
.cases-section {
  padding: 100px 0;
  background: var(--white);
}
.cases-header {
  text-align: center;
  margin-bottom: 60px;
}
.cases-header .section-desc { margin: 0 auto; }

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 48px;
  transition: all 0.3s;
}
.case-card:last-child { margin-bottom: 0; }
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: linear-gradient(135deg, #F8FAFC, #EEF2FF);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.case-card-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.case-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}
.case-scale {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.case-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

.case-card-body {
  padding: 40px;
}

.case-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.result-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.result-number {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: var(--primary);
  margin-bottom: 4px;
}
.result-item:nth-child(2) .result-number { color: #059669; }
.result-item:nth-child(3) .result-number { color: var(--cta); }
.result-item:nth-child(4) .result-number { color: #7C3AED; }
.result-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.result-detail {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Before/After Bars */
.comparison-section {
  margin-bottom: 32px;
}
.comparison-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.comparison-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.comparison-label {
  width: 60px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.comparison-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.comparison-bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  transition: width 1s ease;
}
.bar-before { background: linear-gradient(90deg, #F87171, #EF4444); }
.bar-after { background: linear-gradient(90deg, var(--accent), #2CB5AC); }
.comparison-value {
  width: 60px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  text-align: right;
  flex-shrink: 0;
}

.case-quote {
  background: linear-gradient(135deg, #F0F4F8, #E8F0FE);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  position: relative;
}
.case-quote p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
}
.case-quote p::before {
  content: '\201C';
  font-size: 32px;
  color: var(--accent);
  line-height: 0;
  vertical-align: -8px;
  margin-right: 4px;
}
.case-quote-author {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ===== Stats Summary (dark) ===== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: var(--white);
}
.stats-header {
  text-align: center;
  margin-bottom: 60px;
}
.stats-header .section-label { color: var(--accent); }
.stats-header .section-title { color: var(--white); }
.stats-header .section-desc { color: rgba(255,255,255,0.7); margin: 0 auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(78, 205, 196, 0.2);
  color: var(--accent);
}
.stat-number {
  font-size: 44px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  color: var(--white);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card-header { padding: 24px 28px; }
  .case-card-body { padding: 28px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }
  .case-results { grid-template-columns: repeat(2, 1fr); }
  .case-card-header { flex-direction: column; align-items: flex-start; }
  .comparison-row { flex-wrap: wrap; }
  .comparison-label { width: 100%; }
  .comparison-value { width: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .case-results { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 36px; }
}
