/* ─── CASE PAGE STYLES ──────────────────────────────────────── */

body { font-family: 'Inter', sans-serif; background: #F8FAFC; color: #0F172A; margin: 0; }

/* Header */
.case-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.case-header-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.back-link {
  color: #94A3B8; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.back-link:hover { color: #F8FAFC; }

/* Hero */
.case-hero {
  background: #0B1220;
  padding: 110px 24px 64px;
  position: relative; overflow: hidden;
}
.case-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.case-hero::after {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.case-hero-inner {
  max-width: 820px; margin: 0 auto;
  position: relative; z-index: 1;
}
.case-breadcrumb {
  font-size: 13px; color: #64748B; margin-bottom: 16px;
}
.case-breadcrumb a { color: #64748B; text-decoration: none; }
.case-breadcrumb a:hover { color: #94A3B8; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.case-tag-hero {
  display: inline-block; padding: 5px 14px;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  color: #93C5FD; border-radius: 99px;
  font-size: 13px; font-weight: 600;
}
.case-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900; color: #F8FAFC;
  line-height: 1.2; margin-bottom: 16px;
}
.case-hero-sub { font-size: 17px; color: #94A3B8; }

/* Body */
.case-body { max-width: 1000px; margin: 0 auto; padding: 0 24px 80px; }

/* Results bar */
.case-results-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  margin: 40px 0;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}
@media (min-width: 640px) { .case-results-bar { grid-template-columns: repeat(4, 1fr); } }
.case-result-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}
.case-result-item:nth-child(2n) { border-right: none; }
@media (min-width: 640px) {
  .case-result-item { border-bottom: none; }
  .case-result-item:nth-child(2n) { border-right: 1px solid #F1F5F9; }
  .case-result-item:last-child { border-right: none; }
}
.case-result-num {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2; margin-bottom: 6px;
}
.case-result-lbl { font-size: 12px; color: #94A3B8; font-weight: 500; }

/* Content */
.case-content { background: #fff; border-radius: 20px; padding: 48px; border: 1px solid #E2E8F0; margin-bottom: 32px; }
@media (max-width: 640px) { .case-content { padding: 28px 20px; } }

.case-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #F1F5F9; }
.case-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.case-section h2 {
  font-size: 22px; font-weight: 800; color: #0F172A;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.case-section h2::before {
  content: '';
  display: inline-block; width: 4px; height: 22px;
  background: linear-gradient(#2563EB, #06B6D4);
  border-radius: 2px; flex-shrink: 0;
}
.case-section p { font-size: 15px; color: #374151; line-height: 1.8; }

/* Problem box */
.case-problem-box {
  background: rgba(239,68,68,0.04);
  border-left: 4px solid #EF4444;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
}
.case-problem-box p { color: #374151; margin: 0; }

/* List */
.case-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.case-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: #374151; line-height: 1.6;
}
.case-list li::before {
  content: '✓';
  color: #2563EB; font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* Steps */
.case-step {
  display: flex; gap: 20px; margin-bottom: 28px;
}
.case-step:last-child { margin-bottom: 0; }
.case-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  margin-top: 2px;
}
.case-step-body h3 { font-size: 16px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.case-step-body p { font-size: 14px; color: #64748B; line-height: 1.7; margin: 0; }

/* Timeline */
.case-timeline {
  display: flex; gap: 8px; align-items: stretch;
  flex-wrap: wrap;
}
.case-timeline-item {
  flex: 1; min-width: 140px;
  background: #F8FAFC; border-radius: 16px;
  padding: 20px; border: 1px solid #E2E8F0;
}
.case-timeline-item.highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(6,182,212,0.06));
  border-color: #2563EB;
}
.case-timeline-arrow {
  display: flex; align-items: center;
  color: #CBD5E1; font-size: 20px; font-weight: 300;
  padding: 0 4px;
}
.case-timeline-month { font-size: 12px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.case-timeline-metrics { display: flex; flex-direction: column; gap: 8px; }
.case-tm-metric { display: flex; align-items: baseline; gap: 6px; }
.case-tm-val { font-weight: 800; font-size: 18px; color: #10B981; }
.case-tm-val.big { font-size: 22px; background: linear-gradient(135deg,#2563EB,#06B6D4); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.case-tm-lbl { font-size: 12px; color: #94A3B8; }

/* Result cards */
.case-result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.case-result-card {
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(6,182,212,0.04));
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 16px; padding: 24px;
}
.crn { font-size: 26px; font-weight: 900; background: linear-gradient(135deg,#2563EB,#06B6D4); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; margin-bottom: 8px; line-height: 1.2; }
.crl { font-size: 13px; color: #64748B; line-height: 1.6; }

/* CTA */
.case-cta {
  background: #0B1220;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.case-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.case-cta h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: #F8FAFC; margin-bottom: 12px; position: relative; z-index: 1; }
.case-cta p { color: #94A3B8; margin-bottom: 28px; font-size: 16px; position: relative; z-index: 1; }
.case-cta .btn-primary { position: relative; z-index: 1; }
