@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
  --bg-base: #080B11;
  --bg-surface: rgba(13, 18, 30, 0.75);
  --bg-surface-solid: #0D121E;
  --bg-panel: rgba(20, 27, 45, 0.4);
  --border-glow: rgba(34, 211, 238, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  /* Palette */
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-cyan: #06B6D4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --accent-cyber: #8B5CF6;
  --accent-cyber-glow: rgba(139, 92, 246, 0.2);
  --accent-ruby: #EF4444;
  --accent-ruby-glow: rgba(239, 68, 68, 0.2);
  --accent-gold: #F59E0B;
  
  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dark: #0F172A;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASIC STYLING --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- GLOBAL LAYOUT --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- TELEMETRY HEAD TICKER --- */
.global-ticker {
  background: rgba(8, 11, 17, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.ticker-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ticker-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.ticker-brand span {
  color: var(--accent-cyan);
}

.ticker-telemetry {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.telemetry-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

.telemetry-label {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-value.savings {
  color: var(--accent-emerald);
  background: var(--accent-emerald-glow);
  border-color: rgba(16, 185, 129, 0.2);
}

/* --- HERO SECTION --- */
.hero {
  padding: 5rem 0 3.5rem 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, var(--text-primary) 30%, #94A3B8 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

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

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-base);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  background: #22D3EE;
  border-color: #22D3EE;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* --- DASHBOARD GRID & CARDS --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header-block {
  margin-bottom: 1.5rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Grid layout assignments */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

@media (max-width: 1024px) {
  .col-8, .col-6, .col-4 {
    grid-column: span 12;
  }
}

/* --- 2.1 LIVE PROVIDER TTFT MATRIX --- */
.ttft-matrix {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1rem 0;
}

.ttft-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ttft-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.provider-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.provider-dot.openai { background: #10B981; }
.provider-dot.anthropic { background: #F59E0B; }
.provider-dot.deepseek { background: #3B82F6; }
.provider-dot.groq { background: #EC4899; }

.ttft-metrics {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.metric-upstream { color: var(--text-secondary); }
.metric-proxy { color: var(--accent-cyan); font-weight: 700; }

.bar-container {
  height: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
}

.bar-segment {
  height: 100%;
  transition: width var(--transition-slow);
}

.bar-segment.upstream {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.55));
  border-right: 1px solid rgba(139, 92, 246, 0.8);
}

.bar-segment.proxy {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.7), rgba(34, 211, 238, 0.9));
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  position: relative;
}

/* TTFT Legend */
.ttft-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.8rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-box.upstream {
  background: var(--accent-cyber);
}

.legend-box.proxy {
  background: var(--accent-cyan);
}

/* --- 2.2 INTERACTIVE MINIFICATION SIMULATOR --- */
.minifier-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1rem 0;
}

.preset-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.preset-selector span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn.active, .preset-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.panel-editor-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.panel-label span.lang {
  color: var(--text-muted);
}

.editor-wrapper {
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 250px;
  background: #05070B;
}

.editor-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.editor-textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  resize: none;
  outline: none;
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 1rem;
  line-height: 1.5;
  white-space: pre;
  overflow: auto;
}

.editor-textarea.output-field {
  background: rgba(5, 7, 11, 0.5);
  color: var(--accent-emerald);
}

.minifier-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .minifier-metrics-row {
    grid-template-columns: 1fr;
  }
}

.minifier-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.minifier-metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.minifier-metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.minifier-metric-value.highlight {
  color: var(--accent-emerald);
}

.minifier-metric-delta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- 2.3 CACHE MATCH PROBABILITY GAUGE --- */
.cache-gauge-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .cache-gauge-container {
    flex-direction: column;
    gap: 2rem;
  }
}

.radial-gauge-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 14;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440; /* Updated via JS */
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-percentage {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.gauge-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

.cache-timeline-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prompt-timeline-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.prompt-timeline-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prompt-layer {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.prompt-layer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
}

.layer-type {
  font-weight: 700;
  margin-right: 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.layer-description {
  color: var(--text-secondary);
  flex-grow: 1;
}

.layer-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Layer types styles */
.layer-system::before { background-color: var(--accent-cyan); }
.layer-system .layer-type { color: var(--accent-cyan); }

.layer-history::before { background-color: var(--accent-cyber); }
.layer-history .layer-type { color: var(--accent-cyber); }

.layer-user::before { background-color: var(--accent-gold); }
.layer-user .layer-type { color: var(--accent-gold); }

/* Cached / Uncached status styling */
.status-miss {
  background: var(--accent-ruby-glow);
  color: var(--accent-ruby);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-match {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-neutral {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.cache-action-box {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

/* --- 2.4 MULTI-STEP AGENT LOOP SIMULATOR --- */
.agent-simulator-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1rem 0;
}

.simulator-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--bg-panel);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .simulator-controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .simulator-controls {
    grid-template-columns: 1fr;
  }
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.control-input {
  background: rgba(5, 7, 11, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.control-input:focus {
  border-color: var(--accent-cyan);
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border: 1px solid var(--border-subtle);
  background: #05070B;
  border-radius: 12px;
  padding: 1rem;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-totals {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

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

.total-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.total-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.total-value.direct { color: var(--accent-cyber); }
.total-value.proxy { color: var(--accent-cyan); }
.total-value.delta { color: var(--accent-emerald); }

/* --- 3. AUTOMATED PUBLISHING LOOP ARCHITECTURE --- */
.arch-flow-card {
  margin-top: 1rem;
}

.arch-flow-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

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

.flow-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-normal);
}

.flow-step:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.02);
}

.flow-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

.flow-step:hover .flow-icon-circle {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.flow-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Horizontal connecting arrows */
.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  pointer-events: none;
}

@media (max-width: 768px) {
  .flow-step:not(:last-child)::after {
    content: '↓';
    right: auto;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

.arch-link-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.arch-github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.arch-github-link:hover {
  color: #22D3EE;
  text-decoration: underline;
}

/* --- 5. VISUAL CONVERSION FUNNEL ("THE HOOK") --- */
.funnel-card {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent 60%), var(--bg-surface);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.05);
}

.funnel-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
}

.code-funnel-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.funnel-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.funnel-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.funnel-tab-btn.active, .funnel-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.funnel-tab-btn.active {
  color: var(--accent-cyan);
}

.funnel-code-terminal {
  background: #05070B;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.terminal-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.terminal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #E2E8F0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  height: 140px;
  overflow: auto;
}

.keyword-cyan { color: #22D3EE; }
.keyword-purple { color: #C084FC; }
.keyword-green { color: #34D399; }
.keyword-gray { color: #64748B; }

/* Conversion parameters selector */
.conversion-params-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  background: var(--bg-panel);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.param-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.param-input-group label {
  color: var(--text-secondary);
  font-weight: 500;
}

.param-input-group input {
  background: rgba(5, 7, 11, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

.param-input-group input:focus {
  border-color: var(--accent-cyan);
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
