/* ================================================================
   AI COMMAND CENTER — cyberpunk styling
   ================================================================ */

:root {
  /* base */
  --bg-0: #050508;
  --bg-1: #0a0a14;
  --bg-2: #12121e;
  --bg-card: #15151f;
  --bg-card-hover: #1c1c2a;
  --border: #25253a;
  --border-bright: #3a3a55;
  /* text */
  --text-primary: #e8e8f0;
  --text-secondary: #9b9bb5;
  --text-muted: #5a5a78;
  /* neon */
  --cyan: #00f0ff;
  --magenta: #ff006e;
  --yellow: #fff200;
  --purple: #b14eff;
  --green: #00ff88;
  /* easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--magenta); }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--cyan);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ================================================================
   BACKGROUND LAYERS
   ================================================================ */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: gridShift 40s linear infinite;
}

@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px circle at 20% 10%, rgba(0, 240, 255, 0.08), transparent 40%),
    radial-gradient(700px circle at 85% 30%, rgba(255, 0, 110, 0.06), transparent 45%),
    radial-gradient(600px circle at 50% 80%, rgba(177, 78, 255, 0.05), transparent 40%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.04) 50%);
  background-size: 100% 4px;
  opacity: 0.3;
}

/* ================================================================
   BOOT OVERLAY
   ================================================================ */

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-0);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  transition: opacity .8s var(--ease), visibility .8s;
}

.boot-overlay.done {
  opacity: 0;
  visibility: hidden;
}

.boot-content {
  width: min(580px, 90vw);
  padding: 24px;
}

.boot-line {
  color: var(--cyan);
  font-size: 14px;
  margin: 6px 0;
  opacity: 0;
  animation: bootLine .4s var(--ease) forwards;
}
.boot-line:nth-child(1) { animation-delay: .15s; }
.boot-line:nth-child(2) { animation-delay: .55s; }
.boot-line:nth-child(3) { animation-delay: .95s; }
.boot-line:nth-child(4) { animation-delay: 1.35s; }
.boot-line:nth-child(5) { animation-delay: 1.75s; }
.boot-line.success { color: var(--green); animation-delay: 2.15s; font-weight: 600; }

@keyframes bootLine {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--cyan);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ================================================================
   HEADER
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.logo-mark {
  color: var(--cyan);
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.logo-text { color: var(--text-primary); }
.logo-text .accent { color: var(--magenta); }
.logo.small { font-size: 14px; }
.logo.small .logo-mark { font-size: 16px; }

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
}

.site-nav a:hover {
  color: var(--cyan);
}

.site-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.github-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-primary);
  transition: all .25s var(--ease);
}

.github-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.glitch {
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.glitch.alt {
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch::before { color: var(--magenta); transform: translate(-2px, 0); }
.glitch::after { color: var(--cyan); transform: translate(2px, 0); }

.glitch:hover::before { opacity: 0.6; animation: glitchA .4s steps(2, end) infinite; }
.glitch:hover::after { opacity: 0.6; animation: glitchB .4s steps(2, end) infinite; }

@keyframes glitchA {
  0%, 100% { transform: translate(-2px, 0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(-1px, -1px); }
  75% { transform: translate(-4px, 0); }
}
@keyframes glitchB {
  0%, 100% { transform: translate(2px, 0); }
  25% { transform: translate(3px, -1px); }
  50% { transform: translate(1px, 1px); }
  75% { transform: translate(4px, 0); }
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 700;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s var(--ease);
  border: 1px solid;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg-0);
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
  color: var(--bg-0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.2);
}

/* ================================================================
   SECTION HELPERS
   ================================================================ */

section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--magenta);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-intro {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ================================================================
   STATS
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, currentColor 100%);
  opacity: 0.04;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: currentColor;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.stat-card.cyan { color: var(--cyan); }
.stat-card.magenta { color: var(--magenta); }
.stat-card.yellow { color: var(--yellow); }
.stat-card.purple { color: var(--purple); }
.stat-card.green { color: var(--green); }

.stat-card.cyan:hover { box-shadow: 0 0 40px rgba(0, 240, 255, 0.25); }
.stat-card.magenta:hover { box-shadow: 0 0 40px rgba(255, 0, 110, 0.25); }
.stat-card.yellow:hover { box-shadow: 0 0 40px rgba(255, 242, 0, 0.25); }
.stat-card.purple:hover { box-shadow: 0 0 40px rgba(177, 78, 255, 0.25); }
.stat-card.green:hover { box-shadow: 0 0 40px rgba(0, 255, 136, 0.25); }

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 40px currentColor;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ================================================================
   ARCHITECTURE
   ================================================================ */

.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all .3s var(--ease);
}

