/* ============================================
   SECTION: THE BROWNFIELD PROBLEM
   ============================================ */

.section-beachhead {
  background: var(--bg-secondary);
  min-height: 100vh;
  padding: var(--space-16) var(--space-6);
}

.section-beachhead .section-content {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   HERO STATEMENT
   ============================================ */

.brownfield-hero {
  margin-bottom: var(--space-10);
  text-align: center;
}

.hero-statement {
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin: 0;
}

.hero-substatement {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--accent-orange);
  margin: var(--space-2) 0 0 0;
}

.hero-costs {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-3);
  justify-content: center;
}

.hero-cost {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin: 0;
}

.hero-cost .cost-value {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
}

.hero-cost.bad .cost-value {
  color: var(--accent-orange);
}

.hero-cost.good .cost-value {
  color: var(--accent-green);
}

.hero-cost .cost-per {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   THE STRAKE PENALTY (Paradox Section)
   ============================================ */

.paradox-section {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.paradox-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.paradox-header h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.paradox-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* Stack Comparison Visual */
.paradox-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.stack-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.stack-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.stack-diagram {
  width: 80px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stack-body {
  width: 24px;
  height: 120px;
  background: linear-gradient(to bottom, #666, #444);
  border-radius: 2px 2px 0 0;
  position: relative;
}

.stack-diagram.smooth .stack-body {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stack-diagram.straked .stack-body {
  border: 1px solid rgba(255, 69, 0, 0.4);
}

.strake-lines {
  position: absolute;
  top: 0;
  left: -8px;
  right: -8px;
  height: 50%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255, 69, 0, 0.7) 4px,
    rgba(255, 69, 0, 0.7) 6px
  );
}

.wind-arrow {
  position: absolute;
  left: -50px;
  top: 30%;
  transform: translate(0, -50%);
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.wind-arrow::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  border-left: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.wind-arrow.large {
  width: 30px;
  height: 4px;
  background: rgba(255, 69, 0, 0.6);
}

.wind-arrow.large::after {
  border-left: 12px solid rgba(255, 69, 0, 0.6);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  right: -10px;
  top: -5px;
}

.stack-foundation {
  width: 48px;
  height: 16px;
  background: #555;
  border-radius: 0 0 4px 4px;
  position: relative;
}

.stack-foundation.stable {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stack-foundation.failing {
  border: 1px solid rgba(255, 69, 0, 0.5);
  background: linear-gradient(to bottom, #555, #3a2020);
}

.stack-foundation .crack {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 10px;
  background: rgba(255, 69, 0, 0.8);
  transform: rotate(15deg);
}

.stack-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

.stack-metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-mono);
}

.stack-metric .metric-key {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.stack-metric .metric-val {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.stack-metric.danger .metric-val {
  color: var(--accent-orange);
}

.stack-metric .metric-change {
  font-size: var(--text-xs);
  color: var(--accent-orange);
  font-weight: var(--weight-bold);
}

/* Comparison Arrow */
.comparison-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
}

.comparison-arrow span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.comparison-arrow svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

/* Consequence List */
.paradox-consequence {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.consequence-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.consequence-icon {
  color: var(--accent-orange);
  font-size: var(--text-base);
/* ============================================
   TRAP TRIGGER (EPA Flow)
   ============================================ */

.trap-trigger {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 69, 0, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.trigger-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  background: rgba(255, 69, 0, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.trigger-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.trigger-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.trigger-step .step-num {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.trigger-step .step-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.trigger-step.trapped {
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.25);
}

.trigger-step.trapped .step-num {
  background: var(--accent-orange);
  color: var(--bg-primary);
}

.trigger-step.trapped .step-text {
  color: var(--accent-orange);
  font-weight: var(--weight-medium);
}

.trigger-connector {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   BINARY CHOICE SECTION
   ============================================ */

.binary-choice {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.choice-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.choice-header h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.choice-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
  margin-bottom: var(--space-6);
}

.choice-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.choice-card.bad {
  background: rgba(255, 69, 0, 0.06);
  border: 1px solid rgba(255, 69, 0, 0.2);
}

.choice-card.good {
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid rgba(0, 255, 65, 0.25);
}

.choice-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.choice-action {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.choice-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.choice-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.choice-stat .stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.choice-card.bad .stat-value {
  color: var(--accent-orange);
}

.choice-card.good .stat-value {
  color: var(--accent-green);
}

.choice-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.choice-pain,
.choice-benefit {
  font-size: var(--text-xs);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.choice-pain {
  color: var(--text-muted);
}

.choice-benefit {
  color: rgba(0, 255, 65, 0.7);
}

.choice-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

/* Savings Highlight */
.savings-highlight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.savings-metric {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--accent-green);
  line-height: 1;
}

.savings-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ============================================
   THE NEXT STEP (Evolution Section)
   ============================================ */

.evolution-section {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.evolution-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.evolution-header h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2) 0;
}

.evolution-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
}

/* Evolution Grid - Two Cards */
.evolution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* Evolution Card */
.evo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.evo-card.legacy {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.evo-card.active {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.08), rgba(0, 255, 65, 0.02));
  border: 1px solid rgba(0, 255, 65, 0.25);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.08);
}

.evo-card-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.evo-gen {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.evo-card.active .evo-gen {
  color: var(--accent-green);
}

.evo-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.evo-card.active .evo-title {
  color: var(--accent-green);
}

.evo-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Individual Trait */
.evo-trait {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.trait-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.trait-bullet.muted {
  background: rgba(255, 255, 255, 0.25);
}

.trait-bullet.active {
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.trait-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trait-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.evo-card.legacy .trait-label {
  color: var(--text-secondary);
}

.trait-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-snug);
}

/* Stratum Badge */
.evo-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.evo-card-badge span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.05em;
  color: var(--accent-green);
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: var(--radius-full);
}

.evolution-kicker {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

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

@media (max-width: 900px) {
  .stack-comparison {
    gap: var(--space-4);
  }
  
  .paradox-consequence {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  
  .trigger-flow {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .trigger-connector {
    width: 2px;
    height: 16px;
  }
  
  .choice-cards {
    grid-template-columns: 1fr;
  }
  
  .choice-divider {
    padding: var(--space-2) 0;
  }
  
  .evolution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-beachhead {
    padding: var(--space-10) var(--space-4);
  }
  
  .paradox-section,
  .trap-trigger,
  .binary-choice,
  .evolution-section {
    padding: var(--space-5);
  }
  
  .hero-statement {
    font-size: var(--text-xl);
  }
  
  .evo-card-header {
    padding: var(--space-4);
  }
  
  .evo-card-body {
    padding: var(--space-4);
  }
  
  .trait-icon {
    width: 32px;
    height: 32px;
  }
  
  .trait-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .savings-metric {
    font-size: var(--text-4xl);
  }
}
