/* ===== Perf Page Styles ===== */

/* Page Hero */
.page-hero {
  text-align: center;
  padding: 120px 0 48px;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 16px 0;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== Constants Section ===== */
.constants-section {
  padding-bottom: 80px;
}
.const-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.const-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.4s var(--ease-out-expo);
}
.const-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.const-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', monospace;
}
.const-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
.const-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Perf Section ===== */
.perf-section {
  padding-bottom: 80px;
}
.section-header {
  margin-bottom: 32px;
}
.section-header .overline {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== Pipeline ===== */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pipe-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.pipe-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20,184,166,0.1);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  font-family: 'Space Grotesk', monospace;
  flex-shrink: 0;
}
.pipe-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}
.pipe-content:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.pipe-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', monospace;
}
.pipe-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.pipe-code {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.04);
}
.pipe-code code {
  font-size: 12px;
  font-family: 'Space Grotesk', 'Consolas', monospace;
  color: var(--teal);
  line-height: 1.5;
}

.pipe-connector {
  display: flex;
  justify-content: center;
  padding: 0 0 0 0;
  margin-left: 24px;
  width: 48px;
  height: 24px;
  position: relative;
}
.pipe-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal), rgba(20,184,166,0.3));
  border-radius: 1px;
}

/* ===== Engine Compare ===== */
.engine-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.engine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s var(--ease-out-expo);
}
.engine-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.ec-primary { border-top: 3px solid var(--teal); }
.ec-fallback { border-top: 3px solid var(--amber); }

.ec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ec-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
}
.ec-badge-primary { color: var(--teal); background: rgba(20,184,166,0.12); }
.ec-badge-fallback { color: var(--amber); background: rgba(245,158,11,0.12); }

.ec-header h4 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
}

.ec-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ec-feature {
  padding: 12px 16px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.04);
}
.ec-feature-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', monospace;
  margin-bottom: 4px;
}
.ec-feature-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .const-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-compare { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .const-grid { grid-template-columns: 1fr; }
  .pipe-step { grid-template-columns: 36px 1fr; gap: 12px; }
  .pipe-num { width: 36px; height: 36px; font-size: 14px; }
  .pipe-connector { margin-left: 17px; width: 36px; }
}
