/* ===== CASE STUDY HERO ===== */
.cs-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  padding: 10rem 2rem 5rem;
  text-align: center;
}

.cs-hero__container {
  max-width: 800px;
  margin: 0 auto;
}

.cs-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.cs-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.cs-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.cs-hero__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 3rem;
}

/* Meta bar */
.cs-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cs-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-hero__meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-hero__meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.cs-hero__meta-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== MAIN CONTENT ===== */
.cs-main {
  background: var(--color-bg);
}

.cs-section {
  padding: 5rem 2rem;
}

.cs-section--alt {
  background: var(--color-bg-alt);
}

.cs-section__container {
  max-width: 960px;
  margin: 0 auto;
}

.cs-section__container--narrow {
  max-width: 720px;
}

.cs-section__label-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cs-section__number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #8B5CF6;
}

.cs-section__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-section__heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.cs-section__text {
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cs-section__text strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ===== PROBLEMS GRID ===== */
.cs-problems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cs-problem {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.cs-problem__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.cs-problem__icon svg {
  width: 20px;
  height: 20px;
}

.cs-problem h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cs-problem p {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ===== ARCHITECTURE ===== */
.cs-architecture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cs-architecture__layer {
  width: 100%;
  max-width: 560px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-architecture__layer:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.06);
}

.cs-architecture__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.cs-architecture__desc {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.cs-architecture__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.cs-architecture__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--color-border);
}

.cs-architecture__connector svg {
  width: 20px;
  height: 20px;
}

/* ===== FEATURES ===== */
.cs-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cs-feature {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cs-feature:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  transform: translateY(-3px);
}

.cs-feature__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.08);
  color: #8B5CF6;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.cs-feature__icon svg {
  width: 20px;
  height: 20px;
}

.cs-feature h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cs-feature p {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ===== ROLE GRID ===== */
.cs-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cs-role-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.cs-role-item__number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 800;
  color: #8B5CF6;
  background: rgba(139, 92, 246, 0.08);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.cs-role-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.cs-role-item p {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  line-height: 1.5;
}

/* ===== IMPACT ===== */
.cs-impact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.cs-impact__card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.cs-impact__card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.cs-impact__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.cs-impact__icon svg {
  width: 20px;
  height: 20px;
}

.cs-impact__card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cs-impact__card p {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

/* ===== DEMO ===== */
.cs-demo {
  margin-top: 1rem;
}

.cs-demo__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  text-align: center;
}

.cs-demo__placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-muted);
  opacity: 0.3;
}

.cs-demo__placeholder span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.cs-demo__placeholder p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ===== CTA ===== */
.cs-cta {
  background: var(--color-primary);
  padding: 5rem 2rem;
  text-align: center;
}

.cs-cta__container {
  max-width: 600px;
  margin: 0 auto;
}

.cs-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cs-cta p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cs-cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cs-hero {
    padding: 7rem 1.25rem 3rem;
  }

  .cs-section {
    padding: 3.5rem 1.25rem;
  }

  .cs-problems,
  .cs-impact,
  .cs-role-grid {
    grid-template-columns: 1fr;
  }

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

  .cs-hero__meta-divider {
    display: none;
  }

  .cs-hero__meta {
    flex-direction: column;
    gap: 1rem;
  }

  .cs-cta {
    padding: 3.5rem 1.25rem;
  }

  .cs-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cs-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cs-features {
    grid-template-columns: 1fr 1fr;
  }
}
