/* ======================
   Case Studies Page Styles
======================= */

/* Hero adjustments */
.page-hero {
  padding: 56px 0 20px;
}

.hero-box {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(900px 320px at 20% 0%, rgba(34,211,238,0.20), transparent 55%),
    radial-gradient(900px 360px at 90% 20%, rgba(96,165,250,0.28), transparent 58%),
    linear-gradient(135deg, rgba(59,130,246,0.20), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.hero-box::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.14), transparent 66%);
  transform: translate(40px, -30px);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
  margin-bottom: 12px;
}

.k-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(34,211,238,0.6);
}

.hero-title {
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 15px;
  max-width: 90ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Intro Section */
.intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 40px 0 20px;
}

.intro h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Cases Grid */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.case-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.case-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.3);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(96,165,250,0.30);
  background: rgba(96,165,250,0.12);
  color: rgba(255,255,255,0.92);
  width: fit-content;
}

.case-content h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.case-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 600;
}

.case-features {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 6px 0;
}

.case-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.82);
  font-weight: 650;
}

.case-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
  font-size: 14px;
}

.case-stats {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* CTA Section */
.cta-section {
  margin: 60px 0 80px;
}

.cta-box {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(96,165,250,0.18), transparent 60%),
    linear-gradient(135deg, rgba(59,130,246,0.12), rgba(34,211,238,0.08));
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1050px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-title {
    font-size: 28px;
  }

  .intro h2 {
    font-size: 22px;
  }

  .case-image {
    height: 200px;
  }

  .cta-box {
    padding: 36px 24px;
  }

  .cta-box h2 {
    font-size: 24px;
  }
}
