.skip{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;z-index:10000}
.skip:focus{position:fixed;left:1rem;top:1rem;width:auto;height:auto;padding:0.6rem 1rem;background:#0b0f14;color:#e8f0ff;border:1px solid #3d7eff;border-radius:6px;overflow:visible}
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg0: #070b14;
  --bg1: #0c1220;
  --bg2: #121a2b;
  --line: #1e3a5f;
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --mint: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --text: #e8eef8;
  --muted: #8b9bb8;
  --card: rgba(18, 28, 48, 0.92);
  --glow: 0 0 40px rgba(34, 211, 238, 0.12);
  --sticky-h: 0px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--bg0);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
  color: #a5f3fc;
}

/* Sticky safety */
.safety-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(60, 12, 20, 0.97), rgba(12, 18, 32, 0.98));
  border-bottom: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.safety-sticky.acked {
  border-bottom-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(90deg, rgba(8, 30, 24, 0.97), rgba(12, 18, 32, 0.98));
}
.safety-sticky-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.safety-sticky-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  min-width: 0;
}
.safety-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}
.safety-sticky.acked .safety-kicker { color: var(--mint); }
.safety-phrase {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #fda4af;
  word-break: break-all;
}
.safety-legal {
  font-size: 0.75rem;
  color: #cbd5e1;
  max-width: 42rem;
}

.page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 35%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(ellipse 35% 25% at 0% 70%, rgba(52, 211, 153, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 45%, #060a12 100%);
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: rgba(12, 20, 36, 0.9);
  border: 1px solid var(--line);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
}

header.hero {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.15rem;
  border-radius: 20px;
  background: linear-gradient(145deg, #0f1a30, #0a1222);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--glow), inset 0 0 24px rgba(34, 211, 238, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-wrap img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.badge-row.left { justify-content: flex-start; }
.badge {
  display: inline-flex;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan);
}
.badge.soft {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-soft);
}
.badge.warn {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 55%, var(--blue-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.12));
  color: #ecfeff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.2));
  border-color: rgba(34, 211, 238, 0.65);
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn.secondary {
  background: rgba(12, 20, 36, 0.8);
  border-color: var(--line);
  color: var(--blue-soft);
  box-shadow: none;
}
.btn.secondary:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.1);
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  min-height: 40px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 36, 0.85);
}
.stat .v {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--cyan);
  font-family: 'IBM Plex Mono', monospace;
}
.stat .l {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.block { margin-bottom: 1.75rem; scroll-margin-top: 5.5rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}
.intro-card { margin-bottom: 1.75rem; }
.hero-blurb {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #c5d0e4;
}
.hero-blurb strong { color: var(--cyan); font-weight: 600; }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #a5f3fc;
}
.pill.ok {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
}
.pill.bad {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
}
.pill.muted {
  border-color: var(--line);
  background: rgba(8, 14, 24, 0.5);
  color: var(--muted);
}

.muted { color: var(--muted); }
.tiny { font-size: 0.78rem; line-height: 1.45; }
.mb { margin-bottom: 0.85rem; }
.mt { margin-top: 0.85rem; }

/* Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.arch-layer {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(12, 20, 36, 0.9), rgba(18, 30, 50, 0.6));
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  min-height: 44px;
}
.arch-layer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--layer-accent, var(--cyan));
}
.arch-layer[aria-pressed="true"] {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), var(--glow);
}
.arch-layer-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--layer-accent, var(--cyan));
}
.arch-layer-short {
  grid-column: 1;
  font-size: 0.8rem;
  color: #b8c5db;
}
.arch-layer-status {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint);
}
.arch-detail {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: rgba(8, 14, 24, 0.7);
  min-height: 220px;
}
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0;
}
.chip {
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  color: #a5f3fc;
}
.arch-figure { margin-top: 1rem; }
.info-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  background: #060a12;
}

/* Safety sim */
.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.mode-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.7);
  color: var(--muted);
  cursor: pointer;
  min-height: 40px;
}
.mode-btn[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
}
.safety-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}
.safety-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.mode-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
}
.decision-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid;
}
.decision-pill.allow {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.12);
}
.decision-pill.deny {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.12);
}
.gates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.gate {
  font-size: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
  font-weight: 500;
}
.why-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
#policy-canvas,
#vault-canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #060a12;
  display: block;
}
.sim-log {
  margin-top: 0.65rem;
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060a12;
  padding: 0.55rem 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
}
.sim-log-line { padding: 0.2rem 0; color: #94a3b8; }
.sim-log-ok { color: #6ee7b7; }
.sim-log-deny { color: #fda4af; }
.sim-log-info { color: #7dd3fc; }

/* Skills */
.skills-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.filter-label.full { width: 100%; margin-bottom: 0.75rem; }
.filter-label select,
.filter-label input {
  min-height: 40px;
  background: #060a12;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.4rem 0.65rem;
  font-family: inherit;
  font-size: 0.9rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}
.skill-card {
  text-align: left;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.7);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.skill-card[aria-pressed="true"] {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--glow);
}
.skill-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.skill-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--cyan);
  word-break: break-all;
}
.skill-src {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
.src-rom {
  color: var(--mint);
  background: rgba(52, 211, 153, 0.12);
}
.src-sd {
  color: var(--blue-soft);
  background: rgba(59, 130, 246, 0.12);
}
.skill-name { font-weight: 600; font-size: 0.92rem; color: #f1f5f9; }
.skill-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.25rem 0;
  font-family: 'IBM Plex Mono', monospace;
}
.risk-passive_rx { color: var(--mint); }
.risk-active_tx { color: var(--amber); }
.skill-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.agent-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(8, 14, 24, 0.55);
}
.agent-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #c5d0e4;
  line-height: 1.7;
}
.mono-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: #a5f3fc;
  margin-bottom: 0.5rem;
}
.vault-list {
  margin-top: 0.5rem;
  max-height: 140px;
  overflow: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #94a3b8;
}
.vault-row {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.4);
  word-break: break-all;
}

/* Wizard */
.wizard-card h3 { font-size: 1.1rem; }
.wiz-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.wiz-dots { display: flex; gap: 0.35rem; }
.wiz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e3a5f;
}
.wiz-dot.on { background: rgba(34, 211, 238, 0.45); }
.wiz-dot.current { background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, 0.5); }
.wiz-progress {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  background: #060a12;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #a5f3fc;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0.75rem 0;
}
.tips-list {
  margin-top: 0.85rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Roadmap */
.roadmap-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.road-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: var(--card);
}
.road-card h3 {
  font-size: 0.95rem;
  margin: 0.35rem 0 0.55rem;
  color: #f1f5f9;
}
.road-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.road-card li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
}
.road-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan-dim);
  font-weight: 700;
}
.road-ver {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.9rem;
}
.road-status {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 0.15rem;
}
.road-shipped .road-status { color: var(--mint); }
.road-planned .road-status { color: var(--amber); }
.road-planned {
  border-style: dashed;
  opacity: 0.95;
}

/* Docs */
.docs-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(8, 14, 24, 0.5);
}
.docs-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #e2e8f0;
  min-height: 36px;
}
.docs-list details p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* MedSec */
.medsec-card {
  border-color: rgba(251, 191, 36, 0.35);
}
.medsec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.plain-list li {
  font-size: 0.9rem;
  color: #c5d0e4;
  padding-left: 0.9rem;
  position: relative;
}
.plain-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* Ecosystem */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}
.eco-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  min-height: 88px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.eco-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
  text-decoration: none;
}
.eco-card strong { color: #f1f5f9; font-size: 0.95rem; }
.eco-card span { font-size: 0.78rem; color: var(--muted); }

.cta-banner {
  margin: 1.75rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.08)),
    rgba(12, 20, 36, 0.95);
  text-align: center;
  box-shadow: var(--glow);
}
.cta-banner h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}
.cta-banner p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.15rem;
  font-size: 0.95rem;
}

.legal {
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.08), rgba(12, 18, 32, 0.9));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.legal-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4rem;
}
.legal p {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  max-width: 48rem;
}
.legal .ack {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #fda4af;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 113, 133, 0.3);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  white-space: nowrap;
}

footer.site-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  font-family: 'IBM Plex Mono', monospace;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
footer.site-footer a { color: var(--cyan-dim); }

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(12, 20, 36, 0.96);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #e8eef8;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--glow);
  max-width: min(92vw, 420px);
  text-align: center;
}

@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .arch-grid,
  .safety-panels,
  .agent-grid,
  .medsec-grid,
  .roadmap-track { grid-template-columns: 1fr; }
  .legal {
    grid-template-columns: 1fr;
  }
  .legal .ack { white-space: normal; word-break: break-all; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 1.1rem 1rem 3rem; }
  .skills-grid { grid-template-columns: 1fr; }
}
