/* ==========================================================================
   Page: Ecosystem & Architecture Topology (Authentic Neo-Brutalist Edition)
   Pixel-Perfect AI Agent Orchestration Hero Canvas + 6-Stage Loop Pipeline
   Hard Offset Shadows (4px 4px 0px) • 2.5px Solid Borders • Zero Emojis
   ========================================================================== */

/* ══════════════════════════════════════════════════════════
   0. PIXEL-PERFECT HERO: AI AGENT ORCHESTRATION STAGE
   ══════════════════════════════════════════════════════════ */
.orch-hero-section {
  padding: 40px 0 28px;
  position: relative;
}

.orch-hero-container {
  max-width: 1280px;
  margin: 0 auto;
}

.orch-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
}

@media (max-width: 991px) {
  .orch-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.orch-headline-col {
  text-align: start;
}

.orch-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D9F99D;
  color: #14532D;
  border: 2px solid #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 2.5px 2.5px 0px #000;
  margin-bottom: 16px;
}

.orch-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.orch-title-accent {
  display: block;
}

.orch-sub-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.orch-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-orch-lime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  background: #D9F99D;
  color: #000;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0px #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-orch-lime:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
}

.btn-orch-lime:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000;
}

.btn-orch-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border: 2.5px solid #000;
  box-shadow: 4px 4px 0px #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-orch-white:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000;
}

/* --------------------------------------------------------------------------
   Visual Stage: High-Precision Neo-Brutalist Orchestration Console
   -------------------------------------------------------------------------- */
.orch-visual-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin-inline-start: auto;
  width: 100%;
}

@media (max-width: 991px) {
  .orch-visual-stage {
    margin-inline-start: 0;
    max-width: 100%;
  }
}

/* 1. Prompt Box */
.orch-prompt-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 3.5px 3.5px 0px var(--border-color);
  text-align: start;
}

.prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.prompt-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #D4FF00;
  color: #050811;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1.5px solid #000;
  box-shadow: 1.5px 1.5px 0px #000;
}

.prompt-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
}

.prompt-card-body code {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-send-btn {
  background: #D4FF00;
  color: #050811;
  border: 1.5px solid #000;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #000;
  transition: transform var(--t-speed) var(--t-ease);
}

.prompt-send-btn:hover {
  transform: translate(-1px, -1px);
}

/* 2. Telemetry Live Card */
.orch-telemetry-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 3.5px 3.5px 0px var(--border-color);
  text-align: start;
}

.telem-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 12px;
}

.telem-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telem-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s infinite ease-in-out;
}

.telem-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
}

.telem-bars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.telem-row {
  display: grid;
  grid-template-columns: 80px 65px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.telem-lbl {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
}

.telem-ms {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan);
}

.telem-meter-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.telem-meter-fill {
  height: 100%;
  border-radius: 2px;
}

.meter-fill-lime { width: 88%; background: #D4FF00; }
.meter-fill-cyan { width: 68%; background: var(--accent-cyan); }
.meter-fill-purple { width: 45%; background: var(--accent-purple); }
.meter-fill-emerald { width: 30%; background: var(--accent-emerald); }

.telem-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1.5px solid var(--border-color);
  font-size: 0.76rem;
}

/* 3. Context Pack Card */
.orch-context-pack-card {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 3.5px 3.5px 0px var(--border-color);
  text-align: start;
}

.ctx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-color);
}

.ctx-card-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctx-items-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 480px) {
  .ctx-items-list {
    grid-template-columns: 1fr;
  }
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
}

.ctx-item svg {
  flex-shrink: 0;
}

.geo-diamond-cyan {
  position: absolute;
  left: -10px;
  width: 16px;
  height: 16px;
  background: #06B6D4;
  border: 2px solid #000;
  transform: rotate(45deg);
  box-shadow: 2px 2px 0px #000;
}

.geo-sphere-green {
  position: absolute;
  bottom: 15px;
  right: 25px;
  width: 14px;
  height: 14px;
  background: #10B981;
  border: 2px solid #000;
  border-radius: 50%;
  box-shadow: 1.5px 1.5px 0px #000;
}

