/* ── Design system ─────────────────────────────────────────────────────── */
:root {
  --navy: #1a2744;
  --accent: #3b5bdb;
  --accent-hover: #2d47c4;
  --text: #0f1629;
  --muted: #64748b;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  margin: 0;
  padding: 2rem 1rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

/* ── Headings ──────────────────────────────────────────────────────────── */
h1 { font-size: 2rem; font-weight: 700; color: var(--navy); margin: 0 0 0.25rem; }
h2 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.0rem; font-weight: 600; color: var(--navy); margin: 0 0 0.25rem; }

/* ── Project hub header ────────────────────────────────────────────────── */
.hub-header { margin-bottom: 0; }
.hub-meta { color: var(--muted); font-size: 0.875rem; margin: 0.2rem 0 0; }

/* ── Text ──────────────────────────────────────────────────────────────── */
.subtext { color: var(--muted); margin: 0 0 1.5rem; font-size: 1rem; }
.error { color: #d00; margin: 0 0 1rem; font-size: 0.9rem; }
.muted { color: var(--muted); font-size: 0.875rem; }

/* ── Links ─────────────────────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.card-link { color: var(--navy); font-weight: 600; font-size: 1.1rem; }

/* ── Source citation links ──────────────────────────────────────────────── */
a.cite-link {
  font-family: 'JetBrains Mono', 'Cascadia Code', ui-monospace, monospace;
  font-size: 0.82em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  opacity: 0.85;
}
a.cite-link:hover { opacity: 1; border-bottom-style: solid; text-decoration: none; }

/* ── Inline code ───────────────────────────────────────────────────────── */
code {
  font-family: 'JetBrains Mono', 'Cascadia Code', ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

/* ── Form ──────────────────────────────────────────────────────────────── */
form { margin-bottom: 1.5rem; }

input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

input[type="password"],
select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}

label.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

details.field-advanced {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
details.field-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}
details.field-advanced[open] summary { margin-bottom: 0.75rem; }
details.field-advanced input { margin-top: 0.5rem; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
button {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: var(--accent-hover); }

button.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}
button.btn-secondary:hover {
  background: rgba(59, 91, 219, 0.06);
}

button.btn-muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
}
button.btn-muted:hover {
  background: var(--surface);
}

/* ── HR ────────────────────────────────────────────────────────────────── */
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Project cards ─────────────────────────────────────────────────────── */
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.project-card .stats {
  color: var(--muted);
  font-size: 0.875rem;
}
.project-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ── Role rows ───────────────────────────────────────────────────────────── */
.roles-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.role-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  color: inherit;
  transition: background 0.1s;
}
.role-row:last-child { border-bottom: none; }
.role-row:hover { background: var(--surface); text-decoration: none; }

.role-row-icon {
  font-size: 1.1rem;
  width: 1.6rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.role-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.role-row-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.3;
}
.role-row-desc {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-row-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.role-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.role-dot-ready { background: #22c55e; }
.role-dot-new   { background: var(--border); }
.role-status-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  min-width: 3.5rem;
}

.role-row-arrow {
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.1s, transform 0.1s;
}
.role-row:hover .role-row-arrow { opacity: 1; transform: translateX(2px); }

/* ── Section labels ─────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

/* ── Executive cards (Management & CTOs) ────────────────────────────────── */
.exec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 580px) { .exec-grid { grid-template-columns: 1fr; } }

.exec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--exec-color, var(--accent));
  border-radius: 8px;
  padding: 1.4rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit;
}
.exec-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.exec-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.exec-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}
.exec-badge {
  display: inline-block;
  background: var(--exec-color, var(--accent));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.exec-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.exec-desc {
  color: var(--muted);
  font-size: 0.835rem;
  line-height: 1.6;
  flex: 1;
}
.exec-arrow {
  color: var(--exec-color, var(--accent));
  font-size: 1rem;
  margin-top: 0.85rem;
  align-self: flex-end;
}

/* ── Engineering cards ───────────────────────────────────────────────────── */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 580px) { .eng-grid { grid-template-columns: 1fr; } }

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-color, var(--border));
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.doc-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.doc-card-icon {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  opacity: 0.65;
}
.doc-card .doc-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}
.doc-card .doc-desc {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  flex: 1;
}
.doc-card .doc-arrow {
  color: var(--card-color, var(--accent));
  font-size: 0.95rem;
  margin-top: 0.6rem;
  align-self: flex-end;
  opacity: 0.75;
}

