/* Qscope docs — Bento Grids theme, same system as qscope.xyz.
   Flat solid tiles, 1px hairline borders, cyan #22D3EE on deep navy.
   No gradients on surfaces, no blur, no images beyond the logo. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/ibmplexsans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dmmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dmmono-500.woff2') format('woff2');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #081020;
  color: #eef3fa;
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection { background: rgba(34, 211, 238, .35); color: #fff; }

a { color: #67e8f9; }
a:hover { color: #fff; }

.mono { font-family: 'DM Mono', ui-monospace, monospace; }

/* faint blueprint grid, same as the main site */
.blueprint {
  background-image:
    linear-gradient(rgba(103, 232, 249, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #081020;
  border-bottom: 1px solid #1b3358;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand b { font-size: 22px; letter-spacing: -.02em; }
.brand span { font-weight: 300; color: #94a3b8; }
nav.top { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }
nav.top a { color: #cbd5e1; text-decoration: none; }
nav.top a:hover { color: #fff; }
nav.top a.cta {
  background: #22d3ee;
  color: #04121f;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
}
nav.top a.cta:hover { background: #67e8f9; color: #04121f; }
@media (max-width: 640px) {
  nav.top a:not(.cta) { display: none; }
}

/* ---------- tiles ---------- */
.bento {
  background: #0d1d33;
  border: 1px solid #1b3358;
  border-radius: 14px;
}
.tile-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8ea0b8;
}
.tile-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #22d3ee;
  vertical-align: 1px;
}

main { padding: 40px 0 80px; }

.hero { padding: 28px; }
@media (min-width: 640px) { .hero { padding: 40px; } }
.hero h1 {
  margin: 16px 0 0;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}
@media (min-width: 640px) { .hero h1 { font-size: 50px; } }
.hero h1 .cy { color: #22d3ee; }
.hero .lede { margin: 18px 0 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: #94a3b8; }

.fact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 640px) { .fact-row { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 16px; }
.fact p { margin: 6px 0 0; font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 700; color: #fff; }
.fact p small { font-size: 14px; color: #67e8f9; }

.warning {
  margin-top: 16px;
  border: 1px solid rgba(251, 191, 36, .45);
  background: rgba(251, 191, 36, .07);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #fde68a;
}
.warning b { color: #fcd34d; }

/* ---------- section nav ---------- */
.toc { margin-top: 16px; padding: 20px 24px; }
.toc ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
@media (min-width: 640px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
}
.toc a:hover { background: rgba(34, 211, 238, .08); color: #fff; }
.toc a .n { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 700; color: #22d3ee; }

/* ---------- sections ---------- */
section.paper { margin-top: 16px; padding: 28px; }
@media (min-width: 640px) { section.paper { padding: 36px 40px; } }
section.paper h2 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}
section.paper h3 { margin: 28px 0 0; font-size: 19px; color: #fff; }
section.paper p { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: #cbd5e1; }
section.paper p b, section.paper li b { color: #fff; }
section.paper ul, section.paper ol { margin: 12px 0 0; padding-left: 22px; color: #cbd5e1; font-size: 16px; line-height: 1.7; }
section.paper li { margin-top: 8px; }
section.paper li::marker { color: #22d3ee; }
section.paper code {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  background: #0a1829;
  border: 1px solid #1b3358;
  border-radius: 6px;
  padding: 1px 6px;
  color: #67e8f9;
}

/* data tables */
table.data {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
}
table.data th, table.data td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #1b3358;
}
table.data th {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8ea0b8;
}
table.data td { color: #e2e8f0; }
table.data td.num, table.data th.num { text-align: right; font-family: 'DM Mono', monospace; }
table.data tr:last-child td { border-bottom: none; }
table.data td.hl { color: #67e8f9; font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* agent cards */
.agents { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .agents { grid-template-columns: 1fr 1fr; } }
.agents .agent { padding: 20px; }
.agents .agent.wide { grid-column: 1 / -1; }
.agent h3 { margin: 8px 0 0 !important; }
.agent p { margin: 8px 0 0 !important; font-size: 15px !important; }
.agent .tag {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #22d3ee;
}

/* pipeline steps */
.steps { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { padding: 20px; }
.step .n { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 700; color: #22d3ee; }
.step h3 { margin: 8px 0 0 !important; }
.step p { margin: 8px 0 0 !important; font-size: 15px !important; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid #1b3358; padding: 40px 0 48px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer.site p { margin: 0; font-size: 14px; color: #94a3b8; line-height: 1.7; }
footer.site .links { display: flex; gap: 10px; flex-wrap: wrap; }
footer.site .links a {
  border: 1px solid #1b3358;
  background: #0d1d33;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
}
footer.site .links a:hover { border-color: rgba(34, 211, 238, .5); color: #fff; }
footer.site .fine { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .05); padding-top: 20px; font-size: 13px; color: #64748b; }
