/* ==============================================================================
   AXI-SERIAL: AXI-WEB-CSS-BENTO-2026-001
   PROPRIETARY ASSET: AxiNexus MindCore | Director: Mario Valfredi
   ============================================================================== */

/* Pipeline Circuit Flow */
.pipeline-flow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  flex-wrap: wrap;
  gap: 16px;
}

.flow-node {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  backdrop-filter: var(--glass-blur);
  transition: all 0.3s;
}

.flow-node:hover {
  border-color: var(--neon-magenta);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
}

.flow-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-violet-light);
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.flow-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.flow-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flow-subtitle {
  font-size: 0.78rem;
  color: var(--cyan-electric);
  font-family: var(--font-mono);
}

.flow-arrow {
  color: var(--neon-violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.flow-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--neon-violet-light);
  stroke-width: 2.5;
}

/* Bento Grid - Perfectly Symmetrical 3 Panels */
.tri-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.phase-card {
  background: var(--bg-card);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-magenta), var(--cyan-electric));
  opacity: 0;
  transition: opacity 0.3s;
}

.phase-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.25);
}

.phase-card:hover::before {
  opacity: 1;
}

.card-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  color: var(--neon-violet-light);
}

.card-icon-circle svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.6));
}

.phase-num {
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--cyan-electric);
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.phase-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
  line-height: 1.3;
}

.phase-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 28px;
}

.phase-tag-wrapper {
  margin-top: auto;
}

.phase-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--neon-violet-light);
  background: rgba(168, 85, 247, 0.15);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Interactive Terminal Playground */
.terminal-wrapper {
  background: #040409;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.2);
  margin-top: 60px;
  backdrop-filter: var(--glass-blur);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-title svg {
  width: 16px;
  height: 16px;
  stroke: var(--neon-violet-light);
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-select {
  background: rgba(20, 18, 36, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--neon-violet-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.btn-terminal-run {
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-magenta));
  color: #ffffff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-terminal-run svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-terminal-run:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.8);
}

.terminal-body {
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.8;
  color: #cbd5e1;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
}

.term-line {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.term-prompt { color: var(--neon-violet-light); font-weight: 700; }
.term-cuda { color: var(--emerald-neon); }
.term-z3 { color: var(--cyan-electric); font-weight: 700; }
.term-success { color: var(--neon-magenta); font-weight: 700; }