/* ── Full site footer link ───────────────────────────────────────────────── */
.doc-fullsite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
  transition: color 0.15s;
  padding: 0.3rem 0;
}
.doc-fullsite-link:hover { color: var(--accent); text-decoration: none; }
.doc-fullsite-sep { opacity: 0.4; }
.doc-fullsite-sub { opacity: 0.75; }

/* ── Query section ─────────────────────────────────────────────────────── */
.query-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.query-section h2 { margin-top: 0; }

/* Hero variant — full-width, higher contrast, first thing on the page */
.query-section--hero {
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin: 1.25rem 0 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.query-hero-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.query-section--hero .query-input-row input {
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
}
.query-section--hero #ask-btn {
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
}

.query-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.query-eg-label {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.query-eg {
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.query-eg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--white);
}

.query-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.query-input-row input {
  flex: 1;
  margin-bottom: 0;
}
.query-input-row button {
  flex-shrink: 0;
}

#answer { margin-top: 1rem; line-height: 1.7; }
.query-answer { white-space: pre-wrap; }
.query-citations {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.query-citations li code {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
  color: var(--accent);
}

/* ── Log / analysis page ───────────────────────────────────────────────── */
#log {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}
#log p { margin: 0; padding: 0.15rem 0; }
.log-info { color: var(--text); }
.log-discovery { color: var(--text); }
.log-warning { color: #b45309; }
.log-complete { font-weight: 600; color: var(--navy); }
.log-error { color: #d00; }

/* ── Intent document section ─────────────────────────────────────────────── */
.intent-section {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.intent-section-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.intent-badge-set  { color: #0d9488; font-weight: 600; }
.intent-badge-auto { color: #64748b; font-weight: 600; }
.intent-preview {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 6rem;
  overflow: hidden;
}
.intent-details summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  padding: 0.25rem 0;
}
.intent-details summary::-webkit-details-marker { display: none; }
.intent-details summary::before { content: '+ '; }
.intent-details[open] summary::before { content: '− '; }
.intent-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.intent-section textarea {
  width: 100%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  resize: vertical;
  line-height: 1.6;
  box-sizing: border-box;
}
.intent-section textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,91,219,0.08);
}

/* ── Source viewer ─────────────────────────────────────────────────────── */
.source-viewer {
  background: #1e1e2e;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}
.source-viewer table {
  width: 100%;
  border-collapse: collapse;
}
.source-viewer .line-num {
  color: #6c6c8a;
  text-align: right;
  padding: 0 1rem 0 0.75rem;
  width: 1px;
  white-space: nowrap;
  user-select: none;
}
.source-viewer .line-code {
  padding: 0;
}
.source-viewer .line-code pre {
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  color: #cdd6f4;
  white-space: pre;
  tab-size: 2;
}
.source-viewer .source-highlight {
  background: rgba(59, 91, 219, 0.15);
}
.source-viewer .source-highlight .line-num {
  color: #89b4fa;
  font-weight: 600;
}
﻿
/* ── Top nav ────────────────────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.top-nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.top-nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.top-nav-logo:hover { text-decoration: none; color: var(--accent); }
.top-nav-links { display: flex; gap: 0.25rem; }
.top-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.top-nav-link:hover { background: var(--surface); color: var(--navy); text-decoration: none; }
.top-nav-link.active { color: var(--accent); background: rgba(59,91,219,0.07); }

/* ── Guide page ─────────────────────────────────────────────────────────── */
.guide-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.guide-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.guide-nav a:hover { background: var(--surface); color: var(--navy); }

.guide-hero { margin-bottom: 0; }
.guide-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.guide-h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 0.4rem;
}
.guide-how {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 0 4px 4px 0;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.guide-callout {
  background: #eef3fd;
  border: 1px solid #c5d4f7;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.925rem;
  line-height: 1.6;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}
.guide-table th {
  background: var(--surface);
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
}
.guide-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.guide-table tr:nth-child(even) td { background: #fafbfc; }
.guide-list {
  padding-left: 1.4rem;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.8;
}
.guide-list li { margin-bottom: 0.25rem; }
.guide-closing {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.5rem 0 1rem;
}

/* ── Use case grid ──────────────────────────────────────────────────────── */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (max-width: 620px) { .use-case-grid { grid-template-columns: 1fr; } }
.use-case-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  transition: box-shadow 0.15s;
}
.use-case-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.uc-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.use-case-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.uc-situation { font-size: 0.875rem; color: var(--muted); margin: 0 0 0.75rem; line-height: 1.6; }
.uc-steps { background: var(--surface); border-radius: 5px; padding: 0.6rem 0.75rem; margin-bottom: 0.75rem; }
.uc-step-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.3rem; }
.uc-steps ol { margin: 0; padding-left: 1.2rem; font-size: 0.85rem; line-height: 1.7; }
.uc-steps li { margin-bottom: 0.1rem; }
.uc-expect { font-size: 0.875rem; margin: 0 0 0.25rem; }
.uc-note { font-size: 0.8rem; color: var(--muted); margin: 0; font-style: italic; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.faq-item summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  user-select: none;
  color: var(--navy);
  background: var(--surface);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ── Deployment tier cards ──────────────────────────────────────────────── */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
  align-items: start;
}
@media (max-width: 800px) { .deploy-grid { grid-template-columns: 1fr; } }

.deploy-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.3rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.deploy-card-featured {
  border-color: var(--accent);
  border-width: 2px;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%);
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.1);
}

.deploy-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
}

