/* ═══════════════════════════════════════════════════════════
   F7R.gg — Design System
   Station Command theme — CRT green/cyan/amber on pure black
   ═══════════════════════════════════════════════════════════ */

/* ── Reset + Variables ─────────────────────────────────────── */

:root {
  /* F7R Station palette — CRT green/cyan/amber on pure black */
  --bg: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #0d0d0d;
  --bg-card-hover: #141414;
  --bg-elevated: #1a1a1a;
  --accent: #22aa55;
  --accent-dim: #156635;
  --accent-glow: rgba(34, 170, 85, 0.12);
  --accent-cyan: #2288aa;
  --accent-cyan-dim: #1a6680;
  --accent-amber: #aa8822;
  --text: #c8d0d8;
  --text-dim: #6a6a6a;
  --text-muted: #3a3a3a;
  --border: #1a1a1a;
  --border-light: #2a2a2a;
  --success: #22aa55;
  --warning: #aa8822;
  --error: #aa3322;

  /* Agent colors */
  --nix: #cba6f7;
  --bernard: #f38ba8;
  --morgan: #89b4fa;
  --zara: #f9e2af;
  --neo: #74c7ec;
  --james: #b4befe;
  --hempbot: #a6e3a1;
  --squarebot: #94e2d5;
  --racebot: #fab387;
  --iris: #f59e0b;

  --font-body: 'Share Tech Mono', 'VT323', monospace;
  --font-heading: 'Orbitron', monospace;
  --font-mono: 'Share Tech Mono', 'Fira Code', monospace;

  --radius: 3px;
  --radius-lg: 6px;
  --max-width: 1200px;
  --nav-height: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* CRT noise overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
  text-shadow: 0 0 4px var(--accent-dim);
}

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

/* ── Typography ────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

.mono {
  font-family: var(--font-mono);
}

/* ── Navigation ────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: linear-gradient(180deg, #101010 0%, #080808 100%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo img {
  height: 32px;
  width: 32px;
}

.nav-logo span {
  color: var(--accent-cyan);
  text-shadow: 0 0 6px var(--accent-cyan-dim);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 6px var(--accent-cyan-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Main Content ──────────────────────────────────────────── */

main {
  padding-top: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  margin-bottom: 2rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan-dim);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.75rem;
  box-shadow: 0 0 6px var(--accent-dim);
}

/* ── Cards ─────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* ── News Grid ─────────────────────────────────────────────── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.news-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}

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

.news-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.news-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.news-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.news-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.news-tag {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.news-empty {
  text-align: center;
  padding: 60px 20px;
}

/* ── Stats Bar ─────────────────────────────────────────────── */

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px var(--accent-cyan-dim);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ── Activity Feed ─────────────────────────────────────────── */

.feed {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feed-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-header h3 {
  font-size: 1rem;
}

.feed-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feed-live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Feed Tabs ──────────────────────────────────────────── */

.feed-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.feed-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.feed-tab:hover {
  color: var(--text-dim);
}

.feed-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  text-shadow: 0 0 4px var(--accent-cyan-dim);
}

.feed-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item:hover {
  background: var(--bg-card);
}

.feed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-agent {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 90px;
}

