/* Orchestrator + pillar-flow visuals — lifted from projects/E5/landing, Playfair swapped to Montserrat */

/* Color aliases the E5 diagram expects (mapped onto the Sign & Social palette) */
:root {
  --t-light:   #ffffff;
  --t-light-2: #cbd5e1;
  --green:     var(--teal-500);
  --blue:      var(--teal-400);
  --violet:    var(--gold-300);
  --alert:     var(--danger);
}

.stage-wrap { padding: 32px 24px 64px; }

.stage {
  max-width: 1200px; margin: 0 auto;
  background: var(--ink);
  color: var(--t-light);
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(11,15,26,0.35);
}

.stage::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(249,171,29,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(38,173,141,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(75,196,168,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.stage-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 90%);
  pointer-events: none;
}

.stage-title { position: relative; text-align: center; margin-bottom: 32px; }

.stage-title .kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 8px;
}

.stage-title h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15; letter-spacing: -0.015em;
}

.stage-title h2 em { color: var(--accent-lt); font-style: italic; }

.diagram {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr 210px;
  gap: 20px;
  align-items: stretch;
}

  .diagram { grid-template-columns: 1fr; gap: 32px; }

.rail {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
}

.rail-head { flex-shrink: 0; }

.rail-chips {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
  justify-content: center;
}

.rail-head {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-lt);
  padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px dashed rgba(249,171,29,0.3);
  text-align: center;
}

.chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex; align-items: center; gap: 9px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
}

.chip:hover {
  border-color: rgba(249,171,29,0.45);
  background: rgba(249,171,29,0.08);
  transform: translateX(2px);
}

.rail.right .chip:hover { transform: translateX(-2px); }

.chip-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--t-light);
}

.chip-body { flex: 1; min-width: 0; }

.chip-label {
  font-size: 13px; font-weight: 600; color: var(--t-light); line-height: 1.15;
}

.chip-sub {
  font-size: 10px; color: var(--t-light-2);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 2px;
}

.vault-col {
  position: relative;
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.vault {
  position: relative;
  background:
    linear-gradient(180deg, rgba(249,171,29,0.06) 0%, transparent 40%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(249,171,29,0.35);
  border-radius: 20px;
  padding: 22px 20px 24px;
  box-shadow:
    inset 0 0 0 1px rgba(249,171,29,0.08),
    0 0 60px -10px rgba(249,171,29,0.22);
  overflow: hidden;
}

.vault::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(249,171,29,0.16) 0%, transparent 50%);
  pointer-events: none;
}

.vault-head {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; margin-bottom: 14px;
}

.vault-ring {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-lt);
}

.vault-ring .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(38,173,141,0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(38,173,141,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(38,173,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(38,173,141,0); }
}

.vault-tag { font-size: 10px; color: var(--t-light-2); font-weight: 500; letter-spacing: 0.08em; }

.vault-center {
  text-align: center;
  padding: 18px 0 16px;
  position: relative;
}

.vault-center h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400; font-size: 1.9rem;
  color: var(--t-light);
  line-height: 1.1;
  margin-bottom: 6px; letter-spacing: -0.015em;
}

.vault-center h3 em { color: var(--accent-lt); font-style: italic; }

.vault-center p {
  font-size: 13px; color: var(--t-light-2);
  max-width: 520px; margin: 0 auto; line-height: 1.5;
  text-wrap: balance;
}

.router {
  position: relative;
  margin: 18px auto 22px;
  width: 88px; height: 88px;
}

.router-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(249,171,29,0.4);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

.router-ring:nth-child(2) { animation-delay: -1s; inset: 10px; opacity: 0.6; }

.router-ring:nth-child(3) { animation-delay: -2s; inset: 20px; opacity: 0.3; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); }
}

.router-core {
  position: absolute; inset: 28px;
  background: radial-gradient(circle, var(--accent-lt) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  box-shadow: 0 0 30px rgba(249,171,29,0.5);
}

.llm-label {
  font-size: 10px; font-weight: 700;
  color: var(--t-light-2);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; margin-bottom: 12px;
  position: relative;
}

.llm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 7px; position: relative;
}

.llm {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 9px 7px;
  text-align: center;
  font-size: 11px; font-weight: 600;
  color: var(--t-light);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}

.llm:hover {
  transform: translateY(-2px);
  border-color: rgba(249,171,29,0.4);
  background: rgba(249,171,29,0.08);
}

.llm-logo {
  width: 18px; height: 18px;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

.llm.gpt .llm-logo,
.llm.manus .llm-logo {
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.llm-logo-wrap {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-bottom: 4px;
}

.llm-sub { font-size: 9px; color: var(--t-light-2); font-weight: 500; letter-spacing: 0.04em; }

.llm.local {
  border-color: rgba(38,173,141,0.35);
  background: rgba(38,173,141,0.05);
}

.llm.local .llm-sub { color: var(--green); }

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.outputs-band {
  position: relative;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.12);
}

.outputs-head {
  text-align: center;
  margin-bottom: 10px;
}

.outputs-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

.outputs {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
}

  .outputs { grid-template-columns: repeat(2, 1fr); }

.out {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 11px 9px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.out-ico {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(38,173,141,0.12); color: var(--green);
  display: grid; place-items: center;
  margin: 0 auto 6px;
}

.out-label { font-size: 11px; font-weight: 600; color: var(--t-light); line-height: 1.2; }

.out-sub { font-size: 9px; color: var(--t-light-2); margin-top: 2px; letter-spacing: 0.04em; }

  .stage { padding: 36px 20px; border-radius: 20px; }

  .vault { padding: 20px 16px; }

  .router { width: 72px; height: 72px; }

  .llm-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .diagram { grid-template-columns: 1fr; gap: 32px; }
}
