:root {
  --bg-void: #000000;
  --bg-canvas: #03060b;
  --bg-surface: #070c14;
  --bg-surface-elevated: #0b121e;
  --bg-input: #050911;
  --border-subtle: #142033;
  --border-strong: #1f314d;
  --border-accent: rgba(56, 189, 248, 0.42);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-cyan-strong: #0ea5e9;
  --accent-cyan-soft: rgba(56, 189, 248, 0.12);
  --accent-emerald: #34d399;
  --accent-emerald-soft: rgba(52, 211, 153, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-soft: rgba(251, 191, 36, 0.12);
  --danger-text: #fda4af;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --danger-border: rgba(244, 63, 94, 0.32);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-void);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 58% 210px at 50% -70px, rgba(14, 165, 233, 0.12), transparent 100%),
    linear-gradient(to bottom, #000000 0%, #000000 1240px, #03060b 1720px, #03060b 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* Sticky Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 6, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 32, 51, 0.85);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0b1526 0%, #050911 100%);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(14, 165, 233, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-cyan);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

.domain-suffix {
  color: var(--accent-cyan);
  font-weight: 700;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.brand-sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav-chip:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.52);
  transform: translateY(-1px);
}

.live-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  flex-shrink: 0;
}

.header-cta {
  margin-left: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #020617;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.4);
}

/* Hero Section */
.hero-section {
  padding-top: 42px;
  padding-bottom: 36px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.hero-heading {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-line-main {
  display: block;
  font-size: clamp(23px, 3.25vw, 39px);
  line-height: 1.15;
}

.hero-line-pillars {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.38vw, 16.5px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.38;
  color: #cbd5e1;
}

.hero-line-accent {
  display: block;
  font-size: clamp(22px, 3.05vw, 36px);
  line-height: 1.15;
}

.hero-gradient-text {
  background: linear-gradient(95deg, #f8fafc 0%, #7dd3fc 52%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  color: #020617;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.42);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(11, 18, 30, 0.85);
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: rgba(15, 25, 42, 0.95);
  transform: translateY(-1px);
}

/* Borderless Ambient Hero Crew Backdrop */
.hero-stage {
  position: relative;
  z-index: 1;
  margin: -12px auto -18px;
  max-width: 1100px;
  background: transparent;
  border: none;
  pointer-events: none;
  user-select: none;
}

.hero-stage-frame {
  position: relative;
  background: #000000;
}

.hero-stage-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(to bottom, #000000 0%, rgba(0, 0, 0, 0.52) 5%, rgba(0, 0, 0, 0) 13%),
    linear-gradient(to top, #000000 0%, #000000 5.5%, rgba(0, 0, 0, 0.9) 11%, rgba(0, 0, 0, 0.4) 18%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(to right, #000000 0%, #000000 2.5%, rgba(0, 0, 0, 0.76) 7%, rgba(0, 0, 0, 0) 13%),
    linear-gradient(to left, #000000 0%, #000000 2.5%, rgba(0, 0, 0, 0.76) 7%, rgba(0, 0, 0, 0) 13%);
}

.hero-crew-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 893;
  object-fit: contain;
  margin: 0 auto;
  background: #000000;
  filter: brightness(0.7) saturate(0.84) contrast(0.96);
  opacity: 0.85;
}

/* Metrics / Guarantees Strip */
.metrics-strip {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.metric-value {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.metric-label {
  margin-top: 6px;
  font-size: 12.8px;
  line-height: 1.48;
  color: var(--text-secondary);
}

/* Architecture + Live JSON Contract Section */
.section-block {
  margin-top: 72px;
  scroll-margin-top: 84px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 10px 0 0;
  max-width: 680px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.48;
  color: #dbe7f5;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 15px;
}

.arch-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.14fr;
  gap: 20px;
  align-items: stretch;
}

.layers-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.layer-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.16s ease;
}

.layer-card:hover {
  border-color: var(--border-strong);
}

.layer-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.layer-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.layer-pill.control {
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.layer-pill.primitive {
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.layer-pill.pipeline {
  color: var(--accent-amber);
  background: var(--accent-amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.layer-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.layer-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.layer-body {
  margin: 0;
  font-size: 13.8px;
  color: var(--text-secondary);
  line-height: 1.56;
}

/* Interactive Code / Payload Preview */
.terminal-card {
  border-radius: var(--radius-lg);
  background: #04070d;
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 14px;
  background: #080e19;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.terminal-tab {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.terminal-tab.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  border-color: rgba(56, 189, 248, 0.3);
}

.terminal-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--accent-emerald);
}

.terminal-body {
  padding: 18px 20px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.2px;
  line-height: 1.62;
  color: #cbd5e1;
  overflow-x: auto;
  flex: 1;
}

.terminal-footer {
  padding: 10px 16px;
  background: #070c15;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10.8px;
  color: var(--text-muted);
}

.terminal-footer > span {
  white-space: nowrap;
}

/* Interactive Drag-and-Drop Squad Playground (3-Tier Layout) */
.playground-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 11px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.playground-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-sep {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 2px;
}

.preset-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 2px;
}

.preset-chip {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #050911;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip.preset-empty {
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.36);
  color: #bae6fd;
}

.preset-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

.preset-chip.active {
  color: var(--text-primary);
  border-style: solid;
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.14));
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.18);
}

.preset-clear-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-clear-btn:hover {
  color: var(--danger-text);
  border-color: var(--danger-border);
  background: rgba(244, 63, 94, 0.08);
}

.playground-stack {
  --pg-col-height: 720px;
  --pg-body-height: 632px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.playground-main-grid {
  display: grid;
  grid-template-columns: minmax(305px, 0.44fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pg-col {
  height: var(--pg-col-height);
  display: flex;
  flex-direction: column;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  min-width: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pg-col-pool.drag-remove-target {
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
  background: rgba(24, 18, 8, 0.55);
}

.pg-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(20, 32, 51, 0.88);
  flex-shrink: 0;
}

.pg-head-copy {
  min-width: 0;
}

.pg-col-step {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.15;
}

.pg-col-title {
  margin: 2px 0 0;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.pg-col-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pg-col-badge.primitive {
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.pg-col-badge.active-dag {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.42);
}

/* Column 1: Fixed-Height Vertical Strategists & Specialists List (All 11 Fit in 632px) */
.pg-pool-list {
  height: var(--pg-body-height);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.34) transparent;
}

.pg-pool-list::-webkit-scrollbar {
  width: 5px;
}

.pg-pool-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.34);
  border-radius: 999px;
}

.pg-pool-avatar img,
.pg-node-avatar img,
.pg-stack-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.pg-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #050911;
  border: 1px solid var(--border-subtle);
  min-width: 0;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, opacity 0.14s ease;
}

.pg-pool-avatar {
  width: 36px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.pg-pool-avatar img {
  filter: brightness(0.84) saturate(0.94);
  opacity: 0.95;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.pg-mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-mini-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.pg-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pg-code.strategist {
  color: var(--accent-amber);
  background: rgba(38, 26, 6, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.pg-code.specialist,
.pg-code.primitive {
  color: var(--accent-emerald);
  background: rgba(6, 32, 26, 0.84);
  border: 1px solid rgba(52, 211, 153, 0.32);
}

.pg-route {
  font-family: var(--font-mono);
  font-size: 10.4px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-mini-role {
  font-size: 12.2px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pg-pool-card {
  cursor: grab;
  user-select: none;
}

.pg-pool-card:active {
  cursor: grabbing;
}

.pg-pool-card:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: #08101c;
}

.pg-pool-card.is-strategist {
  border-color: rgba(251, 191, 36, 0.22);
  background: linear-gradient(135deg, rgba(24, 17, 6, 0.45), #050911 72%);
}

.pg-pool-card.is-strategist:hover:not(.is-single-used) {
  border-color: rgba(251, 191, 36, 0.56);
  background: linear-gradient(135deg, rgba(36, 25, 8, 0.62), #08101c 80%);
}

.pg-pool-card.is-single-used {
  cursor: default;
  opacity: 0.72;
  border-color: rgba(251, 191, 36, 0.32);
}

.pg-pool-card:hover .pg-pool-avatar img {
  filter: brightness(0.95) saturate(0.98);
  opacity: 1;
}

.pg-pool-card.is-dragging,
.pg-dag-node.is-dragging {
  opacity: 0.45;
  transform: scale(0.985);
}

.pg-pool-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pg-pool-used-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  flex-shrink: 0;
}

.pg-pool-used-badge.strategist {
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.36);
}

.pg-toggle-btn {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.pg-pool-card:hover .pg-toggle-btn:not(:disabled) {
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.5);
}

.pg-pool-card.is-strategist:hover .pg-toggle-btn:not(:disabled) {
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.55);
}

.pg-toggle-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

/* Column 2: Direct Dynamic Scrollable Chain Dropzone with Role-Scoped Drop Sub-Zones */
.pg-dag-dropzone {
  height: var(--pg-body-height);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 13px;
  border: 1.5px dashed rgba(56, 189, 248, 0.24);
  background:
    repeating-linear-gradient(0deg, rgba(56, 189, 248, 0.025) 0px, rgba(56, 189, 248, 0.025) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.025) 0px, rgba(56, 189, 248, 0.025) 1px, transparent 1px, transparent 26px),
    rgba(3, 7, 14, 0.64);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.38) transparent;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.pg-dag-dropzone::-webkit-scrollbar {
  width: 5px;
}

.pg-dag-dropzone::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.38);
  border-radius: 999px;
}

.pg-dag-dropzone.is-dragging-any {
  border-color: rgba(30, 41, 59, 0.72);
}

.pg-dag-zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  border: 1.5px dashed transparent;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.pg-dag-zone-strategist.is-empty-zone {
  display: none;
}

.pg-dag-dropzone.drag-pool-strategist .pg-dag-zone-strategist.is-empty-zone {
  display: flex;
}

.pg-dag-zone-specialist {
  flex: 1;
}

.pg-dag-slot.is-strat-drop-slot {
  display: none;
}

.pg-dag-dropzone.drag-pool-strategist .pg-dag-slot.is-strat-drop-slot {
  display: flex;
}

.pg-dag-zone.zone-droppable.zone-role-strategist {
  border-color: rgba(251, 191, 36, 0.56);
  background-color: rgba(251, 191, 36, 0.04);
}

.pg-dag-zone.zone-droppable.zone-role-specialist {
  border-color: rgba(52, 211, 153, 0.48);
  background-color: rgba(16, 185, 129, 0.035);
}

.pg-dag-zone.zone-drag-over.zone-role-strategist {
  border-color: var(--accent-amber);
  background-color: rgba(251, 191, 36, 0.09);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.pg-dag-zone.zone-drag-over.zone-role-specialist {
  border-color: var(--accent-emerald);
  background-color: rgba(16, 185, 129, 0.08);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.pg-dag-slot {
  min-width: 0;
  height: 53px;
  min-height: 53px;
  flex-shrink: 0;
  display: flex;
}

.pg-slot-placeholder {
  width: 100%;
  height: 100%;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px dashed rgba(100, 116, 139, 0.36);
  background: rgba(5, 10, 19, 0.48);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.pg-dag-slot.is-strat-drop-slot .pg-slot-placeholder {
  border-color: rgba(251, 191, 36, 0.44);
  background: rgba(24, 17, 6, 0.56);
}

.pg-slot-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(100, 116, 139, 0.22);
  flex-shrink: 0;
}

.pg-dag-slot.is-strat-drop-slot .pg-slot-num {
  font-size: 9.5px;
  color: var(--accent-amber);
  background: rgba(38, 26, 6, 0.82);
  border-color: rgba(251, 191, 36, 0.34);
}

.pg-slot-plus {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px dashed rgba(56, 189, 248, 0.36);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pg-dag-slot.is-strat-drop-slot .pg-slot-plus {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--accent-amber);
}

.pg-slot-label {
  font-family: var(--font-mono);
  font-size: 11.2px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-dag-slot.is-strat-drop-slot .pg-slot-label {
  color: #fde68a;
}

.pg-dag-node {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 12px;
  border-radius: 11px;
  background:
    radial-gradient(circle 120px at 84px 50%, rgba(16, 185, 129, 0.09), transparent 100%),
    linear-gradient(135deg, rgba(12, 22, 37, 0.94), rgba(6, 12, 22, 0.97));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
  cursor: grab;
  user-select: none;
  min-width: 0;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.pg-dag-node:hover {
  border-color: rgba(56, 189, 248, 0.58);
}

.pg-dag-node.is-strategist {
  background:
    radial-gradient(circle 130px at 84px 50%, rgba(251, 191, 36, 0.11), transparent 100%),
    linear-gradient(135deg, rgba(24, 19, 10, 0.94), rgba(8, 12, 21, 0.97));
  border-color: rgba(251, 191, 36, 0.36);
}

.pg-dag-node.is-strategist:hover {
  border-color: rgba(251, 191, 36, 0.64);
}

.pg-dag-slot.slot-drop-target .pg-slot-placeholder,
.pg-dag-slot.slot-drop-target .pg-dag-node {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.14);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.42);
}

.pg-dag-slot.slot-drop-target.slot-role-strategist .pg-slot-placeholder,
.pg-dag-slot.slot-drop-target.slot-role-strategist .pg-dag-node {
  border-color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.15);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.45);
}

.pg-node-step {
  width: 40px;
  padding: 4px 3px;
  border-radius: 7px;
  background: rgba(8, 22, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pg-dag-node.is-strategist .pg-node-step {
  background: rgba(32, 22, 7, 0.85);
  border-color: rgba(251, 191, 36, 0.32);
}

.pg-node-step-lbl {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.pg-node-step-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
}

.pg-dag-node.is-strategist .pg-node-step-num {
  color: var(--accent-amber);
}

.pg-node-avatar {
  width: 41px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.pg-node-avatar img {
  filter: brightness(0.88) saturate(0.96);
}

.pg-node-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-node-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pg-node-route {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 600;
  color: #93c5fd;
  flex-shrink: 0;
}

.pg-node-token {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(6, 32, 26, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 0 6px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-dag-node.is-strategist .pg-node-token {
  color: var(--accent-amber);
  background: rgba(38, 26, 6, 0.78);
  border-color: rgba(251, 191, 36, 0.28);
}

.pg-node-role {
  font-size: 13.4px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-node-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pg-node-grip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -2px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-right: 3px;
}

.pg-node-btn {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.84);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.pg-node-btn:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.pg-node-btn:disabled {
  opacity: 0.26;
  cursor: default;
}

.pg-node-btn.remove:hover {
  color: var(--danger-text);
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

/* Row 2 (Below): Compact Inline "The Composed Squad" (70% Overlapping Stack / 30% Info + CTA) */
.pg-composed-dock {
  width: 100%;
}

.pg-composed-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pg-composed-card.is-empty {
  border-style: dashed;
  border-color: var(--border-strong);
  background: rgba(5, 9, 17, 0.76);
}

.pg-composed-card.is-matched {
  border-color: rgba(52, 211, 153, 0.62);
  background:
    radial-gradient(circle 360px at 86% 24%, rgba(16, 185, 129, 0.13), transparent 100%),
    radial-gradient(circle 340px at 18% 82%, rgba(14, 165, 233, 0.1), transparent 100%),
    #060d18;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(52, 211, 153, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pg-composed-card.is-building {
  border-color: rgba(56, 189, 248, 0.36);
  background:
    radial-gradient(circle 320px at 85% 24%, rgba(14, 165, 233, 0.09), transparent 100%),
    #060b14;
}

.pg-composed-left {
  flex: 0 0 70%;
  max-width: 70%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-composed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pg-composed-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.pg-composed-chain {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-composed-stack {
  display: flex;
  align-items: center;
  padding: 4px 6px 2px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pg-composed-stack::-webkit-scrollbar {
  display: none;
}

.pg-stack-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 20px;
  height: 92px;
  margin: 0 3px;
  flex-shrink: 0;
  user-select: none;
}

.pg-stack-sep-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(251, 191, 36, 0.36), rgba(56, 189, 248, 0.36), transparent);
}

.pg-stack-sep-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #94a3b8;
}

.pg-stack-card {
  width: 130px;
  height: 124px;
  flex-shrink: 0;
  padding: 6px 6px 7px;
  border-radius: 12px;
  background: linear-gradient(165deg, #091526 0%, #030710 100%);
  border: 1px solid rgba(52, 211, 153, 0.42);
  box-shadow:
    -12px 6px 22px rgba(0, 0, 0, 0.86),
    0 4px 12px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.pg-stack-card.is-strategist {
  background: linear-gradient(165deg, #1d1508 0%, #050811 100%);
  border-color: rgba(251, 191, 36, 0.46);
}

.pg-stack-card.is-gateway {
  background: linear-gradient(165deg, #171209 0%, #04070f 100%);
  border: 1px dashed rgba(251, 191, 36, 0.44);
}

.pg-stack-card + .pg-stack-card {
  margin-left: -50px;
}

.pg-stack-card:not(:last-child):not(.is-ghost):not(.is-group-end) .pg-stack-role {
  padding-right: 46px;
}

.pg-stack-card:not(.is-ghost):hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  z-index: 40 !important;
}

.pg-stack-card.is-strategist:hover,
.pg-stack-card.is-gateway:hover {
  border-color: var(--accent-amber);
}

.pg-stack-card:not(.is-ghost):hover .pg-stack-top,
.pg-stack-card:not(.is-ghost):hover .pg-stack-role {
  padding-right: 0;
}

.pg-stack-card.is-ghost {
  border: 1px dashed rgba(100, 116, 139, 0.38);
  background: rgba(5, 10, 19, 0.88);
  align-items: flex-start;
  justify-content: space-between;
  padding: 7px 10px 8px;
  opacity: 0.74;
}

.pg-stack-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
}

.pg-stack-step {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 3.5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pg-stack-step.gateway {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

.pg-stack-top .pg-code {
  font-size: 8px;
  letter-spacing: 0.02em;
  padding: 1px 3.5px;
}

.pg-stack-portrait {
  width: 100%;
  height: 70px;
  border-radius: 8px;
  background:
    radial-gradient(circle 40px at 34% 62%, rgba(56, 189, 248, 0.14), transparent 100%),
    #000000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.pg-stack-card.is-strategist .pg-stack-portrait,
.pg-stack-card.is-gateway .pg-stack-portrait {
  background:
    radial-gradient(circle 42px at 34% 62%, rgba(251, 191, 36, 0.15), transparent 100%),
    #000000;
}

.pg-stack-portrait img {
  filter: brightness(0.9) saturate(0.98);
  object-position: center bottom;
}

.pg-stack-card:not(:last-child):not(.is-ghost):not(.is-group-end):not(:hover) .pg-stack-portrait img {
  object-position: 16% bottom;
}

.pg-stack-role {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pg-stack-ghost-box {
  width: 34px;
  height: 34px;
  margin-left: 22px;
  border-radius: 9px;
  border: 1px dashed rgba(56, 189, 248, 0.34);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg-stack-ghost-lbl {
  font-family: var(--font-mono);
  font-size: 9.8px;
  color: #64748b;
  padding-left: 2px;
}

/* Right 30%: Persistent Info + Enabled/Disabled Request Squad Button */
.pg-composed-right {
  flex: 1 1 30%;
  max-width: 30%;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(56, 189, 248, 0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
}

.pg-matched-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-matched-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: #022c22;
  background: var(--accent-emerald);
}

.pg-matched-route {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.pg-addon-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.36);
}

.pg-status-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
}

.pg-status-chip.standby {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(100, 116, 139, 0.34);
}

.pg-status-chip.building {
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.pg-composed-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
}

.pg-composed-desc {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.42;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pg-suggest-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-suggest-chip {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  background: rgba(6, 32, 26, 0.72);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 10.2px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pg-suggest-chip:hover {
  background: var(--accent-emerald);
  color: #022c22;
}

.pg-composed-cta {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13.2px;
  margin-top: 2px;
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.pg-composed-cta:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(0.25);
  pointer-events: none;
}

.pg-booster-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px 5px 9px;
  border-radius: 9px;
  background: rgba(8, 15, 28, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.pg-booster-callout.for-strategist {
  border-color: rgba(251, 191, 36, 0.26);
}

.pg-booster-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.28);
  flex-shrink: 0;
}

.pg-booster-callout.for-strategist .pg-booster-tag {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.pg-booster-reason {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.4px;
  line-height: 1.3;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-booster-add {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(52, 211, 153, 0.42);
  background: rgba(6, 36, 29, 0.85);
  color: var(--accent-emerald);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.pg-booster-add:hover {
  background: var(--accent-emerald);
  color: #022c22;
}

.pg-booster-add.strategist {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(45, 31, 8, 0.85);
  color: #fcd34d;
}

.pg-booster-add.strategist:hover {
  background: var(--accent-amber);
  color: #1c1204;
}

@media (max-width: 980px) {
  .playground-main-grid {
    grid-template-columns: 1fr;
  }

  .pg-composed-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .pg-composed-left,
  .pg-composed-right {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .pg-composed-right {
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
  }

  .pg-booster-callout {
    flex-wrap: wrap;
  }

  .pg-booster-reason {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .preset-sep {
    display: none;
  }

  .pg-node-token,
  .pg-node-grip {
    display: none;
  }
}

/* 22-Character API Crew Filter & Grid */
.crew-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

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

.filter-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.14);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.filter-btn.active .filter-count {
  background: var(--accent-cyan-soft);
  color: var(--accent-cyan);
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 340px;
}

.search-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.crew-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle 156px at calc(100% - 62px) 68px, #000000 0%, rgba(0, 0, 0, 0) 100%),
    var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.crew-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.52);
}

.crew-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 2px 20px;
}

.crew-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 4px;
}

.card-hud-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-unit-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.card-code-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 5px;
}

.card-code-pill.strategist {
  color: var(--accent-amber);
  background: rgba(38, 26, 6, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.34);
}

.card-code-pill.specialist,
.card-code-pill.primitive {
  color: var(--accent-emerald);
  background: rgba(6, 32, 26, 0.78);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.card-code-pill.squad,
.card-code-pill.pipeline {
  color: var(--accent-cyan);
  background: rgba(8, 28, 48, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.endpoint-route {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: -0.01em;
}

.persona-animal {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.persona-descriptor {
  color: var(--text-secondary);
  font-weight: 600;
}

.crew-portrait-thumb {
  position: relative;
  width: 94px;
  height: 112px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to top, transparent 0%, #000000 14%, #000000 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000000 12%, #000000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to top, transparent 0%, #000000 14%, #000000 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000000 12%, #000000 92%, transparent 100%);
  mask-composite: intersect;
}

.crew-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: brightness(0.62) saturate(0.82) contrast(0.97);
  opacity: 0.82;
  transition: filter 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

.crew-card:hover .crew-portrait-img {
  filter: brightness(0.78) saturate(0.92) contrast(1);
  opacity: 0.94;
  transform: scale(1.03);
}

.crew-card-body {
  padding: 4px 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.api-card-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

.api-card-summary {
  margin: 0 0 14px;
  font-size: 13.4px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.industry-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card-action-link {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 32, 51, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.8px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.card-action-link:hover {
  color: var(--accent-cyan);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

/* Contact Section & Dedicated Contact Page */
.contact-page-main {
  padding-top: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.surface-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.section-heading {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14.2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-group textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.55;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--text-muted);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.status-pill[hidden] {
  display: none;
}

.status-pill.success {
  color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-pill.error {
  color: var(--danger-text);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

.direct-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.pillar-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.email-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.email-address {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.email-address:hover {
  color: var(--accent-cyan);
}

.copy-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.info-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.info-list strong {
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }

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

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

  .brand-sub,
  .header-nav {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row-two {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding: 0 16px 48px;
  }

  .crew-grid,
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  .surface-panel {
    padding: 20px;
  }
}
