
/* === GLOBAL RESET & TYPOGRAPHY === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #000000;
  --color-secondary: #007AFF;
  --color-gray: #7D7D7D;
  --color-light-gray: #A0A0A0;
  --color-offwhite: #F5F5F7;
  --color-white: #FFFFFF;
  --color-success: #34C759;
  --color-warning: #FF9500;
  --color-danger: #FF3B30;

  --gradient-accent: linear-gradient(135deg, #007AFF 0%, #7D7D7D 100%);
  --gradient-success: linear-gradient(135deg, #34C759 0%, #30D158 100%);
  --font-main: 'Inter', sans-serif;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: var(--font-main); 
}

body {
  background-color: var(--color-primary);
  color: var(--color-white);
  line-height: 1.6;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav ul li a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: var(--color-secondary);
}

/* === HERO === */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
  padding: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--color-gray);
  font-size: 1.25rem;
  max-width: 600px;
}

/* === HERO DETAIL === */
.hero-detail {
  padding: 60px 5% 40px;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--color-gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.key-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.metric-highlight {
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid var(--color-secondary);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--color-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === SECTIONS === */
.section {
  padding: 80px 5%;
  background: var(--color-primary);
}

.section.alt {
  background: var(--color-offwhite);
  color: var(--color-primary);
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.section-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-gray);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === CASE STUDY CONTAINERS === */
.case-study-container {
  margin-bottom: 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.case-study-preview {
  background: rgba(245, 245, 247, 0.05);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.case-study-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.case-study-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray);
  font-weight: 500;
}

/* === FINANCIAL HIGHLIGHTS === */
.financial-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.financial-card {
  background: var(--color-offwhite);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.financial-card.primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.financial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.financial-amount {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.financial-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* === CASE STUDY INTRO === */
.case-study-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 3rem;
  color: var(--color-light-gray);
}

/* === EXPANDABLE SECTIONS === */
.expandable-sections {
  margin-bottom: 3rem;
}

.expand-section {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.expand-section h3 {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
}

.expand-section h3:hover {
  background: rgba(255, 255, 255, 0.08);
}

.expand-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.expand-section.active .expand-content {
  max-height: 1000px;
  padding: 1.5rem;
}

.expand-content p {
  margin-bottom: 1rem;
  color: var(--color-light-gray);
}

.expand-content ul {
  list-style-position: inside;
  color: var(--color-light-gray);
}

.expand-content ul li {
  margin-bottom: 0.5rem;
}

/* === CASE STUDY ACTIONS === */
.case-study-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.cta-button.primary {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-button.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* === DETAILED PAGE CONTENT === */
.content-block {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.large-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--color-light-gray);
}

/* === METHODOLOGY GRID === */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.method-card {
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
}

.section.alt .method-card {
  background: var(--color-white);
  border-color: rgba(0, 0, 0, 0.1);
}

.method-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.method-card ul {
  list-style: none;
  padding: 0;
}

.method-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section.alt .method-card ul li {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.method-card ul li:last-child {
  border-bottom: none;
}

/* === INSIGHT CALLOUT === */
.insight-callout {
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid var(--color-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.insight-callout h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.insight-callout p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* === CONTROLS GRID === */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.control-block {
  background: rgba(245, 245, 247, 0.05);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section.alt .control-block {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.control-block h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.control-block .stat {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

/* === RESULTS COMPARISON === */
.results-comparison {
  margin: 3rem 0;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.performance-block {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.performance-block.before {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--color-danger);
}

.performance-block.after {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--color-success);
}

.performance-block h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.perf-stats {
  display: grid;
  gap: 1rem;
}

.perf-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.perf-stat:last-child {
  border-bottom: none;
}

.perf-stat .value {
  font-weight: 700;
  font-size: 1.1rem;
}

.perf-stat.warning .value {
  color: var(--color-warning);
}

.perf-stat.success .value {
  color: var(--color-success);
}

/* === FINANCIAL IMPACT DETAILED === */
.financial-impact-detailed {
  background: var(--gradient-success);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.financial-impact-detailed h3 {
  color: var(--color-white);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

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

.impact-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.impact-item.highlight {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.impact-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.impact-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === FINDINGS GRID === */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.finding-card {
  background: rgba(245, 245, 247, 0.05);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.section.alt .finding-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.finding-card:hover {
  transform: translateY(-5px);
}

.finding-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* === PLATFORM COMPARISON === */
.platform-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.platform-block {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-block.highlight {
  background: rgba(52, 199, 89, 0.1);
  border-color: var(--color-success);
}

.platform-stats {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.platform-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-stat:last-child {
  border-bottom: none;
}

.platform-stat .value {
  font-weight: 700;
  font-size: 1.1rem;
}

.platform-stat .value.warning {
  color: var(--color-warning);
}

.platform-stat .value.success {
  color: var(--color-success);
}

.platform-stat .value.maintained {
  color: var(--color-secondary);
}

/* === PERFORMANCE UPLIFT === */
.performance-uplift {
  margin-top: 3rem;
}

.performance-uplift h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-secondary);
}

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

.uplift-item {
  background: rgba(245, 245, 247, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section.alt .uplift-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.uplift-item.highlight {
  background: var(--gradient-accent);
  border-color: var(--color-secondary);
}

.uplift-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 0.5rem;
}

.uplift-item.highlight .uplift-value {
  color: var(--color-white);
}

.uplift-desc {
  font-size: 0.85rem;
  color: var(--color-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uplift-item.highlight .uplift-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* === PROCESS FLOW === */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

/* === TECHNICAL GRID === */
.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-block {
  background: rgba(245, 245, 247, 0.05);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section.alt .tech-block {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.tech-block h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* === DATA REQUIREMENTS === */
.data-requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.data-source {
  background: rgba(245, 245, 247, 0.05);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section.alt .data-source {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.data-source h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* === CTA FINAL === */
.cta-final {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-final h2 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.cta-final p {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

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

/* === FEATURE BLOCKS (ORIGINAL) === */
.feature-large {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.feature-large img {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
}

.feature-large .text {
  flex: 1;
  align-self: center;
  font-size: 1.25rem;
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-offwhite);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s ease;
}

.feature-card:hover { 
  transform: translateY(-5px); 
}

/* === FLOWCHART === */
.flowchart {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.flowchart-step {
  background: var(--gradient-accent);
  padding: 20px 30px;
  border-radius: 50px;
  color: white;
  font-weight: 500;
  position: relative;
}

.flowchart-step::after {
  content: "→";
  margin-left: 16px;
  color: var(--color-gray);
}

.flowchart-step:last-child::after {
  content: "";
}

/* === CONTACT ACTIONS === */
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === CASE STUDIES GRID === */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.case-study-card {
  background: rgba(245, 245, 247, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-secondary);
}

.case-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.case-card-content {
  padding: 2rem;
}

.case-card-category {
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.case-study-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.case-card-description {
  color: var(--color-light-gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.case-card-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.case-card-metrics .metric {
  text-align: center;
}

.case-card-metrics .metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.case-card-metrics .metric-label {
  font-size: 0.8rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-card-tags .tag {
  background: rgba(0, 122, 255, 0.1);
  color: var(--color-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* === CASE HERO SECTION === */
.case-hero {
  padding: 80px 5% 60px;
}

.case-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.case-hero-text {
  order: 1;
}

.case-hero-image {
  order: 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.case-category {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.case-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.case-subtitle {
  font-size: 1.2rem;
  color: var(--color-light-gray);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.key-findings {
  display: flex;
  gap: 2rem;
}

.key-findings .finding {
  text-align: center;
}

.key-findings .finding-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: block;
}

.key-findings .finding-label {
  font-size: 0.8rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === CONTENT SECTIONS === */
.content-section {
  max-width: 1000px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-content {
  margin-bottom: 3rem;
}

.large-text {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--color-light-gray);
  margin-bottom: 2rem;
  text-align: center;
}

.insight-highlight {
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid var(--color-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.insight-highlight h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

/* === METHODOLOGY HIGHLIGHTS === */
.methodology-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.method-point {
  text-align: center;
  padding: 2rem;
}

.method-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.method-point h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

/* === EXPANDABLE SECTIONS IMPROVED === */
.expandable-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.expandable-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.expandable-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.expand-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.expandable-section.active .expand-icon {
  transform: rotate(45deg);
}

.expandable-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.expandable-section.active .expandable-content {
  padding: 1.5rem;
  max-height: 1000px;
}

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

.detail-block h4 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.detail-block ul {
  list-style-position: inside;
  color: var(--color-light-gray);
}

.detail-block ul li {
  margin-bottom: 0.5rem;
}

/* === RESULTS COMPARISON IMPROVED === */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.performance-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.performance-card.before {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--color-danger);
}

.performance-card.after {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid var(--color-success);
}

.performance-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.perf-stats {
  display: grid;
  gap: 1rem;
}

.perf-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.perf-stat:last-child {
  border-bottom: none;
}

.perf-stat .value {
  font-weight: 700;
  font-size: 1.1rem;
}

.perf-stat .value.warning {
  color: var(--color-warning);
}

.perf-stat .value.success {
  color: var(--color-success);
}

/* === FINANCIAL IMPACT ENHANCED === */
.financial-impact {
  margin-top: 4rem;
  text-align: center;
}

.financial-impact h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-secondary);
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.impact-card {
  background: var(--color-offwhite);
  color: var(--color-primary);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.impact-card.primary {
  background: var(--gradient-accent);
  color: var(--color-white);
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.impact-desc {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* === INSIGHTS GRID === */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.insight-card {
  background: rgba(245, 245, 247, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.section.alt .insight-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.insight-card:hover {
  transform: translateY(-5px);
}

.insight-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* === PLATFORM COMPARISON ENHANCED === */
.platform-comparison-section {
  margin-bottom: 3rem;
}

.platform-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.platform-card {
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(245, 245, 247, 0.05);
}

.platform-card.trade-desk {
  background: rgba(52, 199, 89, 0.1);
  border-color: var(--color-success);
}

.platform-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.platform-stats {
  display: grid;
  gap: 1rem;
}

.platform-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-stat:last-child {
  border-bottom: none;
}

.platform-stat .value {
  font-weight: 700;
  font-size: 1.1rem;
}

.platform-stat .value.success {
  color: var(--color-success);
}

.platform-stat .value.maintained {
  color: var(--color-secondary);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .case-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .case-hero-text {
    order: 2;
    text-align: center;
  }
  
  .case-hero-image {
    order: 1;
  }
  
  .key-findings {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .case-hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 5%;
  }
  
  .case-study-preview {
    padding: 2rem;
  }
  
  .financial-highlights {
    grid-template-columns: 1fr;
  }
  
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  
  .before-after {
    grid-template-columns: 1fr;
  }
  
  .before-after-grid {
    grid-template-columns: 1fr;
  }
  
  .platform-comparison {
    grid-template-columns: 1fr;
  }
  
  .platform-results {
    grid-template-columns: 1fr;
  }
  
  .process-flow {
    grid-template-columns: 1fr;
  }
  
  .methodology-highlights {
    grid-template-columns: 1fr;
  }
  
  .key-findings {
    flex-direction: column;
    gap: 1rem;
  }
  
  .case-card-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}