.arch-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
}

.arch-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.arch-tag.cyan { background: rgba(0, 240, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.arch-tag.magenta { background: rgba(255, 0, 110, 0.1); color: var(--magenta); border: 1px solid rgba(255, 0, 110, 0.3); }
.arch-tag.yellow { background: rgba(255, 242, 0, 0.1); color: var(--yellow); border: 1px solid rgba(255, 242, 0, 0.3); }
.arch-tag.purple { background: rgba(177, 78, 255, 0.1); color: var(--purple); border: 1px solid rgba(177, 78, 255, 0.3); }

.arch-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.arch-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.arch-diagram {
  background: var(--bg-1);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: center;
}

.arch-node {
  display: inline-block;
  padding: 8px 14px;
  margin: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text-secondary);
}

.arch-node.primary {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.arch-node.sm {
  font-size: 11px;
  padding: 6px 10px;
}

.arch-arrows {
  color: var(--text-muted);
  margin: 8px 0;
  font-size: 14px;
  letter-spacing: 12px;
}

.arch-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.arch-row.pack { margin: 4px 0; }

.arch-example {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.arch-example-label {
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 10px;
}

.arch-example-meta {
  color: var(--text-secondary);
}

/* ================================================================
   AGENT GRID
   ================================================================ */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.filter-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-chip.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-0);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.chip-count {
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
}
.filter-chip.active .chip-count { background: rgba(0, 0, 0, 0.3); }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: all .3s var(--ease);
  position: relative;
  cursor: default;
}

.agent-card.hidden { display: none; }

.agent-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.agent-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.agent-card.builtin:hover { border-color: var(--purple); box-shadow: 0 0 25px rgba(177, 78, 255, 0.15); }
.agent-card.builtin .agent-dot { background: var(--purple); }

.agent-card.seo:hover { border-color: var(--magenta); box-shadow: 0 0 25px rgba(255, 0, 110, 0.15); }
.agent-card.seo .agent-dot { background: var(--magenta); }

.agent-card.blog:hover { border-color: var(--yellow); box-shadow: 0 0 25px rgba(255, 242, 0, 0.15); }
.agent-card.blog .agent-dot { background: var(--yellow); }

.agent-card.dispatcher {
  border-color: rgba(0, 240, 255, 0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 240, 255, 0.04));
}
.agent-card.dispatcher:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
}
.agent-card.dispatcher .agent-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.agent-dot.star { background: var(--cyan) !important; box-shadow: 0 0 12px var(--cyan); }

.agent-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  background: var(--cyan);
  color: var(--bg-0);
  border-radius: 3px;
  font-weight: 700;
}

.agent-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.agent-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ================================================================
   SKILLS
   ================================================================ */

.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skills-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all .3s var(--ease);
}

.skills-group.wide { grid-column: span 2; }

.skills-group:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.skills-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.skills-head h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.skills-list {
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.skills-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(37, 37, 58, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.skills-list li:last-child { border-bottom: none; }

.skills-list li em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(255, 0, 110, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.skills-list.compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 16px;
}
.skills-list.compact li {
  border-bottom: none;
  padding: 3px 0;
}

/* ================================================================
   PLUGINS
   ================================================================ */

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}

.plugin-card.authored {
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 240, 255, 0.03));
  border-color: rgba(0, 240, 255, 0.25);
}

.plugin-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
}

