/* ===== Case Study Page Styles ===== */



.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #7fa8d0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: rgba(61, 95, 134, 0.1);
  border: 1px solid rgba(61, 95, 134, 0.22);
  border-radius: 6px;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-bottom: 2rem;
}

.case-back:hover {
  background: rgba(61, 95, 134, 0.2);
  border-color: rgba(61, 95, 134, 0.45);
  color: #c8dff5;
}

.case-back svg {
  flex-shrink: 0;
}

/* Hero */
.case-hero {
  padding: 8rem 0 4rem;
  max-width: 820px;
}


.case-hero__brand {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 2.5rem;
}

.case-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.case-metric {
  background: rgba(13, 20, 31, 0.96);
  border: 1px solid rgba(61, 95, 134, 0.28);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.case-metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,200,240,0.3), transparent);
}

.case-metric:hover {
  background: rgba(18, 28, 44, 0.98);
  border-color: rgba(61, 95, 134, 0.5);
}

.case-metric strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #a8c8f0, #6a9fd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-metric span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Divider */
.case-divider {
  border: none;
  border-top: 1px solid rgba(149, 166, 189, 0.1);
  margin: 0 0 2.5rem;
}

/* Body */
.case-body {
  max-width: 820px;
  padding-bottom: 3rem;
}

.case-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(149, 166, 189, 0.1);
}

.case-section:last-of-type { border-bottom: none; }

.case-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7fa8d0;
  margin: 0 0 1rem;
}

.case-section p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.97rem;
  margin: 0;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.case-list li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  padding-left: 1.2rem;
  position: relative;
}

.case-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #7fa8d0;
  font-size: 0.82rem;
  top: 0.08em;
}

/* Results grid */
.case-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.case-result-card {
  background: rgba(13, 20, 31, 0.96);
  border: 1px solid rgba(61, 95, 134, 0.22);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.case-result-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
  background: linear-gradient(135deg, #a8c8f0, #6a9fd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-result-card span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

/* CTA Section */
.case-cta-section {
  margin: 0 auto 4rem;
  max-width: 820px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(149, 166, 189, 0.16);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(24, 37, 55, 0.48), rgba(9, 14, 22, 0.72));
  text-align: center;
}

.case-cta-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0 0 0.6rem;
}

.case-cta-section p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}


/* Responsive */
@media (max-width: 700px) {
  .case-results { grid-template-columns: 1fr; }
  .case-hero__metrics { grid-template-columns: 1fr; gap: 0.75rem; }
  .case-metric { aspect-ratio: auto; padding: 1.5rem; }
}