/* Right Widgets Column */
.orch-right-widgets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: start;
}

.orch-memory-os-tag {
  background: var(--bg-surface);
  border: 2px solid #000;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 3px 3px 0px #000;
  font-family: var(--font-mono);
}

.os-tag-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.os-tag-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--text-primary);
}

.os-tag-text small {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.orch-telemetry-card {
  background: var(--bg-surface);
  border: 2.5px solid #000;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0px #000;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.telem-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 6px;
}

.telem-dot-green {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
}

.telem-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.telem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.telem-lbl {
  color: var(--text-secondary);
  font-weight: 700;
  width: 55px;
}

.telem-ms {
  font-weight: 800;
  color: var(--text-primary);
}

.telem-meter {
  display: inline-block;
  width: 48px;
  height: 8px;
  background: #E2E8F0;
  border: 1px solid #000;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.telem-meter::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  background: #10B981;
}

.meter-4::after { width: 55%; }
.meter-5::after { width: 70%; }
.meter-6::after { width: 85%; }
.meter-7::after { width: 95%; }

.telem-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid var(--border-color);
  padding-top: 6px;
  font-weight: 800;
}

.telem-healthy-badge {
  background: #D1FAE5;
  color: #065F46;
  border: 1.5px solid #000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 900;
}

.orch-context-pack-card {
  background: var(--bg-surface);
  border: 2.5px solid #000;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 4px 4px 0px #000;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.ctx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 6px;
}

.ctx-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 700;
}


/* ══════════════════════════════════════════════════════════
   THE LOOP PIPELINE CANVAS (4 ISOMETRIC NEO-BRUTALIST STAGES)
   ══════════════════════════════════════════════════════════ */
.orch-loop-pipeline {
  background: var(--bg-surface);
  border: 3px solid #000;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 6px 6px 0px #000;
  margin-bottom: 28px;
}

.loop-pipeline-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.loop-super-tag {
  font-family: var(--font-heading), var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: normal;
  background: var(--bg-surface-elevated);
  border: 1.5px solid #000;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 2px 2px 0px #000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.floating-tab-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-heading), var(--font-sans);
  font-size: 0.78rem;
}

.tab-pill-active {
  background: #27272A;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 800;
  color: #D9F99D;
}

.tab-pill {
  padding: 3px 8px;
  color: #A1A1AA;
  font-weight: 600;
}

.tab-spec-info {
  margin-inline-start: 8px;
  color: #71717A;
  border-inline-start: 1px solid #3F3F46;
  padding-inline-start: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.loop-cards-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 150px;
  align-items: stretch;
  gap: 12px;
}

@media (max-width: 1024px) {
  .loop-cards-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .loop-cards-track {
    grid-template-columns: 1fr;
  }
}

