:root {
  --bg: #050608;
  --bg-soft: #0b0d11;
  --panel: rgba(11, 13, 17, 0.92);
  --panel-strong: rgba(7, 9, 12, 0.98);
  --line: rgba(255, 255, 255, 0.1);
  --line-bright: rgba(140, 255, 214, 0.28);
  --text: #f3f2ef;
  --muted: #9eaba7;
  --accent: #9cff7a;
  --accent-strong: #d3ff7c;
  --warning: #ffc266;
  --danger: #ff8e72;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(156, 255, 122, 0.08), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(255, 194, 102, 0.08), transparent 18%),
    linear-gradient(180deg, #040506 0%, #07080b 42%, #030304 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 90%);
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(4, 5, 6, 0.88), rgba(4, 5, 6, 0.28));
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 320px;
  min-width: 0;
}

.brand-lockup > div {
  min-width: 0;
}

.brand-lockup .eyebrow {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.eyebrow,
.brand-subtitle,
.protocol-label,
.note-kicker,
.stat-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
}

.brand-subtitle,
.site-nav a,
.hero-text,
.manifesto-lead,
.manifesto-points p,
.diagram-stage p,
.protocol-value,
.benchmark-table,
.use-case-grid p,
.vision-copy,
.vision-notes p {
  color: var(--muted);
}

.site-header-middle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
}

.site-view-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding-left: 42px;
  flex-shrink: 0;
}

.site-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-view-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  gap: 3px;
}

.site-view-tab {
  border: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  transition: background 160ms ease, color 160ms ease;
}

.site-view-tab:hover {
  color: var(--text);
}

.site-view-tab.is-active,
.site-view-tab[aria-selected="true"] {
  color: #0b1004;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.site-view-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .brand-lockup {
    flex-basis: 280px;
  }

  .brand-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.84rem;
  }
}

@media (max-width: 980px) {
  .site-header-middle {
    display: none;
    position: static;
    transform: none;
  }

  .site-header {
    gap: 14px;
  }
}

body.view-agent .site-header-middle {
  display: none;
}

body.view-agent .site-header {
  justify-content: space-between;
}

.agent-view-root {
  padding: 20px 0 80px;
  min-height: calc(100vh - 88px);
}

.agent-view-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-panel--wide {
  grid-column: 1 / -1;
}

.agent-view-root .agent-panel-body--tree {
  max-height: min(70vh, 560px);
  overflow: auto;
}