.deploy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.deploy-who {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.deploy-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0;
}

.deploy-node {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  white-space: nowrap;
}

.deploy-node-ext {
  background: #fff3f3;
  border-color: #f9a8a8;
  color: #b91c1c;
}

.deploy-node-own {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.deploy-arrow {
  color: var(--muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.deploy-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text);
}
.deploy-card ul li { margin-bottom: 0.1rem; }

.deploy-guarantee {
  font-size: 0.85rem;
  font-weight: 700;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.deploy-table-wrap { overflow-x: auto; margin: 1rem 0; }
.deploy-table-wrap .guide-table th { font-size: 0.82rem; }
.deploy-table-wrap .guide-table td { font-size: 0.85rem; }

/* ── Demo project cards ─────────────────────────────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 700px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: inherit;
}
.demo-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  text-decoration: none;
}
.demo-card h3 { font-size: 18px; font-weight: 600; color: var(--ink, var(--navy)); margin-bottom: 6px; }
.demo-card .stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.demo-card .demo-link { font-size: 14px; font-weight: 500; color: var(--accent); }
.demo-card:hover .demo-link { text-decoration: underline; }
.demo-card .demo-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Architecture section (guide.html) ──────────────────────────────────── */
.arch-flow { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; background: var(--surface); }
.arch-row { display: flex; gap: 1rem; align-items: flex-start; }
.arch-box { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 1rem; }
.arch-box-local { border-color: #3b5bdb; background: #f0f4ff; }
.arch-box-gate  { border-color: #e67e22; background: #fff8f0; }
.arch-box-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.6rem; }
.arch-step  { font-size: 0.82rem; color: var(--text); padding: 0.2rem 0; border-bottom: 1px solid var(--border); }
.arch-step:last-child { border-bottom: none; }
.arch-note  { font-size: 0.78rem; color: #c0392b; font-weight: 600; margin-top: 0.5rem; }
.arch-arrows { display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; min-width: 160px; }
.arch-call  { font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; color: var(--muted); text-align: center; white-space: nowrap; }
.arch-llm-row { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
.arch-call-wide { font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; color: var(--text); text-align: center; }
.arch-cmd { margin: 1rem 0; padding: 0.85rem 1.1rem; background: #0f1629; border-radius: 6px; display: flex; flex-direction: column; gap: 0.35rem; }
.arch-cmd code { color: #7dd3fc; font-size: 0.88rem; font-family: 'JetBrains Mono', monospace; }
.arch-cmd-note { color: #64748b; font-size: 0.78rem; }
@media (max-width: 700px) {
  .arch-row { flex-direction: column; }
  .arch-arrows { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: unset; }
}