.loop-step-card {
  background: var(--bg-surface);
  border: 2.5px solid #000;
  border-radius: 8px;
  padding: 16px 14px;
  box-shadow: 4px 4px 0px #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
  text-align: start;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.loop-step-card:hover {
  transform: translate(-2.5px, -2.5px);
  box-shadow: 6px 6px 0px #000;
}

.step-card-roof {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 6px;
  border-radius: 5px 5px 0 0;
}

.bar-lime   { background: #D9F99D; }
.bar-blue   { background: #38BDF8; }
.bar-purple { background: #C084FC; }
.bar-cyan   { background: #22D3EE; }
.bar-orange { background: #FB923C; }
.bar-green  { background: #4ADE80; }

.step-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.step-idx-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
}

.step-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: normal;
}

.step-summary {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 10px 0;
  letter-spacing: normal;
}

.step-center-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: var(--text-primary);
}

.step-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading), var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  letter-spacing: normal;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.led-green { background: #10B981; box-shadow: 0 0 4px #10B981; }
.led-blue  { background: #0284C7; box-shadow: 0 0 4px #0284C7; }

/* End Node: Memory Updated */
.step-memory-updated {
  background: #F4F4F5;
  border: 2.5px solid #000;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .step-memory-updated {
  background: #18181B;
}

.mem-update-icon {
  color: var(--text-primary);
  margin-top: 4px;
}

.mem-update-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 6px 0 2px;
  color: var(--text-primary);
  letter-spacing: normal;
}

.mem-update-sub {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: normal;
}

.mem-progress-bar {
  width: 100%;
  height: 6px;
  background: #E4E4E7;
  border: 1px solid #000;
  border-radius: 3px;
  overflow: hidden;
}

.mem-progress-fill {
  width: 100%;
  height: 100%;
  background: #10B981;
}


/* ══════════════════════════════════════════════════════════
   BOTTOM VALUE STRIP (BUILT FOR DEVELOPERS)
   ══════════════════════════════════════════════════════════ */
.orch-bottom-strip {
  background: #000;
  color: #fff;
  border: 2.5px solid #000;
  border-radius: 8px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 4px 4px 0px var(--border-color);
}

.strip-left-dev {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
}

.dev-badge-icon {
  width: 34px;
  height: 34px;
  background: #18181B;
  border: 1.5px solid #3F3F46;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-text-wrap strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: normal;
}

.dev-text-wrap small {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #A1A1AA;
  letter-spacing: normal;
}

.strip-middle-pillars {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading), var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: normal;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pillar-divider {
  color: #3F3F46;
}

.strip-right-tech {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slanted-lime-pill {
  background: #D9F99D;
  color: #000;
  font-family: var(--font-heading), var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 6px 14px;
  border: 1.5px solid #000;
  transform: skewX(-8deg);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: normal;
}

[dir="rtl"] .slanted-lime-pill {
  transform: skewX(8deg);
}

.hazard-stripes-box {
  width: 24px;
  height: 24px;
  background: repeating-linear-gradient(45deg, #000, #000 4px, #D9F99D 4px, #D9F99D 8px);
  border: 1.5px solid #3F3F46;
  border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════
   1. 3-STEP INFOGRAPHIC VALUE CHAIN (Neo-Brutalist Edition)
   ══════════════════════════════════════════════════════════ */
.infographic-super-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.highlight-pen {
  background: #FDE047;
  color: #1C1917;
  padding: 4px 16px;
  border-radius: 4px;
  border: 2px solid #1C1917;
  display: inline-block;
  transform: rotate(-1deg);
  box-shadow: 3px 3px 0px #1C1917;
}

.sparkle-svg {
  color: #F59E0B;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.85) rotate(0deg); opacity: 0.7; }
  100% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

.steps-flow-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
}

.workflow-card {
  background: var(--bg-surface);
  border: 2.5px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 5px 5px 0px var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 22px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--border-color);
}

[data-theme="dark"] .workflow-card {
  background: #0D121F;
  border-color: #2D3A54;
  box-shadow: 5px 5px 0px #141C2E;
}

[data-theme="dark"] .workflow-card:hover {
  box-shadow: 8px 8px 0px #00F0FF;
  border-color: #00F0FF;
}

.card-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #F59E0B;
  color: #1C1917;
  border: 2px solid #1C1917;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 0px #1C1917;
}

.workflow-card-body {
  flex: 1;
  text-align: start;
}

.workflow-step-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-main);
}

.workflow-step-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.brand-badges-row,
.llm-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 2px 2px 0px var(--border-color);
}

.llm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  box-shadow: 2px 2px 0px var(--border-color);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid #1C1917;
}

.dot-claude { background: #D97706; }
.dot-openai { background: #10B981; }
.dot-gemini { background: #38BDF8; }
.dot-deepseek { background: #6366F1; }
.dot-grok { background: #EC4899; }

.curved-connector {
  display: flex;
  justify-content: flex-end;
  padding-inline-end: 40px;
  color: #F59E0B;
  margin: -8px 0;
}

.connector-reverse {
  justify-content: flex-start;
  padding-inline-start: 40px;
  padding-inline-end: 0;
}

.node-graph-showcase {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 3px 3px 0px var(--border-color);
}

[data-theme="dark"] .graph-svg-canvas line {
  stroke: #334155;
}

.trust-yellow-banner {
  margin-top: 36px;
  background: #FDE047;
  color: #1C1917;
  border: 2.5px solid #1C1917;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 900;
  padding: 14px 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 5px 5px 0px #1C1917;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════
   2. AGENT HARNESS & MCP GATEWAY STACK (Neo-Brutalist)
   ══════════════════════════════════════════════════════════ */
.harness-stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.stack-tier-block {
  background: var(--bg-surface);
  border: 2.5px solid var(--border-color);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 4px 4px 0px var(--border-color);
}

.tier-agent {
  border-color: #0284C7;
  background: rgba(56, 189, 248, 0.05);
}

.tier-harness {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.05);
}

.tier-gateway-container {
  border-color: #7C3AED;
  background: rgba(139, 92, 246, 0.04);
  padding: 24px 22px;
}

.tier-servers-container {
  border-color: #0284C7;
  background: rgba(56, 189, 248, 0.04);
}

[data-theme="dark"] .stack-tier-block {
  background: #0E1321;
}

.tier-inner-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.tier-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px currentColor;
}

.icon-blue { background: rgba(56, 189, 248, 0.15); color: #0284C7; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #059669; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #7C3AED; }

[data-theme="dark"] .icon-blue { color: #38BDF8; }
[data-theme="dark"] .icon-green { color: #10B981; }
[data-theme="dark"] .icon-purple { color: #A78BFA; }

.tier-title-group {
  text-align: start;
}

.tier-main-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tier-sub-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.stack-connector-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-weight: 900;
}

.gateway-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.gateway-title-flex {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.gateway-heading-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: #7C3AED;
}

[data-theme="dark"] .gateway-heading-text {
  color: #A78BFA;
}

.gateway-eight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .gateway-eight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-tile-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  box-shadow: 3px 3px 0px var(--border-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-tile-card:hover {
  transform: translate(-2px, -2px);
  border-color: #7C3AED;
  box-shadow: 5px 5px 0px #7C3AED;
}

.service-tile-icon {
  color: #7C3AED;
  margin-bottom: 2px;
}

[data-theme="dark"] .service-tile-icon {
  color: #A78BFA;
}

.service-tile-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.service-tile-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.servers-rack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .servers-rack-grid {
    grid-template-columns: 1fr;
  }
}

.server-rack-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 14px;
  text-align: start;
  box-shadow: 3px 3px 0px var(--border-color);
}

.rack-top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.status-indicator-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.rack-name {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
}

.rack-spec {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════════════════════
   3. AI BRAIN & SOVEREIGN VAULT CONNECTORS (Neo-Brutalist)
   ══════════════════════════════════════════════════════════ */
.brain-mesh-canvas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--bg-surface);
  border: 2.5px solid var(--border-color);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 5px 5px 0px var(--border-color);
  margin-top: 32px;
}

@media (max-width: 800px) {
  .brain-mesh-canvas {
    flex-direction: column;
    text-align: center;
  }
}

[data-theme="dark"] .brain-mesh-canvas {
  background: #090E1A;
  border-color: #2D3A54;
}

.brain-circuit-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brain-circle-glow {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 2.5px solid #00F0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px #00F0FF;
}

.hub-title-tag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
}

.mcp-central-pillar {
  background: #7C3AED;
  color: #FFFFFF;
  border: 2.5px solid #1C1917;
  padding: 36px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 3px;
  box-shadow: 4px 4px 0px #1C1917;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .mcp-central-pillar {
    writing-mode: horizontal-tb;
    width: 100%;
    padding: 12px 24px;
  }
}

.storage-modules-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.storage-capsule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: var(--bg-surface-elevated);
  box-shadow: 3px 3px 0px var(--border-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.storage-capsule:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border-color);
}

[dir="ltr"] .storage-capsule:hover {
  transform: translate(2px, -2px);
}

.capsule-icon {
  flex-shrink: 0;
}

.capsule-content {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.capsule-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-main);
}

.capsule-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.capsule-db {
  border-inline-start: 6px solid #F59E0B;
}
.capsule-db .capsule-icon { color: #D97706; }

.capsule-cloud {
  border-inline-start: 6px solid #0284C7;
}
.capsule-cloud .capsule-icon { color: #0284C7; }

.capsule-git {
  border-inline-start: 6px solid #10B981;
}
.capsule-git .capsule-icon { color: #059669; }


/* ══════════════════════════════════════════════════════════
   4. FRONTEND TRIAD & LIFECYCLES (Neo-Brutalist Card Grid)
   ══════════════════════════════════════════════════════════ */
.three-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

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

@media (max-width: 600px) {
  .three-modes-grid {
    grid-template-columns: 1fr;
  }
}

.triad-feature-card {
  background: var(--bg-surface);
  border: 2.5px solid var(--border-color);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-align: start;
  position: relative;
  box-shadow: 5px 5px 0px var(--border-color);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.triad-feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--border-color);
}

[data-theme="dark"] .triad-feature-card {
  background: #0E1322;
  border-color: #2D3A54;
  box-shadow: 5px 5px 0px #141C2E;
}

[data-theme="dark"] .triad-feature-card:hover {
  box-shadow: 8px 8px 0px #00F0FF;
}

.card-cinematic:hover, .lifecycle-card-convert:hover {
  border-color: #F59E0B;
}

.card-design:hover, .lifecycle-card-init:hover {
  border-color: #00F0FF;
}

.card-styler:hover, .lifecycle-card-improve:hover {
  border-color: #10B981;
}

.triad-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.triad-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px currentColor;
}

.icon-amber { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.icon-cyan { background: rgba(2, 132, 199, 0.12); color: #0284C7; }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }

[data-theme="dark"] .icon-amber { color: #F59E0B; }
[data-theme="dark"] .icon-cyan { color: #38BDF8; }
[data-theme="dark"] .icon-emerald { color: #10B981; }

.mode-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 4px;
  border: 2px solid currentColor;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0px currentColor;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.badge-cyan {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

[data-theme="dark"] .badge-amber { color: #F59E0B; }
[data-theme="dark"] .badge-cyan { color: #38BDF8; }
[data-theme="dark"] .badge-emerald { color: #10B981; }

.triad-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.triad-card-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.triad-role-footer {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  padding-top: 14px;
  border-top: 2px dashed var(--border-color);
  margin-top: auto;
}

.footer-amber { color: #D97706; }
.footer-cyan { color: #0284C7; }
.footer-emerald { color: #059669; }

[data-theme="dark"] .footer-amber { color: #F59E0B; }
[data-theme="dark"] .footer-cyan { color: #38BDF8; }
[data-theme="dark"] .footer-emerald { color: #10B981; }

/* ==========================================================================
   Ecosystem Motion & 3D Interactive System (Archetypes M1-M10 & Invariants)
   ========================================================================== */

/* GPU Layer Stabilization */
.orch-hero-section,
.orch-visual-stage,
[data-tilt-card],
.workflow-card,
.service-tile-card,
.triad-feature-card,
.loop-step-card,
.stack-tier-block,
.storage-capsule,
.server-rack-box {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: auto;
}

/* Whitelist transitions - NEVER use transition: transform or transition: all on tilt targets */
[data-tilt-card],
.workflow-card,
.service-tile-card,
.triad-feature-card,
.loop-step-card,
.storage-capsule,
.server-rack-box {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  transform: translateZ(0);
}

/* Specular Radial Spotlight Layer */
[data-spotlight] {
  position: relative;
  overflow: hidden;
}

[data-spotlight]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

[data-spotlight]:hover::after {
  opacity: 1;
}

/* Flow Connector Animated SVG */
.stack-connector-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  position: relative;
}

.flow-protocol-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
}

.flow-connector-svg {
  width: 100%;
  max-width: 400px;
  height: 32px;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

.flow-path-bg {
  stroke: var(--border-color);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  fill: none;
}

.flow-path-active {
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
}

.flow-path-active.flow-cyan {
  stroke: #00F0FF;
}

.flow-path-active.flow-emerald {
  stroke: #10B981;
}

.flow-path-active.flow-purple {
  stroke: #8B5CF6;
}

/* Word Wrap for M1 Text Split (Ligature-Safe) */
.split-word-wrap {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
}

