/**
 * Visual Process Documentation Styles
 * Comprehensive styles for case study visual enhancements
 * Includes: TOC, metrics dashboards, before/after comparisons,
 * research visualizations, competitive analysis, and more
 */

/* ===================================
   TABLE OF CONTENTS
   =================================== */

.case-study-toc {
  position: sticky;
  top: 96px;
  background: color-mix(in srgb, var(--surface-1, #fff) 92%, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  padding: 1.4rem;
  margin: 2rem 0 3rem 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  max-width: 100%;
  z-index: 50;
}

.case-study-toc h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, rgba(0, 0, 0, 0.6));
  margin-bottom: 0.85rem;
}

.toc-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
  align-items: stretch;
}

.toc-links li {
  margin: 0;
}

.toc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.05rem;
  background: color-mix(in srgb, var(--surface-2, #f6f6f8) 80%, rgba(255, 255, 255, 0.8));
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text, rgba(0, 0, 0, 0.75));
  text-decoration: none;
  transition: all 0.22s var(--ease-smooth, ease);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.toc-link:hover {
  background: color-mix(in srgb, var(--surface-2, #f6f6f8) 70%, var(--accent, #f2a33c) 8%);
  color: var(--color-text, #1b1b1f);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: color-mix(in srgb, var(--accent, #f2a33c) 40%, var(--border-subtle, rgba(0, 0, 0, 0.1)));
}

.toc-link:hover,
.toc-link:focus-visible {
  text-decoration: none;
}

.toc-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #f2a33c) 55%, transparent);
  outline-offset: 3px;
}

.toc-link.active {
  background: var(--accent, #f2a33c);
  color: #0f0f11;
  border-color: color-mix(in srgb, var(--accent, #f2a33c) 70%, transparent);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent, #f2a33c) 22%, rgba(0, 0, 0, 0.15));
}

[data-theme="dark"] .case-study-toc {
  background: rgba(18, 18, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .case-study-toc h3 {
  color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .toc-link {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .toc-link:hover {
  background: color-mix(in srgb, var(--accent, #c4d7ff) 16%, rgba(255, 255, 255, 0.07));
  color: #fff;
  border-color: color-mix(in srgb, var(--accent, #c4d7ff) 40%, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .toc-link.active {
  color: #0c0c10;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Mobile TOC */
@media (max-width: 768px) {
  .case-study-toc {
    position: relative;
    top: auto;
  }

  .toc-links {
    flex-direction: column;
  }

  .toc-link {
    display: block;
    text-align: left;
  }
}

/* ===================================
   VISUAL METRICS DASHBOARD
   =================================== */

.metrics-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem;
  background: color-mix(in srgb, var(--surface-1, #fffaf2) 94%, rgba(255, 255, 255, 0.9));
  border-radius: 20px;
  border: 1.5px solid var(--border-subtle, rgba(0, 0, 0, 0.05));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.metric-visual-card {
  background: color-mix(in srgb, var(--surface-1, #fffaf2) 96%, rgba(255, 255, 255, 0.85));
  border-radius: 16px;
  padding: 2rem;
  border: 1.5px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.metric-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--metric-color-1, #10b981), var(--metric-color-2, #06b6d4));
}

.metric-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
  border-color: color-mix(in srgb, var(--metric-color-1, #10b981) 25%, var(--border-subtle, rgba(0, 0, 0, 0.06)));
}

.metric-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, rgba(0, 0, 0, 0.5));
  margin-bottom: 0.5rem;
}

.metric-value-comparison {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0;
}

.metric-before {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.metric-arrow {
  font-size: 1.5rem;
  color: var(--metric-color-1, #10b981);
}

.metric-after {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--metric-color-1, #10b981);
  letter-spacing: -0.02em;
}

.metric-change {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--metric-bg, rgba(16, 185, 129, 0.12));
  color: var(--metric-color-1, #10b981);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 650;
  margin-top: 0.5rem;
}

.metric-context {
  font-size: 0.95rem;
  color: var(--color-text, rgba(0, 0, 0, 0.7));
  margin-top: 0.75rem;
  line-height: 1.55;
}

[data-theme="dark"] .metrics-dashboard {
  background: color-mix(in srgb, var(--surface-1, #0f1218) 94%, rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .metric-visual-card {
  background: color-mix(in srgb, var(--surface-1, #0f1218) 92%, rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .metric-label,
[data-theme="dark"] .metric-context {
  color: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .metric-before {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .metric-after {
  color: var(--metric-color-1, #34d399);
}

/* ===================================
   BEFORE/AFTER COMPARISON
   =================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.comparison-section {
  position: relative;
}

.comparison-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-radius: 8px 8px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: -1px;
}

.comparison-section.after .comparison-label {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.comparison-visual {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 12px 12px 12px;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comparison-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.comparison-points li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

.comparison-points li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
  font-size: 1.2rem;
}

.comparison-section.after .comparison-points li::before {
  content: '✓';
  color: #059669;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

[data-theme="dark"] .comparison-grid {
  background: rgba(28, 28, 31, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .comparison-visual {
  background: rgba(40, 40, 50, 1);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .comparison-points li {
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   RESEARCH INSIGHTS VISUALIZATION
   =================================== */

.research-section {
  margin: 4rem 0;
}

.research-methodology {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.method-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color, #FF8C42);
}

.method-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color, #FF8C42), var(--primary-dark, #F57C00));
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.method-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.9);
}

.method-description {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

/* Journey Map */
.journey-map {
  margin: 3rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  border: 2px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.journey-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  position: relative;
}

.journey-stages::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--primary-color, #FF8C42) 0%,
    var(--primary-color, #FF8C42) 100%);
  z-index: 0;
}

.journey-stage {
  position: relative;
  z-index: 1;
  text-align: center;
}

.stage-marker {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: white;
  border: 3px solid var(--primary-color, #FF8C42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stage-marker.pain-point {
  border-color: #dc2626;
  background: #fef2f2;
}

.stage-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.9);
}

.stage-description {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
}

.stage-emotion {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .journey-stages {
    grid-template-columns: 1fr;
  }

  .journey-stages::before {
    display: none;
  }
}

[data-theme="dark"] .method-card {
  background: linear-gradient(135deg, rgba(40, 40, 50, 1) 0%, rgba(50, 50, 60, 1) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .method-title {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .method-description {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .journey-map {
  background: rgba(28, 28, 31, 1);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stage-marker {
  background: rgba(40, 40, 50, 1);
  border-color: var(--primary-color, #FF8C42);
}

[data-theme="dark"] .stage-title {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .stage-description,
[data-theme="dark"] .stage-emotion {
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   USER QUOTES ENHANCED
   =================================== */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.quote-card-enhanced {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color, #FF8C42);
}

.quote-card-enhanced::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  font-weight: 700;
}

.quote-insight-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--primary-color, #FF8C42);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.quote-text-enhanced {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  font-style: italic;
  margin: 1rem 0 1.5rem 0;
  position: relative;
  z-index: 1;
}

.quote-author-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.author-avatar-enhanced {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color, #FF8C42), var(--primary-dark, #F57C00));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-info-enhanced {
  flex: 1;
}

.author-name-enhanced {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 0.25rem;
}

.author-role-enhanced {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .quote-card-enhanced {
  background: linear-gradient(135deg, rgba(40, 40, 50, 1) 0%, rgba(50, 50, 60, 1) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quote-card-enhanced::before {
  color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .quote-text-enhanced {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .quote-author-section {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .author-name-enhanced {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .author-role-enhanced {
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   COMPETITIVE ANALYSIS
   =================================== */

.competitive-landscape {
  margin: 4rem 0;
  padding: 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  border-radius: 24px;
}

.competitive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.competitive-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.9);
}

.competitive-header p {
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.6);
}

.competitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.competitor-card {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.competitor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.competitor-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.9);
}

.competitor-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.competitor-features li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.5;
}

.competitor-features li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.differentiation-section {
  background: white;
  border: 3px solid var(--primary-color, #FF8C42);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.differentiation-section h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--primary-color, #FF8C42);
  text-align: center;
}

.differentiation-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.diff-point {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.05) 0%, rgba(245, 124, 0, 0.05) 100%);
  border-radius: 12px;
  border: 1.5px solid rgba(255, 140, 66, 0.2);
}

.diff-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.diff-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.9);
}

.diff-description {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
}

[data-theme="dark"] .competitive-landscape {
  background: linear-gradient(135deg, rgba(28, 28, 31, 1) 0%, rgba(30, 30, 50, 1) 100%);
}

[data-theme="dark"] .competitive-header h2 {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .competitive-header p {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .competitor-card {
  background: rgba(40, 40, 50, 1);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .competitor-name {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .competitor-features li {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .differentiation-section {
  background: rgba(40, 40, 50, 1);
  border-color: var(--primary-color, #FF8C42);
}

[data-theme="dark"] .diff-point {
  background: rgba(255, 140, 66, 0.08);
  border-color: rgba(255, 140, 66, 0.3);
}

[data-theme="dark"] .diff-title {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .diff-description {
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   PROCESS PHASES VISUALIZATION
   =================================== */

.process-phases {
  margin: 4rem 0;
}

.phase-timeline {
  position: relative;
  padding-left: 3rem;
}

.phase-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    var(--primary-color, #FF8C42) 0%,
    var(--primary-dark, #F57C00) 100%);
}

.phase-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.phase-marker {
  position: absolute;
  left: -2.2rem;
  top: 0;
  width: 44px;
  height: 44px;
  background: white;
  border: 4px solid var(--primary-color, #FF8C42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-color, #FF8C42);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.phase-content {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.phase-label {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 140, 66, 0.1);
  color: var(--primary-color, #FF8C42);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.phase-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.9);
}

.phase-description {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.phase-deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.deliverable-item {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
}

.deliverable-item::before {
  content: '✓ ';
  color: var(--primary-color, #FF8C42);
  font-weight: 700;
}

[data-theme="dark"] .phase-marker {
  background: rgba(40, 40, 50, 1);
  border-color: var(--primary-color, #FF8C42);
}

[data-theme="dark"] .phase-content {
  background: rgba(40, 40, 50, 1);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .phase-title {
  color: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .phase-description {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .deliverable-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   BREADCRUMB NAVIGATION
   =================================== */

.case-breadcrumb {
  padding: 1.25rem 0 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.case-breadcrumb .container {
  max-width: var(--feature-max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.5;
}

.breadcrumb-link {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--color-text, #1b1b1f);
  background: color-mix(in srgb, var(--accent, #f2a33c) 12%, transparent);
}

.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
  text-decoration: none;
}

.breadcrumb-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #f2a33c) 55%, transparent);
  outline-offset: 2px;
}

.breadcrumb-separator {
  color: rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
}

.breadcrumb-current {
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, #f2a33c) 10%, rgba(0, 0, 0, 0.02));
}

[data-theme="dark"] .case-breadcrumb {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .breadcrumb-link {
  color: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .breadcrumb-link:hover {
  color: #fff;
  background: color-mix(in srgb, var(--accent, #c4d7ff) 18%, transparent);
}

[data-theme="dark"] .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .breadcrumb-current {
  color: #fff;
  background: color-mix(in srgb, var(--accent, #c4d7ff) 18%, rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .breadcrumb-current {
  color: rgba(255, 255, 255, 0.95);
}

/* ===================================
   IMAGE CAPTIONS
   =================================== */

.case-image-wrapper {
  margin: 2rem 0;
}

.case-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: none;
  border: 0.5px solid color-mix(in srgb, var(--accent, #f2a33c) 18%, rgba(0, 0, 0, 0.08));
  background: color-mix(in srgb, var(--surface-1, #fffaf2) 92%, rgba(255, 255, 255, 0.85));
}

.image-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-text, #2a2a30);
  line-height: 1.6;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-1, #fffaf2) 90%, rgba(255, 255, 255, 0.8));
  border: 0.5px solid color-mix(in srgb, var(--accent, #f2a33c) 14%, rgba(0, 0, 0, 0.04));
}

.image-caption strong {
  color: var(--color-text, #2a2a30);
  font-weight: 700;
}

[data-theme="dark"] .image-caption {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(20, 22, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .image-caption strong {
  color: rgba(255, 255, 255, 0.95);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 1024px) {
  .metrics-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-phases {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .metrics-dashboard,
  .research-methodology,
  .competitors-grid,
  .differentiation-points {
    grid-template-columns: 1fr;
  }

  .metric-visual-card {
    padding: 1.5rem;
  }

  .metric-before,
  .metric-after {
    font-size: 1.5rem;
  }

  .phase-timeline {
    padding-left: 2rem;
  }

  .phase-timeline::before {
    left: 10px;
  }

  .phase-marker {
    width: 36px;
    height: 36px;
    left: -1.8rem;
  }
}
