/* ─── Case study page ──────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.case-study-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(39, 102, 64, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(201, 168, 76, 0.06) 0%, transparent 55%),
    var(--swamp-void);
  pointer-events: none;
}

/* ─── Breadcrumb ───────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--dusk);
  padding: 2rem 0 0;
}

.breadcrumb a {
  color: var(--reed);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--phosphor); }
.breadcrumb span { color: var(--dusk); }

/* ─── Hero ─────────────────────────────────────────────── */

.cs-hero {
  padding: 3rem 0 4rem;
  animation: fade-up 0.6s ease both;
}

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phosphor);
  background: rgba(93, 222, 134, 0.07);
  border: 1px solid rgba(93, 222, 134, 0.18);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
}

.cs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--fog);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.cs-hero-sub {
  font-size: 1.1rem;
  color: var(--reed);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}

.cs-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--phosphor);
  color: var(--swamp-void);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-primary-light, #88eaa8);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--reed);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--swamp-surface);
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--fog);
  border-color: var(--swamp-muted);
}

/* ─── Stats bar ────────────────────────────────────────── */

.cs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--swamp-surface);
  border: 1px solid var(--swamp-surface);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 5rem;
  animation: fade-up 0.6s 0.1s ease both;
}

.cs-stat {
  background: var(--swamp-deep);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cs-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fog);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cs-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusk);
}

/* ─── Screenshot ───────────────────────────────────────── */

.cs-screenshot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--swamp-surface);
  margin-bottom: 5rem;
  animation: fade-up 0.6s 0.15s ease both;
  position: relative;
}

.cs-screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(6, 13, 7, 0.5));
  z-index: 1;
  pointer-events: none;
}

.cs-screenshot img {
  width: 100%;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

/* ─── Sections ─────────────────────────────────────────── */

.cs-section {
  margin-bottom: 5rem;
}

.cs-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.cs-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--swamp-surface);
}

.cs-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--fog);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cs-section p {
  font-size: 1rem;
  color: var(--reed);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 1rem;
}

.cs-section p:last-child { margin-bottom: 0; }

/* ─── Two-col layout ───────────────────────────────────── */

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ─── Feature grid ─────────────────────────────────────── */

.cs-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--swamp-surface);
  border: 1px solid var(--swamp-surface);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2rem;
}

.cs-feature {
  background: var(--swamp-deep);
  padding: 1.75rem;
  transition: background 0.2s;
}

.cs-feature:hover {
  background: var(--swamp-dark);
}

.cs-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(93, 222, 134, 0.08);
  border: 1px solid rgba(93, 222, 134, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phosphor);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cs-feature h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fog);
  margin-bottom: 0.5rem;
}

.cs-feature p {
  font-size: 0.825rem;
  color: var(--dusk);
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

/* ─── Tools list ───────────────────────────────────────── */

.cs-tools {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--swamp-surface);
  border: 1px solid var(--swamp-surface);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2rem;
}

.cs-tool {
  background: var(--swamp-deep);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s;
  text-decoration: none;
}

.cs-tool:hover {
  background: var(--swamp-dark);
}

.cs-tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phosphor-dim);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.cs-tool-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fog);
  margin-bottom: 0.25rem;
}

.cs-tool-desc {
  font-size: 0.825rem;
  color: var(--dusk);
  line-height: 1.55;
}

/* ─── CTA ──────────────────────────────────────────────── */

.cs-cta {
  background: var(--swamp-deep);
  border: 1px solid var(--swamp-surface);
  border-radius: 20px;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cs-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--phosphor-dim), var(--phosphor), var(--phosphor-dim), transparent);
}

.cs-cta h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fog);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.cs-cta p {
  color: var(--reed);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cs-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  .cs-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs-features {
    grid-template-columns: 1fr;
  }

  .cs-hero h1 {
    font-size: 2rem;
  }

  .cs-cta {
    padding: 2.5rem 1.5rem;
  }
}