.plugin-card.authored:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.plugin-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
}
.plugin-tag.cyan { background: rgba(0, 240, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.plugin-tag.magenta { background: rgba(255, 0, 110, 0.1); color: var(--magenta); border: 1px solid rgba(255, 0, 110, 0.3); }
.plugin-tag.yellow { background: rgba(255, 242, 0, 0.1); color: var(--yellow); border: 1px solid rgba(255, 242, 0, 0.3); }
.plugin-tag.purple { background: rgba(177, 78, 255, 0.1); color: var(--purple); border: 1px solid rgba(177, 78, 255, 0.3); }

.plugin-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plugin-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.plugin-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.plugin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plugin-tags .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.plugins-note {
  background: rgba(255, 242, 0, 0.04);
  border: 1px dashed rgba(255, 242, 0, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-icon {
  font-size: 18px;
  color: var(--yellow);
  flex-shrink: 0;
}

/* ================================================================
   FLOW
   ================================================================ */

.flow-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.flow-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  transition: all .3s var(--ease);
}

.flow-step:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.1);
}

.flow-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.flow-step h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.footer-mid { text-align: center; font-size: 14px; }
.footer-mid .small { font-size: 12px; }
.footer-right { text-align: right; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; }
  .skills-groups { grid-template-columns: repeat(2, 1fr); }
  .skills-group.wide { grid-column: span 2; }
  .skills-list.compact { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 40px; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-num { font-size: 56px; }
  .skills-groups { grid-template-columns: 1fr; }
  .skills-group.wide { grid-column: span 1; }
  .skills-list.compact { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .flow-step { grid-template-columns: 1fr; gap: 8px; }
  .flow-num { font-size: 32px; }
  .filters { gap: 6px; }
  .filter-chip { font-size: 11px; padding: 8px 12px; }
}

/* ================================================================
   SUBHEAD (in-section divider)
   ================================================================ */
.section-subhead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   TELEGRAM SYSTEM — n8n-style node graph
   ================================================================ */
.tg-section .section-label { color: var(--green); }
.tg-section .section-intro strong { color: var(--text-primary); }

.tg-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
.tg-legend span { display: inline-flex; align-items: center; gap: 7px; }
.tg-legend i { display: inline-block; }
.tg-legend .tg-st.live { position: static; width: 11px; height: 11px; border-radius: 50%; padding: 0; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tg-legend .tg-chip-demo { width: 22px; height: 11px; border-radius: 4px; border: 1px solid; }
.tg-legend .tg-chip-demo.brain { background: rgba(177,78,255,.12); border-color: var(--purple); }
.tg-legend .tg-chip-demo.tool  { background: rgba(0,240,255,.1); border-color: var(--cyan); }
.tg-legend .tg-chip-demo.det   { background: rgba(255,0,110,.1); border-color: var(--magenta); }
.tg-legend .tg-line { width: 24px; height: 0; border-top: 2px solid #2f5d6b; }
.tg-legend .tg-line.d { border-top-style: dashed; border-color: #4a2f6b; }

.tg-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 8px 0 28px;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.tg-scroll::-webkit-scrollbar { height: 8px; }
.tg-scroll::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 8px; }

.tg-canvas {
  position: relative;
  margin: 0 auto;
  width: 1340px;
  height: 1240px;
  background-color: var(--bg-1);
  background-image: radial-gradient(circle, rgba(0,240,255,.08) 1.1px, transparent 1.1px);
  background-size: 23px 23px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.tg-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.tg-node {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 168px;
  margin-left: -84px;
}
.tg-node .tg-ic {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; font-size: 23px;
  background: var(--bg-card);
  border: 2px solid var(--c, var(--purple));
  box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 14px -4px var(--c);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.tg-node:hover .tg-ic {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 3px color-mix(in srgb, var(--c) 32%, transparent), 0 0 22px -2px var(--c);
}
.tg-node.big .tg-ic { width: 68px; height: 68px; font-size: 27px; border-width: 3px; }
.tg-node .tg-nm { margin-top: 8px; font-size: 12.5px; font-weight: 700; text-align: center; color: var(--text-primary); line-height: 1.25; }
.tg-node .tg-sb { font-size: 10.5px; color: var(--text-secondary); text-align: center; margin-top: 2px; line-height: 1.25; }

.tg-node .tg-br {
  font-size: 9.5px; font-weight: 600; margin-top: 5px; padding: 2px 8px; border-radius: 5px;
  white-space: nowrap; font-family: 'JetBrains Mono', monospace;
}
.tg-br.brain { background: rgba(177,78,255,.12); border: 1px solid rgba(177,78,255,.4); color: #d4b3ff; }
.tg-br.tool  { background: rgba(0,240,255,.08); border: 1px solid rgba(0,240,255,.35); color: #9fe9ff; }
.tg-br.det   { background: rgba(255,0,110,.1); border: 1px solid rgba(255,0,110,.4); color: #ff9ec7; }

.tg-node .tg-st {
  position: absolute; top: -9px; right: 26px;
  font-size: 8.5px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 6px; text-transform: uppercase; color: var(--bg-0);
}
.tg-st.live { background: var(--green); box-shadow: 0 0 10px rgba(0,255,136,.5); }

.tg-trig {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; font-weight: 800; letter-spacing: .05em; color: var(--bg-0);
  background: var(--yellow); padding: 2px 8px; border-radius: 5px; text-transform: uppercase;
}

.tg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  transition: all .3s var(--ease);
}
.tg-card:hover { border-color: var(--green); box-shadow: 0 0 28px rgba(0,255,136,.12); }
.tg-card h4 { font-family: 'Orbitron', sans-serif; font-size: 15px; margin-bottom: 10px; color: var(--text-primary); }
.tg-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* ================================================================
   LIBRARY (imported arsenal)
   ================================================================ */
.library .section-label { color: var(--purple); }

.lib-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.lib-stat {
  background: linear-gradient(135deg, var(--bg-card), rgba(177,78,255,.05));
  border: 1px solid rgba(177,78,255,.25);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.lib-num {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  color: var(--purple);
  text-shadow: 0 0 30px rgba(177,78,255,.4);
}
.lib-cap {
  display: block; margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
}

.lib-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  margin: 12px 0 18px;
  color: var(--text-primary);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.lib-div {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: all .25s var(--ease);
}
.lib-div:hover { border-color: var(--purple); background: var(--bg-card-hover); transform: translateY(-2px); }
.lib-div-n {
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 22px;
  color: var(--purple); min-width: 30px;
}
.lib-div-name { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--text-secondary); }

/* ================================================================
   TEAM · dedicated workers
   ================================================================ */
.team .section-label { color: var(--green); }
.team .section-intro strong { color: var(--text-primary); }

.emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.emp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  transition: all .3s var(--ease);
  position: relative;
  border-left: 3px solid var(--text-muted);
}
.emp-card:hover { background: var(--bg-card-hover); transform: translateY(-3px); }

.emp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.emp-ic {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.emp-pin {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 5px; text-transform: uppercase;
  background: rgba(0,255,136,.12); border: 1px solid rgba(0,255,136,.4); color: var(--green);
  display: inline-flex; align-items: center; gap: 5px;
}
.emp-pin::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }

.emp-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px;
}
.emp-role { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.emp-area {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .5px;
  color: var(--text-muted); padding: 3px 8px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 4px;
}

.emp-card.finance  { border-left-color: var(--cyan); }
.emp-card.finance:hover  { box-shadow: 0 0 26px rgba(0,240,255,.14); }
.emp-card.marketing{ border-left-color: var(--magenta); }
.emp-card.marketing:hover{ box-shadow: 0 0 26px rgba(255,0,110,.14); }
.emp-card.content  { border-left-color: var(--yellow); }
.emp-card.content:hover  { box-shadow: 0 0 26px rgba(255,242,0,.14); }
.emp-card.design   { border-left-color: var(--purple); }
.emp-card.design:hover   { box-shadow: 0 0 26px rgba(177,78,255,.14); }
.emp-card.legal    { border-left-color: #f59e0b; }
.emp-card.ops      { border-left-color: var(--green); }
.emp-card.ops:hover      { box-shadow: 0 0 26px rgba(0,255,136,.14); }
.emp-card.dev      { border-left-color: #38bdf8; }

/* ================================================================
   FOUNDATION
   ================================================================ */
.foundation .section-label { color: var(--cyan); }
.found-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.found-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 28px;
  transition: all .3s var(--ease);
}
.found-card:hover { border-color: var(--cyan); box-shadow: 0 0 28px rgba(0,240,255,.1); }
.found-card h4 { font-family: 'Orbitron', sans-serif; font-size: 16px; margin-bottom: 10px; color: var(--text-primary); }
.found-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ================================================================
   RESPONSIVE — new sections
   ================================================================ */
@media (max-width: 1024px) {
  .tg-cards { grid-template-columns: 1fr; }
  .lib-stats { grid-template-columns: repeat(2, 1fr); }
  .found-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lib-stats { grid-template-columns: repeat(2, 1fr); }
  .lib-num { font-size: 36px; }
  .tg-legend { font-size: 11px; gap: 12px; }
}