.feed-action {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.feed-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.feed-status {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

.feed-status.success { background: rgba(34,197,94,0.15); color: var(--success); }
.feed-status.error { background: rgba(239,68,68,0.15); color: var(--error); }

/* ── Agent Profile Cards ───────────────────────────────────── */

.agent-card {
  position: relative;
  overflow: hidden;
}

.agent-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  image-rendering: pixelated;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.agent-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.agent-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.agent-status.working { background: rgba(34,170,85,0.15); color: var(--accent); }
.agent-status.thinking { background: rgba(203,166,247,0.15); color: var(--nix); }
.agent-status.idle { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.agent-status.sleeping { background: rgba(100,116,139,0.1); color: var(--text-muted); }

.agent-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.agent-status.working::before { background: var(--accent); animation: pulse 1.5s infinite; }
.agent-status.thinking::before { background: var(--nix); animation: pulse 2s infinite; }
.agent-status.idle::before { background: var(--text-muted); }
.agent-status.sleeping::before { background: var(--text-muted); opacity: 0.5; }

.agent-bio {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.agent-catchphrase {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.agent-catchphrase::before { content: '"'; }
.agent-catchphrase::after { content: '"'; }

.agent-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.skill-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.agent-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.agent-stat-label {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.agent-meta-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.model-badge, .tier-badge, .age-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-badge {
  background: rgba(203, 166, 247, 0.08);
}

.tier-badge {
  background: rgba(20, 184, 166, 0.08);
  color: var(--accent);
  border-color: rgba(20, 184, 166, 0.3);
}

.age-badge {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-dim);
}

.agent-report-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.agent-next-sched {
  font-size: 0.75rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
}

.agent-next-sched .mono {
  font-size: 0.7rem;
}

/* ── Org Chart ─────────────────────────────────────────────── */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.org-tier {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.org-node {
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  min-width: 120px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.org-node:hover {
  transform: translateY(-2px);
}

.org-node .name {
  font-weight: 600;
  display: block;
}

.org-node .role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.org-connector {
  width: 2px;
  height: 24px;
  background: var(--border-light);
  margin: 0 auto;
}

.org-branch {
  height: 2px;
  background: var(--border-light);
  margin: 0 auto;
}

/* ── Project Cards ─────────────────────────────────────────── */

.project-card {
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

img.project-logo {
  border: 1px solid var(--border);
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-tags {
  display: flex;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(34, 170, 85, 0.08);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-players {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.75rem;
}

/* ── Infrastructure ────────────────────────────────────────── */

.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.infra-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.infra-stat .value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px var(--accent-cyan-dim);
}

.infra-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* How It Works cards */
.arch-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.arch-flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.arch-flow-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.arch-flow-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.arch-flow-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.arch-flow-tech {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Architecture Diagram */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-layer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.arch-layer-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  padding: 1rem 0;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.arch-agent-row {
  display: flex;
  gap: 1rem;
  flex: 1;
  flex-wrap: wrap;
}

.arch-agent-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  flex: 1;
  min-width: 200px;
}

.arch-agent-box.ceo {
  max-width: 100%;
  flex: 1;
}

.arch-agent-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.arch-agent-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.arch-agent-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.arch-agent-tasks span {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: var(--bg-elevated);
  border-radius: 3px;
  color: var(--text-dim);
}

.arch-agent-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.tool-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-bash { background: rgba(34,197,94,0.1); color: #22c55e; }
.tool-rcon { background: rgba(243,139,168,0.1); color: #f38ba8; }
.tool-ssh { background: rgba(249,226,175,0.1); color: #f9e2af; }
.tool-docker { background: rgba(137,180,250,0.1); color: #89b4fa; }
.tool-db { background: rgba(34,170,85,0.1); color: #22aa55; }
.tool-web { background: rgba(203,166,247,0.1); color: #cba6f7; }
.tool-discord { background: rgba(116,199,236,0.1); color: #74c7ec; }
.tool-task { background: rgba(180,190,254,0.1); color: #b4befe; }

.arch-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0 0.5rem 28px;
}

.arch-arrow-line {
  width: 2px;
  height: 20px;
  background: var(--border-light);
}

.arch-arrow-label {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0;
}

.arch-infra-row {
  display: flex;
  gap: 1rem;
  flex: 1;
  flex-wrap: wrap;
}

.arch-infra-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  flex: 1;
  min-width: 160px;
}

.arch-infra-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 4px var(--accent-cyan-dim);
  margin-bottom: 0.1rem;
}

.arch-infra-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.arch-infra-items {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.arch-infra-items span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Communication Flows */
.comm-flows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comm-flow-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
}

.comm-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comm-flow-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
}

.comm-flow-freq {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.comm-flow-path {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.comm-node {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  white-space: nowrap;
}

.comm-node-condition {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  font-style: italic;
}

.comm-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Tech categories */
.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-category h4 {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Game Server cards */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.server-game {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.server-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.server-entry:last-child {
  border-bottom: none;
}

.server-name {
  font-weight: 600;
  font-size: 0.82rem;
}

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

.server-plugins {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 4px var(--accent-cyan-dim);
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── Contact ───────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #000;
  border: 1px solid var(--accent-dim);
  text-shadow: none;
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
}

.contact-icon {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius);
}

/* ── Command Center Hero ──────────────────────────────────── */

.hero-cmd {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-cmd-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(34,170,85,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(34,136,170,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-cmd-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-cmd-terminal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-cmd-prompt {
  color: var(--accent-dim);
}

.hero-cmd-typed {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-dim);
}

.hero-cmd-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

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

.hero-cmd-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-cmd-dot {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px var(--accent-cyan-dim);
}

.hero-cmd-tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--accent-cyan-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.hero-cmd-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cmd-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 70px;
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 5px var(--accent-cyan-dim);
  line-height: 1.2;
}

.hero-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-cmd-actions {
  display: flex;
  gap: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-dim);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(34,136,170,0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

/* ── Hero Agent Grid ─────────────────────────────────────── */

.hero-agent-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-agent-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}

.hero-agent-card.working {
  background: rgba(34,170,85,0.04);
  border-left-color: var(--accent);
}

.hero-agent-card.thinking {
  background: rgba(203,166,247,0.04);
}

.hero-agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-agent-dot.working {
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 6px currentColor;
}

.hero-agent-dot.thinking {
  animation: pulse 2s infinite;
}

.hero-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.hero-agent-name {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 75px;
  flex-shrink: 0;
}

.hero-agent-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 90px;
  flex-shrink: 0;
}

.hero-agent-action {
  font-size: 0.72rem;
  color: var(--text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Brands Section ──────────────────────────────────────── */

.brands-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.brands-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.brand-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-icon-text {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
}

.brand-players {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  padding: 0.1rem 0.4rem;
  background: rgba(34,170,85,0.1);
  border-radius: 4px;
}

/* ── Office Section (contained, not full viewport) ───────── */

.office-section {
  max-width: 1400px;
  margin: 0 auto;
  height: 55vh;
  min-height: 400px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

/* Legacy hero classes kept for other pages */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero-cmd-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-cmd {
    min-height: auto;
    padding: 3rem 0;
  }
  .hero-cmd-title {
    font-size: 3rem;
  }
  .hero-agent-grid {
    max-height: 300px;
    overflow-y: auto;
  }
  .office-section {
    height: 40vh;
    min-height: 300px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ── Footer ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-right a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Filters ───────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(34, 136, 170, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  text-shadow: 0 0 4px var(--accent-cyan-dim);
}

/* ── Agent Profile Modal ───────────────────────────────────── */

.profile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.profile-overlay.active {
  display: flex;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.profile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

/* ── Scrollbar ─────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #080808;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  .stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

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

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

  .hero {
    min-height: auto;
    height: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .arch-flow-grid {
    grid-template-columns: 1fr;
  }

  .arch-agent-row, .arch-infra-row {
    flex-direction: column;
  }

  .arch-layer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .arch-layer-label {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    padding: 0.5rem 0 0;
  }

  .arch-arrows {
    padding-left: 0;
  }

  .comm-flow-path {
    flex-direction: column;
    align-items: flex-start;
  }

  .comm-arrow {
    transform: rotate(90deg);
    display: block;
    text-align: center;
    width: 100%;
  }

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