@media (max-width: 900px) {
  .agent-view-grid {
    grid-template-columns: 1fr;
  }

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

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

  .contact-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-cta-group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.section {
  padding: 72px 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
  min-height: calc(100vh - 84px);
}

.hero-headline {
  width: 100%;
}

.hero-headline-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button-hero-contact {
  min-height: 62px;
  min-width: 272px;
  padding: 0 38px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 48px rgba(156, 255, 122, 0.22);
}

.hero-headline-cta .button-secondary {
  box-shadow: none;
}

.hero-enterprise-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.yc-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.yc-badge strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.yc-badge svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.hero-headline h1 {
  max-width: none;
}

.typing-headline {
  white-space: nowrap;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: baseline;
  border-radius: 2px;
  animation: cursorBlink 0.6s steps(1) infinite;
}

.typing-cursor.is-done {
  animation: cursorBlink 0.6s steps(1) 3, cursorFadeOut 0.4s 1.8s ease forwards;
}

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

@keyframes cursorFadeOut {
  to { opacity: 0; }
}

.typing-headline[data-reveal],
.typing-headline[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-rest {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 6.8vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 8.6ch;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.proof h2 {
  max-width: none;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.no-wrap {
  white-space: nowrap;
}

.accent-text {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(156, 255, 122, 0.18);
}

.hero-text {
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 22px;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-metrics span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-header {
  min-height: 52px;
  padding: 0 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button-hero-large {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1rem;
  min-width: 220px;
}

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

.button-primary {
  color: #0b1004;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(156, 255, 122, 0.2);
  background: rgba(156, 255, 122, 0.05);
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 4, 0.72);
  backdrop-filter: blur(10px);
}

.contact-modal-dialog {
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin: 8vh auto 0;
  max-height: calc(100vh - 12vh);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 255, 122, 0.45) rgba(255, 255, 255, 0.06);
}

.contact-modal-dialog::-webkit-scrollbar {
  width: 10px;
}

.contact-modal-dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.contact-modal-dialog::-webkit-scrollbar-thumb {
  background: rgba(156, 255, 122, 0.38);
  border-radius: 999px;
}

.contact-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 255, 122, 0.55);
}

.contact-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-modal-head h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.contact-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field span {
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 1px solid rgba(156, 255, 122, 0.45);
  border-color: rgba(156, 255, 122, 0.35);
}

.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-choice-group {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 12px;
}

.contact-choice-group legend {
  margin-bottom: 4px;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(156, 255, 122, 0.2);
}

.contact-choice input {
  margin: 0;
  accent-color: var(--accent);
}

.contact-choice span {
  color: var(--text);
  font-size: 0.98rem;
}

.contact-submodal {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(156, 255, 122, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(156, 255, 122, 0.06), rgba(156, 255, 122, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.contact-submodal[hidden] {
  display: none !important;
}

.contact-submodal-head {
  display: grid;
  gap: 6px;
}

.contact-submodal-title {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-form-status {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.7;
}

.terminal-window,
.protocol-panel,
.benchmark-table-wrapper,
.showcase-card,
.vision-notes article,
.use-case-grid article,
.manifesto-points article,
.diagram-stage {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.terminal-hero {
  display: grid;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
}

.single-terminal {
  grid-template-columns: 1fr;
}

.terminal-window {
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--panel-strong);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 44px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.terminal-topbar p {
  margin: 0 0 0 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.terminal-body-modes {
  position: relative;
  padding: 0;
}

.terminal-mode-panel {
  min-height: 520px;
  padding: 20px 18px 18px;
}

.terminal-mode-session {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.75;
}

.terminal-mode-session[hidden] {
  display: none !important;
}

.agent-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.agent-panel-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.agent-panel-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.agent-panel-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.agent-panel-body {
  padding: 14px 16px 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.agent-tree-node {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.agent-tree-node ul {
  margin: 6px 0 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.agent-tree-line {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #d5ddd9;
  margin-bottom: 4px;
}

.agent-tree-line .role {
  color: var(--accent-strong);
}

.agent-tree-line .name {
  color: var(--text);
}

.graph-edge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.graph-edge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.graph-edge--detailed {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.graph-edge-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.graph-edge-detail {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
}

.graph-edge .rel {
  color: var(--warning);
}

.graph-nodes-key {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.75rem;
}

.graph-nodes-key strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.graph-nodes-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.graph-nodes-list li {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #d5ddd9;
}

.graph-node-item {
  margin-bottom: 6px;
}

.graph-node-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.graph-node-sig {
  margin-top: 4px;
  padding-left: 0.35rem;
  border-left: 2px solid rgba(110, 231, 197, 0.25);
}

.graph-node-sig-line {
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 2px;
}

.graph-node-label {
  color: var(--text);
}

.graph-node-kind {
  color: var(--muted);
  font-size: 0.68rem;
}

.kg-graph-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #ffb4a8;
  background: rgba(180, 60, 40, 0.15);
  border: 1px solid rgba(255, 120, 90, 0.35);
  border-radius: 10px;
}

.kg-graph-loading,
.kg-graph-3d-hint {
  margin: 0 0 10px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.kg-graph-3d-hint {
  margin-top: 10px;
  margin-bottom: 0;
}

.kg-graph-3d-mount {
  position: relative;
  width: 100%;
  min-height: 400px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(30, 55, 42, 0.45) 0%, rgba(4, 8, 6, 0.95) 100%);
  border: 1px solid var(--line);
}

.kg-graph-3d-mount > canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.kg-3d-label,
.kg-3d-edge-label {
  pointer-events: auto;
}

.kg-3d-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 9px;
  background: rgba(4, 8, 6, 0.94);
  border: 1px solid rgba(156, 255, 122, 0.22);
  border-radius: 7px;
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.kg-3d-edge-label {
  max-width: 140px;
  padding: 3px 6px;
  font-size: 8px;
  line-height: 1.25;
  color: #b8d4c8;
  background: rgba(4, 8, 6, 0.88);
  border: 1px solid rgba(74, 95, 85, 0.55);
  border-radius: 5px;
  white-space: normal;
  word-break: break-word;
}

.kg-3d-label-title {
  font-size: 10px;
  color: var(--text);
}

.kg-3d-label-kind {
  font-size: 8px;
  color: var(--muted);
}

.agent-view-root .agent-panel-body--graph {
  max-height: min(82vh, 760px);
  overflow: auto;
}

.network-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.network-table th,
.network-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.network-table th {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.network-table td {
  color: #d5ddd9;
}

.network-table th:nth-child(1),
.network-table td:nth-child(1) {
  width: 8%;
  white-space: nowrap;
}

.network-table th:nth-child(2),
.network-table td:nth-child(2) {
  width: 11%;
  white-space: nowrap;
}

.network-table th:nth-child(3),
.network-table td:nth-child(3) {
  width: 23%;
}

.network-table th:nth-child(4),
.network-table td:nth-child(4) {
  width: 58%;
  min-width: 340px;
}

.agent-panel-body--network {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.network-table .col-url {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-width: none;
  font-size: 0.78rem;
}

.network-table .status-2 {
  color: var(--accent-strong);
}

.network-empty {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.network-source-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.dot:first-child {
  background: var(--danger);
}

.dot:nth-child(2) {
  background: var(--warning);
}

.dot:nth-child(3) {
  background: var(--accent);
}

.terminal-body {
  min-height: 520px;
  padding: 20px 18px 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.75;
}

.terminal-body.terminal-body-modes {
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.terminal-line {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: lineIn 400ms ease forwards;
}

.terminal-line.replay {
  animation: lineIn 350ms ease forwards;
}

.terminal-line + .terminal-line {
  margin-top: 8px;
}

.line-prefix {
  flex: 0 0 auto;
  color: var(--accent);
}

.line-time {
  flex: 0 0 auto;
  min-width: 54px;
  color: #6f7b76;
  font-size: 0.76rem;
}

.line-prefix.warn {
  color: var(--warning);
}

.line-prefix.pass {
  color: var(--accent-strong);
}

.line-prefix.dim {
  color: #73807b;
}

.line-content {
  color: #d5ddd9;
}

.line-content.muted {
  color: var(--muted);
}

.line-content.block {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.line-content.tree {
  display: block;
  width: 100%;
  white-space: pre;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: #d7e0dc;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
}

.line-content.reason {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: #d0d8d4;
}

.caret {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

.architecture-section {
  position: relative;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 88px minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.showcase-card {
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--panel-strong);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stack-layer {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  position: relative;
  overflow: hidden;
}

.architecture-card {
  position: relative;
}

.pipeline-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 420px;
}

.pipeline-input,
.pipeline-output,
.output-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
}

.pipeline-input {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.pipeline-output.visual-output {
  width: fit-content;
  justify-self: end;
  border: 1px solid rgba(255, 142, 114, 0.18);
  background: rgba(255, 142, 114, 0.06);
  color: #e0bfb5;
}

.pipeline-caption {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.pipeline-layers {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: center;
}

.pipeline-layers::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.pipeline-layer {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px 0 38px;
  border-radius: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  overflow: hidden;
}

.pipeline-layer::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.pipeline-layer.machine {
  border: 1px solid rgba(156, 255, 122, 0.16);
  background: rgba(156, 255, 122, 0.05);
  color: #dce6d5;
}

.pipeline-layer.machine::before {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(156, 255, 122, 0.4);
}

.pipeline-layer.visual {
  border: 1px solid rgba(255, 142, 114, 0.16);
  background: rgba(255, 142, 114, 0.05);
  color: #ddbdb3;
}

.pipeline-layer.visual::before {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 142, 114, 0.3);
}

.full-browser .pipeline-layers::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 34%;
  width: 44%;
  height: 2px;
  background: rgba(255, 142, 114, 0.5);
  transform: rotate(-12deg);
  box-shadow: 0 0 24px rgba(255, 142, 114, 0.2);
}

.architecture-divider {
  position: relative;
  display: grid;
  place-items: center;
}

.divider-core {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(156, 255, 122, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(156, 255, 122, 0.1), rgba(156, 255, 122, 0.03));
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: 0 0 30px rgba(156, 255, 122, 0.08);
}

.divider-strike {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(156, 255, 122, 0.4), transparent);
}

.stablebrowse-card .pipeline-shell.compact {
  min-height: 420px;
}

.machine-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
}

.output-chip {
  border: 1px solid rgba(156, 255, 122, 0.16);
  background: rgba(156, 255, 122, 0.05);
  color: #dce6d5;
}

.benchmark-visual {
  margin-bottom: 18px;
}

.plot-shell {
  position: relative;
  min-height: 260px;
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.plot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}

.plot-quadrant {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plot-quadrant.top-left {
  left: 14px;
  top: 12px;
}

.plot-quadrant.bottom-right {
  right: 14px;
  bottom: 34px;
}

.plot-point {
  position: absolute;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.plot-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.plot-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: #d9dfdc;
}

.plot-point.stablebrowse {
  left: 14%;
  top: 22%;
  color: var(--accent);
}

.plot-point.operator {
  left: 56%;
  top: 44%;
  color: #ffb870;
}

.plot-point.comet {
  left: 66%;
  top: 36%;
  color: #9bc1ff;
}

.plot-point.chromium {
  left: 78%;
  top: 64%;
  color: #ff8e72;
}

.plot-point.brave {
  left: 87%;
  top: 58%;
  color: #d39aff;
}

.plot-axis {
  position: absolute;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.x-axis {
  right: 14px;
  bottom: 10px;
}

.y-axis {
  left: 10px;
  top: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.manifesto-lead,
.vision-copy {
  font-size: 1.2rem;
  line-height: 1.8;
}

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

.use-case-grid,
.vision-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.manifesto-points article,
.use-case-grid article,
.vision-notes article {
  padding: 22px;
  border-radius: 22px;
}

.machine-diagram .diagram-shell {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.diagram-stage {
  padding: 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.diagram-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(156, 255, 122, 0.08), transparent 65%);
  pointer-events: none;
}

.stage-index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
}

.protocol-panel {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
}

.protocol-value {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.protocol-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 280px));
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.stats-strip article {
  padding: 18px 0;
  border-top: 1px solid rgba(156, 255, 122, 0.22);
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.benchmark-table-wrapper {
  border-radius: 28px;
  padding: 14px;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.benchmark-table th,
.benchmark-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.benchmark-table th {
  color: var(--text);
  font-size: 0.9rem;
}

.benchmark-table tbody tr:last-child td {
  border-bottom: 0;
}

.vision-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.manifesto,
.vision {
  align-items: start;
}

.note-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .agent-type-card {
    flex: 0 1 140px;
  }

  .manifesto-grid,
  .vision-layout,
  .machine-diagram .diagram-shell,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .machine-diagram .diagram-shell {
    gap: 16px;
  }

  .protocol-panel {
    grid-template-columns: 1fr;
  }

  .protocol-divider {
    width: 100%;
    height: 32px;
  }

  .architecture-divider {
    min-height: 64px;
  }

  .divider-strike {
    width: 100%;
    height: 2px;
  }
}

@media (min-width: 1025px) {
  .manifesto,
  .vision {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
  }

  .manifesto .section-heading,
  .vision .section-heading {
    margin-bottom: 0;
    position: sticky;
    top: 108px;
  }

  .manifesto .manifesto-grid,
  .vision .vision-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .manifesto .manifesto-lead,
  .vision .vision-copy {
    max-width: 28ch;
    margin-bottom: 0;
  }

  .manifesto .manifesto-points,
  .vision .vision-notes {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    margin-left: calc(50% - 50vw + 12px);
    margin-right: calc(50% - 50vw + 12px);
    padding: 16px 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header-middle {
    width: 100%;
    justify-content: flex-start;
  }

  .site-view-toggle-wrap {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .site-view-label {
    width: 100%;
  }

  .site-view-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .site-view-tab {
    flex: 1 1 0;
    justify-content: center;
  }

  .site-cta-group {
    width: 100%;
  }

  .site-cta-group .button {
    width: 100%;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    gap: 24px;
  }

  .hero-headline {
    overflow: hidden;
  }

  .typing-headline {
    white-space: normal;
  }

  .hero-text {
    white-space: normal;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }

  .hero-rest {
    align-items: stretch;
  }

  .hero-metrics {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .hero-metrics span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .manifesto-points,
  .use-case-grid,
  .vision-notes {
    grid-template-columns: 1fr;
  }

  .agent-type-card {
    flex: 0 1 130px;
    padding: 20px 12px;
  }

  .flow-browser-layer,
  .flow-web-layer {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .hero-panel,
  .protocol-panel,
  .benchmark-table-wrapper,
  .terminal-window {
    border-radius: 22px;
  }

  .terminal-mode-panel {
    min-height: 420px;
    padding: 16px 14px 14px;
  }

  .terminal-line {
    gap: 8px;
    align-items: flex-start;
  }

  .line-time {
    min-width: 44px;
  }

  .line-content.tree,
  .line-content.reason,
  .line-content.block {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .benchmark-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .plot-shell {
    min-height: 220px;
  }

  .plot-point {
    gap: 6px;
  }

  .plot-label {
    font-size: 0.68rem;
    max-width: 84px;
    line-height: 1.35;
  }

  .plot-point.operator {
    left: 54%;
  }

  .plot-point.comet {
    left: 64%;
  }

  .plot-point.chromium {
    left: 75%;
  }

  .plot-point.brave {
    left: 83%;
  }

  .agent-economy-header {
    margin-bottom: 36px;
  }

  .agent-economy-subtitle {
    font-size: 0.95rem;
  }

  .agent-type-row {
    gap: 12px;
  }

  .flow-browser-inner,
  .flow-web-inner {
    padding: 20px 16px;
  }

  .contact-modal-dialog {
    width: min(100% - 20px, 720px);
    margin-top: 4vh;
    padding: 18px;
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 16px, 1200px);
  }

  .site-header {
    margin-left: calc(50% - 50vw + 8px);
    margin-right: calc(50% - 50vw + 8px);
    padding: 12px 8px;
  }

  .brand-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .button-header {
    min-height: 42px;
    font-size: 0.88rem;
  }

  .button-hero-large {
    width: 100%;
    min-width: 0;
  }

  .terminal-topbar {
    padding: 8px 12px;
  }

  .terminal-topbar p {
    font-size: 0.76rem;
    margin-left: 2px;
  }

  .terminal-mode-panel {
    min-height: 360px;
  }

  .line-prefix,
  .line-time,
  .terminal-mode-session {
    font-size: 0.76rem;
  }

  .plot-shell {
    min-height: 200px;
  }

  .plot-axis {
    font-size: 0.64rem;
  }

  .plot-label {
    max-width: 64px;
    font-size: 0.62rem;
  }

  .agent-type-card {
    min-width: calc(50% - 6px);
    flex-basis: calc(50% - 6px);
  }

  .flow-browser-name {
    font-size: 1.05rem;
  }

  .flow-web-name {
    font-size: 0.95rem;
  }
}

.benchmark-note {
  margin-top: 14px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

/* ── Agent Economy flow section ── */

.agent-economy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.agent-economy-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}

.agent-economy-header .eyebrow {
  margin-bottom: 4px;
}

.agent-economy-header h2 {
  max-width: 20ch;
  text-align: center;
}

.agent-economy-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0;
}

.agent-economy-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.agent-type-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 960px;
}

.agent-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 300ms ease, transform 300ms ease;
  flex: 0 1 160px;
  min-width: 130px;
}

.agent-type-card:hover {
  border-color: rgba(156, 255, 122, 0.25);
  transform: translateY(-3px);
}

.agent-type-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(156, 255, 122, 0.06);
  border: 1px solid rgba(156, 255, 122, 0.12);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.agent-type-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  flex-shrink: 0;
}

.flow-connector svg {
  display: block;
}

.flow-browser-layer {
  width: 100%;
  max-width: 720px;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(156, 255, 122, 0.22), rgba(156, 255, 122, 0.06));
}

.flow-browser-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 24px;
  border-radius: 20px;
  background: var(--bg-soft);
}

.flow-browser-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.flow-browser-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-web-layer {
  width: 100%;
  max-width: 720px;
}

.flow-web-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.flow-web-inner svg {
  color: var(--muted);
  flex-shrink: 0;
}

.flow-web-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
