/* ─── Agentic CLI — Staff+ marketing site ─── */

:root {
  /* Light site theme */
  --bg: #f3f5f8;
  --bg-deep: #e8ecf2;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border: rgba(15, 23, 42, 0.09);
  --border-bright: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #667085;
  --link: #7a5a2a;
  --link-hover: #0f172a;
  --link-underline: rgba(122, 90, 42, 0.35);
  --accent: #3d5f8a;
  --accent-dim: rgba(61, 95, 138, 0.08);
  --accent-glow: rgba(61, 95, 138, 0.16);
  --glass: rgba(61, 95, 138, 0.05);
  --glass-edge: rgba(61, 95, 138, 0.14);
  --relay: #6f5620;
  --relay-dim: rgba(154, 123, 60, 0.1);
  --fail: #a85858;
  --fail-dim: rgba(168, 88, 88, 0.08);
  --violet: #4c5f84;
  --violet-dim: rgba(90, 111, 150, 0.08);
  --warn: #9a7b3c;
  --danger: #b85454;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  /* Dark inset surfaces — terminals, code panels, TUI mock */
  --inset-bg: #0a0c10;
  --inset-bg-deep: #07080c;
  --inset-bg-elevated: #0d1017;
  --inset-border: rgba(148, 163, 184, 0.14);
  --inset-border-bright: rgba(148, 163, 184, 0.24);
  --inset-text: #e8ecf2;
  --inset-text-muted: #8490a4;
  --inset-text-dim: #5a6478;
  --inset-accent: #b4c4dc;
  --inset-relay: #c4a882;
  --inset-fail: #b89aa0;
  --inset-violet: #94a8c4;
  --inset-glass-edge: rgba(180, 200, 230, 0.18);
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --nav-h: 64px;
  --container: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(168deg, #ffffff 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.15em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s;
}

a:visited { color: var(--link); }

a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--text-muted);
}

a:focus-visible {
  outline: 2px solid var(--border-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ─── Ambient ─── */

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 10%, transparent 75%);
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 35%, rgba(243, 245, 248, 0.65) 90%);
}

/* ─── Typography ─── */

h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.text-gradient {
  background: linear-gradient(120deg, #0f172a 0%, #3d5f8a 45%, #5a6f96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

code, pre, .install-cmd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn--primary {
  background: #0f172a;
  color: #f8fafc;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* Keep button label colors when the button is an <a> */
.btn--primary,
.btn--primary:hover,
.btn--primary:visited {
  color: #f8fafc;
}

.btn--primary:hover {
  opacity: 0.92;
  filter: none;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.btn--ghost,
.btn--ghost:visited {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn--ghost:hover {
  background: var(--bg-card-hover);
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text);
}

/* ─── Nav ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav--scrolled { background: rgba(255, 255, 255, 0.95); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav__logo { color: var(--text); }

.nav__name {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.nav__dot { color: var(--text-muted); font-weight: 400; }

.nav__links {
  display: flex;
  gap: 1.75rem;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

.nav__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s;
}

/* ─── Hero ─── */

.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 2.75rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badge__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

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

.hero__title {
  font-size: clamp(2.25rem, 4.4vw, 3.15rem);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.hero__guarantees {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero__guarantees li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero__guarantee-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__guarantee-icon--swarm { background: var(--accent); }
.hero__guarantee-icon--human { background: var(--relay); }
.hero__guarantee-icon--trust { background: var(--text-muted); }

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__install {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.install-cmd {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.install-cmd:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.install-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Terminal — always dark inset */

.terminal {
  background: var(--inset-bg-elevated);
  border: 1px solid var(--inset-border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--inset-text);
  box-shadow:
    var(--shadow-lg),
    0 16px 48px rgba(4, 6, 12, 0.28);
}

.hero__terminal {
  min-width: 0; /* allow grid column shrink + wrap */
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--inset-border);
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal__dot--red { background: #c49090; }
.terminal__dot--yellow { background: #c4a882; }
.terminal__dot--green { background: #8490a4; }

.terminal__title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--inset-text-dim);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal__status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--inset-text-muted);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--inset-border);
  border-radius: 4px;
}

.terminal__status.is-warn { color: var(--inset-relay); border-color: rgba(196, 168, 130, 0.35); }
.terminal__status.is-fail { color: var(--inset-fail); border-color: rgba(184, 154, 160, 0.35); }

.terminal__body {
  margin: 0;
  padding: 1.6rem 1.5rem 1.85rem;
  min-height: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
  overflow-x: auto;
  overflow-y: visible;
}

.terminal__lines {
  display: block;
  font: inherit;
  color: inherit;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
}

.terminal__lines > div {
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: normal;
}

.terminal__lines > div.is-cmd { margin-top: 0.7rem; }
.terminal__lines > div.is-cmd:first-child { margin-top: 0; }

.terminal__lines > div:empty { min-height: 1.65em; }

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--inset-text-muted);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

.t-prompt { color: var(--inset-text-muted); }
.t-cmd { color: var(--inset-text); }
.t-dim { color: var(--inset-text-dim); }
.t-agent { color: var(--inset-accent); font-weight: 500; }
.t-warn { color: var(--inset-relay); font-weight: 600; }
.t-ok { color: var(--inset-text-muted); font-weight: 600; }
.t-err { color: var(--inset-fail); font-weight: 600; }

/* Hero stats */

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated);
}

.stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Sections ─── */

.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section--alt { background: #eef1f6; }

/* Subtle tinted bands on light theme */
.section--light {
  background: linear-gradient(
    180deg,
    #eef1f6 0%,
    #f8f9fb 20%,
    #ffffff 50%,
    #f8f9fb 80%,
    #eef1f6 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--light .platform-pillar {
  background: var(--bg-elevated);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-sm);
}

.section--light .platform-pillar--govern {
  background: linear-gradient(135deg, rgba(61, 95, 138, 0.06), rgba(90, 111, 150, 0.04));
  border-color: rgba(61, 95, 138, 0.18);
}

.section--light .platform-pillar__label {
  border-bottom-color: var(--border);
}

.section--light .moat-card {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.section--light .platform-pillar__cards .promise-card__cmd {
  background: var(--inset-bg);
  border-color: var(--inset-border-bright);
  color: var(--inset-text);
}

.section--light .compare-table-wrap {
  background: var(--bg-elevated);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md);
}

.section--light .compare-table th {
  background: #f1f5f9;
}

.section--light .compare-table th,
.section--light .compare-table td {
  border-bottom-color: var(--border);
}

.section--light .compare-table__us {
  background: linear-gradient(90deg, rgba(61, 95, 138, 0.08), transparent);
}

.section--light .compare-card {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.section--light .compare-card--us {
  background: linear-gradient(135deg, rgba(61, 95, 138, 0.06), rgba(90, 111, 150, 0.04));
  border-color: rgba(61, 95, 138, 0.2);
}

.section__header { max-width: 640px; margin-bottom: 3.5rem; }
.section__header--center { text-align: center; margin-inline: auto; }

.section__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section__title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Gap grid */

.gap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gap-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.gap-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gap-card--accent {
  background: linear-gradient(135deg, var(--accent-dim), var(--violet-dim));
  border-color: rgba(160, 185, 220, 0.2);
}

.gap-card__icon {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.gap-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.gap-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.gap-card strong { color: var(--text); }

/* Commands */

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.command-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.command-card:hover { background: var(--bg-card-hover); border-color: var(--border-bright); box-shadow: var(--shadow-md); }

.command-card--highlight {
  border-color: rgba(160, 185, 220, 0.25);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-dim));
}

.command-card code {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.command-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compose-block {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compose-block h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

.compose-cmds {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compose-cmds pre {
  padding: 0.85rem 1.1rem;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
  border-radius: 8px;
  overflow-x: auto;
}

.compose-cmds code {
  font-size: 0.82rem;
  color: var(--inset-text);
}

/* YAML section */

.yaml-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Code panels — dark inset (YAML, policy snippets) */

.code-panel {
  background: var(--inset-bg-elevated);
  border: 1px solid var(--inset-border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--inset-text);
  box-shadow: var(--shadow-lg), 0 16px 48px rgba(4, 6, 12, 0.22);
}

.code-panel__bar {
  padding: 0.7rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--inset-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--inset-text-dim);
}

.code-panel__body {
  padding: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-panel .y-key { color: var(--inset-accent); }
.code-panel .y-str { color: var(--inset-text); }
.code-panel .y-num { color: var(--inset-text-muted); }
.code-panel .y-cmt { color: var(--inset-text-dim); font-style: italic; }

.y-key { color: var(--accent); }
.y-str { color: var(--text); }
.y-num { color: var(--text-muted); }
.y-cmt { color: var(--text-dim); font-style: italic; }

/* Architecture */

.arch-diagram {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.arch-layer--top { display: flex; justify-content: center; }

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  flex: 1;
}

.arch-node--wide { min-width: 280px; }

.arch-node--primary {
  border-color: rgba(160, 185, 220, 0.3);
  background: var(--accent-dim);
}

.arch-node--ci {
  border-color: rgba(124, 108, 240, 0.3);
  background: var(--violet-dim);
}

.arch-node__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.arch-node__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.arch-node__sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.arch-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  opacity: 0.5;
}

.arch-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.layer-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.layer-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Compare table */

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: #f1f5f9;
}

.compare-table__check { text-align: center; width: 56px; }

.compare-table__check--govern { color: var(--accent); }

.compare-table td:nth-child(n+3) {
  text-align: center;
  font-family: var(--font-mono);
}

.compare-table .yes { color: var(--accent); font-weight: 600; }
.compare-table .no { color: var(--text-dim); }
.compare-table .partial { color: var(--warn); }

.compare-table__us {
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

.compare-table__us td { border-bottom: none; }

/* Demo */

.demo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.demo-steps {
  list-style: none;
  margin-top: 2rem;
}

.demo-steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.demo-steps li span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-dim);
  border: 1px solid rgba(160, 185, 220, 0.25);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
}

.flow-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
}

.flow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-step--active { border-color: rgba(160, 185, 220, 0.3); }
.flow-step--warn { border-color: rgba(245, 166, 35, 0.4); background: rgba(245, 166, 35, 0.06); }
.flow-step--relay { border-color: rgba(124, 108, 240, 0.4); background: var(--violet-dim); }

.flow-step__agent {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet);
}

.flow-step--warn .flow-step__agent { color: var(--warn); }
.flow-step--relay .flow-step__agent { color: var(--violet); }

.flow-step__text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flow-arrow {
  text-align: center;
  color: var(--text-dim);
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

/* Research */

.research-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-card), var(--violet-dim));
  border: 1px solid rgba(124, 108, 240, 0.2);
  border-radius: var(--radius-lg);
}

.research-quote {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin: 1rem 0 1.25rem;
  font-style: italic;
  border-left: 3px solid var(--violet);
  padding-left: 1.25rem;
}

.research-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.research-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.research-metric {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.research-metric__val {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: -0.03em;
}

.research-metric__lbl {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Moat + Pricing */

.moat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.moat-card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.moat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.moat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.moat-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Platform pillars (Connect | Run | Govern) */

.platform-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.platform-pillar {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.platform-pillar--govern {
  background: linear-gradient(135deg, var(--accent-dim), var(--violet-dim));
  border-color: rgba(160, 185, 220, 0.2);
}

.platform-pillar--lead {
  border-color: rgba(61, 95, 138, 0.22);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(61, 95, 138, 0.06);
}

@media (min-width: 1025px) {
  .platform-pillars:has(.platform-pillar--lead) {
    grid-template-columns: 1.12fr 1fr 1fr;
  }
}

.platform-pillar__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.platform-pillar--govern .platform-pillar__label {
  color: var(--violet);
}

.platform-pillar__cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.platform-pillar__cards .moat-card {
  padding: 1.25rem;
}

.platform-pillar__cards .moat-card:hover {
  transform: none;
}

.platform-pillar__cards .promise-card__cmd {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--inset-text);
  padding: 0.3rem 0.55rem;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border-bright);
  border-radius: 6px;
  margin-top: 0.5rem;
}

.moat-card code {
  color: var(--accent);
  font-size: 0.85em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pricing-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.pricing-card--featured {
  border-color: rgba(160, 185, 220, 0.35);
  background: linear-gradient(180deg, var(--accent-dim), var(--bg-card));
  box-shadow: 0 0 40px var(--accent-dim);
}

.pricing-card__tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.pricing-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Safety */

.safety-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.safety-list {
  list-style: none;
}

.safety-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.safety-list li strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.safety-list li span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--border));
  z-index: 0;
}

.timeline__item {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.timeline__item--active {
  border-color: rgba(160, 185, 220, 0.4);
  background: var(--accent-dim);
}

.timeline__date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.timeline__item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.timeline__item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA */

.cta-section { padding-bottom: 8rem; }

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-card > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto 1rem;
}

.waitlist-form input {
  flex: 1;
  padding: 0.75rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.waitlist-form input::placeholder { color: var(--text-dim); }

.waitlist-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cta-msg {
  margin: 0 auto 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cta-msg.is-success { color: var(--accent); }
.cta-msg.is-error { color: var(--fail); }

.cta-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cta-note a { color: var(--link); text-decoration: none; }
.cta-note a:hover { color: var(--link-hover); text-decoration: underline; }

/* Footer */

.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: #eef1f6;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.footer__links {
  display: flex;
  gap: 1.75rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__copy {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ─── Scroll reveal ─── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .hero__grid,
  .yaml-grid,
  .demo-grid,
  .research-card,
  .safety-grid { grid-template-columns: 1fr; }

  .moat-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-pillars { grid-template-columns: 1fr; }
  .layers-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .arch-row { flex-direction: column; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions { display: none; }

  .nav__menu { display: flex; }

  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

  .gap-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .moat-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
  .waitlist-form { flex-direction: column; }
}

/* ─── Contrast (before / after) ─── */

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

.contrast-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.contrast-panel--bad { border-color: rgba(184, 154, 160, 0.2); }
.contrast-panel--good { border-color: var(--glass-edge); }

.contrast-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: #f1f5f9;
}

.contrast-panel__label {
  font-size: 0.82rem;
  font-weight: 600;
}

.contrast-panel__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--fail-dim);
  color: var(--fail);
}

.contrast-panel__tag--ok {
  background: var(--accent-dim);
  color: var(--accent);
}

.contrast-panel__body {
  padding: 1.1rem;
  flex: 1;
}

.contrast-panel__foot {
  padding: 0.75rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.slack-thread { display: flex; flex-direction: column; gap: 0.5rem; }

.slack-msg {
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  line-height: 1.45;
}

.slack-msg strong { color: var(--text); font-weight: 500; }
.slack-msg--warn { border-left: 2px solid var(--fail); color: var(--text); }
.slack-msg--dim { opacity: 0.55; font-style: italic; }

.relay-queue { display: flex; flex-direction: column; gap: 0.45rem; }

.relay-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
}

.relay-item--active { border-color: rgba(196, 168, 130, 0.35); background: var(--relay-dim); }
.relay-item--dim { opacity: 0.6; }

.relay-item__id {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.68rem;
}

.relay-item__text { color: var(--text-muted); }
.relay-item__text code { font-size: 0.72rem; color: var(--accent); }

.relay-item__badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  background: var(--relay-dim);
  color: var(--relay);
}

.relay-item__badge--fail { background: var(--fail-dim); color: var(--fail); }

/* ─── Promise ─── */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.promise-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
}

.promise-card--human { background: linear-gradient(180deg, var(--relay-dim), var(--bg-elevated) 40%); }
.promise-card--trust { background: linear-gradient(180deg, var(--violet-dim), var(--bg-elevated) 40%); }

.promise-card__index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.promise-card h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.65rem;
}

.promise-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.promise-card__cmd {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--inset-text);
  padding: 0.3rem 0.55rem;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border-bright);
  border-radius: 6px;
}
/* Keep a subtle brand tint only on the leading command token, kept bright enough to read. */
.promise-card--human .promise-card__cmd { color: #e2d4b4; }
.promise-card--trust .promise-card__cmd { color: #cdd8ea; }

/* ─── Loop ─── */

.loop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.loop-example-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.loop-example-badge code {
  font-size: 0.78rem;
  color: var(--accent);
}

.loop-example-badge span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.loop-callout {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--accent-dim);
  border: 1px solid rgba(180, 200, 230, 0.18);
  border-radius: var(--radius);
}

.loop-callout strong { color: var(--text); }

.loop-visual__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.loop-visual__label code { color: var(--accent); font-size: 0.72rem; }

.loop-steps {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.loop-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.loop-progress__seg {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.35s var(--ease), box-shadow 0.35s;
}

.loop-progress__seg.is-done { background: var(--accent); }
.loop-progress__seg.is-active {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.loop-step { list-style: none; }

.loop-step__btn {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.loop-step__btn:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.loop-step.is-active .loop-step__btn {
  background: var(--accent-dim);
  border-color: rgba(180, 200, 230, 0.25);
}

.loop-step__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.loop-step.is-active .loop-step__num { color: var(--accent); }

.loop-step__btn strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.loop-step__btn span:last-child {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.loop-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.loop-workflow-tabs {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.loop-workflow-tab {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.loop-workflow-tab.is-active {
  border-color: rgba(180, 200, 230, 0.35);
  color: var(--accent);
  background: var(--accent-dim);
}

.loop-stage-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
  border-radius: var(--radius);
  min-height: 7.5rem;
  color: var(--inset-text-muted);
}

.loop-stage-panel__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--inset-accent);
  margin-bottom: 0.65rem;
}

.loop-stage-panel__trace {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--inset-text-muted);
  margin: 0;
  white-space: pre-wrap;
}

.loop-stage-panel__trace .t-warn { color: var(--inset-relay); }
.loop-stage-panel__trace .t-err { color: var(--inset-fail); }
.loop-stage-panel__trace .t-agent { color: var(--inset-violet); }

.loop-stage-panel__hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--inset-text-dim);
  line-height: 1.5;
}

.loop-visual {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.swarm-dag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dag-node {
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0.35;
  transition: opacity 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.dag-node.is-lit {
  opacity: 1;
  border-color: rgba(61, 95, 138, 0.35);
  box-shadow: 0 0 20px var(--accent-dim);
  background: var(--bg-elevated);
}

.dag-node span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: lowercase;
}

.dag-node small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dag-node--auditor.is-lit { border-color: rgba(196, 168, 130, 0.4); box-shadow: 0 0 24px var(--relay-dim); }
.dag-node--relay.is-lit { border-color: rgba(196, 168, 130, 0.45); }
.dag-node--eval.is-lit { border-color: rgba(184, 154, 160, 0.35); box-shadow: 0 0 24px var(--fail-dim); }

.dag-edge {
  width: 2px;
  height: 20px;
  background: var(--border-bright);
  transition: background 0.4s;
}

.dag-edge.is-lit { background: var(--accent); }
.dag-edge--warn.is-lit { background: var(--relay); }
.dag-edge--ci.is-lit { background: var(--fail); }

.loop-visual__caption {
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Engineering ─── */

.eng-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.command-strip__item {
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.command-strip__item--primary {
  border-color: rgba(180, 200, 230, 0.2);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-dim));
}

.command-strip__item code {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.command-strip__item span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.pipe-block {
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.pipe-block__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.pipe-block__code {
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 0.85rem 1rem;
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
  border-radius: 8px;
  color: var(--inset-text-muted);
  overflow-x: auto;
}

.pipe-block--tui-cmds .pipe-block__code {
  color: var(--inset-violet);
}

.compose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.compose-chip {
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
}

.compose-chip--us {
  border-color: var(--glass-edge);
  color: var(--text);
  background: var(--glass);
}

.compose-chip--ent {
  border-color: rgba(148, 168, 196, 0.3);
  color: var(--violet);
}

.compose-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.eng-artifacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.code-panel--compact .code-panel__body {
  padding: 1rem;
  font-size: 0.74rem;
}

.pipe-block kbd {
  font-family: var(--font-mono);
  font-size: 0.72em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border-bright);
  background: var(--bg-elevated);
}

/* ─── TUI mock — dark inset (terminal-style) ─── */

.tui-mock {
  display: flex;
  flex-direction: column;
  background: var(--inset-bg-elevated);
  border: 1px solid var(--inset-border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--inset-text-muted);
  box-shadow: var(--shadow-lg), 0 16px 48px rgba(4, 6, 12, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.tui-mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--inset-border);
}

.tui-mock__title {
  color: var(--inset-violet);
  font-weight: 600;
  font-size: 0.74rem;
}

.tui-mock__hint {
  color: var(--inset-text-dim);
  font-size: 0.62rem;
}

.tui-mock__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--inset-border);
  background: rgba(0, 0, 0, 0.2);
}

.tui-mock__tab {
  padding: 0.45rem 0.75rem;
  color: var(--inset-text-dim);
  border-bottom: 2px solid transparent;
  font-size: 0.68rem;
}

.tui-mock__tab.is-active {
  color: var(--inset-text);
  border-bottom-color: var(--inset-violet);
  background: rgba(148, 168, 196, 0.08);
}

.tui-mock__body {
  flex: 1;
  min-height: 7.5rem;
  padding: 0.35rem 0;
}

.tui-mock__row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  color: var(--inset-text-muted);
}

.tui-mock__row.is-selected {
  background: rgba(148, 168, 196, 0.12);
  color: var(--inset-text);
}

.tui-mock__row--dim { opacity: 0.72; }

.tui-mock__id {
  color: var(--inset-text-dim);
  font-size: 0.64rem;
}

.tui-mock__row.is-selected .tui-mock__id { color: var(--inset-violet); }

.tui-mock__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
}

.tui-mock__text .t-warn { color: var(--inset-relay); }

.tui-mock__badge {
  font-size: 0.58rem;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(196, 168, 130, 0.12);
  color: var(--inset-relay);
  border: 1px solid rgba(196, 168, 130, 0.25);
}

.tui-mock__badge--fail {
  background: rgba(184, 154, 160, 0.12);
  color: var(--inset-fail);
  border-color: rgba(184, 154, 160, 0.25);
}

.tui-mock__cmdbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--inset-border);
  background: rgba(0, 0, 0, 0.25);
}

.tui-mock__cmdprompt {
  color: var(--inset-violet);
  font-weight: 600;
}

.tui-mock__cmdinput {
  color: var(--inset-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tui-mock__cmdcursor {
  width: 0.55em;
  height: 1em;
  background: var(--inset-violet);
  opacity: 0.85;
  animation: tui-blink 1s step-end infinite;
}

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

.tui-mock__cmdhint {
  padding: 0.35rem 0.75rem 0.55rem;
  font-size: 0.62rem;
  color: var(--inset-text-dim);
  border-top: 1px solid var(--inset-border);
  background: rgba(0, 0, 0, 0.3);
}

/* ─── Compare mobile ─── */

.compare-mobile { display: none; }

.compare-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.compare-card--us {
  border-color: rgba(180, 200, 230, 0.3);
  background: var(--accent-dim);
}

.compare-card h3 { font-size: 0.92rem; margin-bottom: 0.35rem; }
.compare-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.compare-card__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ─── Proof ─── */

.proof-quote {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.proof-quote p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.proof-quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.proof-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

.proof-quote footer span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ─── Spec panel ─── */

.spec-panel {
  display: grid;
  gap: 2rem;
}

.spec-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .spec-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .spec-links {
    grid-template-columns: repeat(5, 1fr);
  }
}

.spec-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.spec-link:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.spec-link strong { font-size: 0.95rem; }
.spec-link span { font-size: 0.8rem; color: var(--text-dim); }

.spec-roadmap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.spec-roadmap__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.spec-roadmap__item span {
  color: var(--text-muted);
  margin-right: 0.75rem;
}

.spec-roadmap__item.is-now span { color: var(--accent); }

/* ─── Staff+ responsive ─── */

@media (max-width: 1024px) {
  .contrast-grid,
  .loop-grid,
  .eng-grid,
  .promise-grid,
  .spec-links { grid-template-columns: 1fr; }

  .loop-visual { position: static; }
}

@media (max-width: 768px) {
  .compare-desktop { display: none; }
  .compare-mobile { display: block; }
  .command-strip { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .terminal__cursor,
  .tui-mock__cmdcursor { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── 404 ─── */

.page-404 { min-height: 100vh; display: flex; flex-direction: column; }

.err404 {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}

.err404__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.err404__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.err404__cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.err404__terminal .terminal__body { min-height: auto; }

.err404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.err404__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.err404__links a:hover { color: var(--link-hover); }

@media (max-width: 1024px) {
  .err404__grid { grid-template-columns: 1fr; }
}

/* ─── Product lineup (CLI · Cloud · Gateway) ─── */
/* ── Lineup carousel (coverflow: one card in focus, neighbours peek) ── */
.lineup-carousel {
  position: relative;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.lineup-viewport {
  overflow: hidden;
  padding: 1.25rem 0 1.5rem;
}

.lineup-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  will-change: transform;
  transition: transform 0.5s var(--ease);
}

/* Each card is fixed-width so neighbours can peek at the viewport edges. */
.lineup-track .tier-card {
  flex: 0 0 clamp(280px, 78vw, 460px);
  width: clamp(280px, 78vw, 460px);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease),
    box-shadow 0.3s, border-color 0.3s, filter 0.5s var(--ease);
}

/* Non-focused cards recede and dim; clicking one brings it to focus. */
.lineup-track .tier-card:not(.is-active) {
  transform: scale(0.9);
  opacity: 0.55;
  filter: saturate(0.7);
  cursor: pointer;
}
.lineup-track .tier-card:not(.is-active):hover {
  opacity: 0.82;
  transform: scale(0.92);
}
.lineup-track .tier-card.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: var(--shadow-lg);
}
/* Focus card should not lift on hover inside the carousel (transform is managed). */
.lineup-track .tier-card.is-active:hover { transform: scale(1); }

.lineup-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.15s;
}
.lineup-arrow:hover { background: var(--bg-card-hover); border-color: var(--accent); box-shadow: var(--shadow-md); }
.lineup-arrow:active { transform: scale(0.94); }
.lineup-arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.lineup-arrow:disabled:hover { background: var(--bg-elevated); border-color: var(--border-bright); }

.lineup-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.25rem;
}
.lineup-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--border-bright);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}
.lineup-dot:hover { background: var(--text-dim); }
.lineup-dot.is-active { background: var(--accent); width: 22px; border-radius: 5px; }

/* No-JS / reduced-motion fallback: show all three as a simple grid. */
.no-js .lineup-viewport,
.lineup-carousel:not([data-ready]) .lineup-track {
  overflow: visible;
}
.lineup-carousel:not([data-ready]) .lineup-track {
  flex-wrap: wrap;
  justify-content: center;
}
.lineup-carousel:not([data-ready]) .lineup-arrow,
.lineup-carousel:not([data-ready]) .lineup-dots { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lineup-track,
  .lineup-track .tier-card { transition: none; }
}

.tier-card {
  --tier-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.tier-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tier-accent);
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-bright);
}

.tier-card--cli { --tier-accent: var(--accent); }
.tier-card--cloud { --tier-accent: var(--relay); }
.tier-card--gateway { --tier-accent: var(--violet); }
.tier-card--lead { box-shadow: var(--shadow-md), 0 0 0 1px rgba(61, 95, 138, 0.08); }

/* ── illustrative visual (dark inset — matches terminals/panels) ── */
.tier-viz {
  padding: 0.85rem 0.9rem;
  background: var(--inset-bg);
  border-bottom: 1px solid var(--inset-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--inset-text-muted);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tier-viz__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--inset-border);
}

.tv-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tv-dot--r { background: #c86a6a; }
.tv-dot--y { background: #c2a25f; }
.tv-dot--g { background: #6aa77e; }
.tv-bar-label { margin-left: auto; color: var(--inset-text-dim); font-size: 0.68rem; }
.tv-bar-label--left { margin: 0 auto 0 0; color: var(--inset-relay); }
.tv-live { margin-left: auto; color: #6aa77e; font-size: 0.66rem; }

.tier-viz__lines,
.tier-viz__rows { display: flex; flex-direction: column; gap: 0.4rem; }

.tv-line { color: var(--inset-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ok { color: #6aa77e; }
.tv-no { color: var(--inset-fail); }
.tv-path { color: var(--inset-text-muted); }
.tv-tag { color: var(--inset-relay); }
.tv-dim { color: var(--inset-text-dim); }

.tv-row { display: flex; align-items: center; gap: 0.5rem; color: var(--inset-text); }
.tv-id { color: var(--inset-relay); min-width: 4.4em; }
.tv-txt { color: var(--inset-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-badge {
  margin-left: auto;
  font-size: 0.6rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--inset-border-bright);
  color: var(--inset-text-muted);
  white-space: nowrap;
}
.tv-badge--ok { color: #7cba94; border-color: rgba(124, 186, 148, 0.4); }
.tv-badge--warn { color: var(--inset-relay); border-color: rgba(196, 168, 130, 0.4); }

/* gateway mesh diagram */
.tier-viz--mesh { align-items: center; justify-content: center; gap: 0.8rem; }
.tv-mesh-row { display: flex; align-items: center; gap: 0.4rem; }
.tv-node {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.58rem; line-height: 1.1;
  color: var(--inset-text);
  background: var(--inset-bg-elevated);
  border: 1px solid var(--inset-border-bright);
}
.tv-node--ext { color: var(--inset-violet); border-color: rgba(148, 168, 196, 0.5); }
.tv-link {
  position: relative; width: 58px; height: 1px;
  background: linear-gradient(90deg, var(--inset-border-bright), var(--inset-violet));
}
.tv-gate {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 0.55rem; padding: 0.05rem 0.4rem; border-radius: 999px;
  background: var(--inset-bg-elevated); border: 1px solid var(--inset-border-bright);
  color: var(--inset-accent); white-space: nowrap;
}
.tv-settle { font-size: 0.62rem; color: #7cba94; }

/* ── card body ── */
.tier-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}

.tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tier-card__step {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tier-accent);
}

.tier-card__model {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tier-card__model--free { color: var(--accent); background: var(--accent-dim); border: 1px solid var(--glass-edge); }
.tier-card__model--paid { color: var(--relay); background: var(--relay-dim); border: 1px solid rgba(154, 123, 60, 0.25); }
.tier-card__model--soon { color: var(--violet); background: var(--violet-dim); border: 1px solid rgba(148, 168, 196, 0.3); }

.tier-card__name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tier-card__tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.tier-card__desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.tier-card__caps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.tier-card__caps li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1.3rem;
  position: relative;
}

.tier-card__caps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tier-accent);
  font-weight: 700;
}

.tier-card__foot { margin-top: auto; }

.tier-card__cmd {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--inset-text);
  background: var(--inset-bg);
  border: 1px solid var(--inset-border);
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: nowrap;
}

.lineup-boundary {
  margin-top: 1.9rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.lineup-boundary strong { color: var(--text); }

@media (max-width: 860px) {
  /* Arrows tuck to the sides over the peeking cards; track gap tightens. */
  .lineup-carousel { grid-template-columns: 1fr; gap: 0.75rem; }
  .lineup-arrow--prev, .lineup-arrow--next {
    position: absolute;
    top: calc(50% - 1rem);
    transform: translateY(-50%);
    z-index: 3;
  }
  .lineup-arrow--prev { left: 2px; }
  .lineup-arrow--next { right: 2px; }
  .lineup-arrow--prev:active, .lineup-arrow--next:active { transform: translateY(-50%) scale(0.94); }
  .lineup-track { gap: 1rem; }
}

/* GitHub source link on the open-source CLI tier card */
.tier-card__src {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.76rem;
  color: var(--accent);
  text-decoration: none;
}
.tier-card__src:hover { color: var(--link-hover); text-decoration: underline; }

/* ─── Copy-to-clipboard toast (install command stays visible) ─── */
.copy-toast {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2f7d54;
  background: rgba(106, 167, 126, 0.14);
  border: 1px solid rgba(106, 167, 126, 0.45);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.copy-toast.is-visible { opacity: 1; transform: none; }
.install-cmd.is-copied {
  border-color: rgba(106, 167, 126, 0.7);
  background: rgba(106, 167, 126, 0.08);
}

/* ─── Footer — dark & premium ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--inset-border);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(61, 95, 138, 0.10), transparent 55%),
    linear-gradient(180deg, var(--inset-bg-elevated), var(--inset-bg-deep));
  color: var(--inset-text-muted);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: start;
  gap: 3rem;
  text-align: left;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--inset-text);
}
.footer__logo .nav__name { color: var(--inset-text); }
.footer__logo .nav__dot { color: var(--inset-accent); }
.footer__brand p {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--inset-text-dim);
  max-width: 32ch;
}
.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--inset-border);
  color: var(--inset-text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover {
  color: var(--inset-text);
  border-color: var(--inset-border-bright);
  background: rgba(180, 200, 230, 0.06);
  transform: translateY(-2px);
}
.footer__social svg { width: 19px; height: 19px; fill: currentColor; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--inset-text-dim);
  margin-bottom: 0.35rem;
}
.footer__col a {
  color: var(--inset-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--inset-text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--inset-border);
}
.footer__copy,
.footer__built {
  font-size: 0.8rem;
  color: var(--inset-text-dim);
  text-align: left;
}
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer__copy, .footer__built { text-align: center; }
}

/* ─── Terminal success state ─── */
.terminal__status.is-ok { color: #6aa77e; border-color: rgba(106,167,126,0.4); }

/* ─── Per-product bands (CLI · Cloud · Gateway) ─── */
.product-band {
  position: relative;
  padding: 3.25rem 0 0.75rem;
  border-top: 1px solid var(--border);
  --band-accent: var(--accent);
}
.product-band::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 64px; height: 3px;
  background: var(--band-accent);
}
.product-band--cli { --band-accent: var(--accent); }
.product-band--cloud { --band-accent: var(--relay); }
.product-band--gateway { --band-accent: var(--violet); }

.product-band__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.75rem;
  align-items: center;
}
.product-band__num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--band-accent);
  opacity: 0.3;
}
.product-band__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-accent);
}
.product-band__name {
  font-size: 1.9rem;
  margin-top: 0.35rem;
  letter-spacing: -0.01em;
}
.product-band__type { color: var(--text-muted); font-weight: 500; font-size: 0.88em; }
.product-band__desc {
  margin-top: 0.6rem;
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 0.95rem;
}
.product-band__cta { white-space: nowrap; justify-self: end; }
@media (max-width: 760px) {
  .product-band__inner { grid-template-columns: auto 1fr; }
  .product-band__cta { grid-column: 1 / -1; justify-self: start; }
}

/* Cloud-labeled eyebrows on the deep sections */
.section__eyebrow--cloud { color: var(--relay); }

/* Hero product cards */
.hero__guarantees--products { gap: 0.5rem; }

.hero__guarantees--products .hero__product {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hero__guarantees--products .hero__product:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }

.hero__product-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: none;
}

.hero__product-name {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text);
}
.hero__product:hover .hero__product-name { color: var(--accent); }

.hero__product-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  background: var(--bg-deep);
  white-space: nowrap;
}
.hero__product-status--free { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.hero__product-status--soon { color: var(--relay); border-color: color-mix(in srgb, var(--relay) 35%, transparent); background: color-mix(in srgb, var(--relay) 10%, transparent); }

.hero__product-desc {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* CLI detail section */
.install-cmd { max-width: 100%; overflow-x: auto; white-space: nowrap; }
.cli-install { align-items: center; margin-bottom: 2.25rem; }
.install-cmd--lg { font-size: 0.95rem; padding: 0.8rem 1.25rem; }
.cli-loop { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.25rem; }
.cli-loop__step {
  flex: 1 1 175px;
  min-width: 155px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cli-loop__k { font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.cli-loop__step span:last-child { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.cli-loop__arrow { align-self: center; color: var(--text-dim); font-size: 1.1rem; }
@media (max-width: 760px) { .cli-loop__arrow { display: none; } }
.cli-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 760px) { .cli-cards { grid-template-columns: 1fr; } }
.cli-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.cli-links a { font-size: 0.9rem; }

/* Gateway detail section */
.gateway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gateway-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gateway-grid { grid-template-columns: 1fr; } }

/* ─── a11y: visible focus on all interactive controls ─── */
a:focus-visible,
.btn:focus-visible,
.install-cmd:focus-visible,
.footer__social a:focus-visible,
.loop-step__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Cloud sections: carry the gold accent into inner tokens (was blue/violet) ─── */
#platform .platform-pillar__label { color: var(--relay); }
#platform .platform-pillar--govern {
  background: linear-gradient(135deg, var(--relay-dim), transparent);
  border-color: rgba(154, 123, 60, 0.22);
}
#platform .platform-pillar--govern .platform-pillar__label { color: var(--relay); }

/* Platform — inner code/keys/chips that still read blue → gold */
#platform .moat-card code { color: var(--relay); }
#platform .y-key { color: var(--relay); }
#platform .code-panel .y-key { color: var(--inset-relay); }
#platform .promise-card__cmd { color: var(--inset-relay); }

/* Engineering — command strip, code keys, moat code → gold */
#engineering .command-strip__item code { color: var(--relay); }
#engineering .moat-card code { color: var(--relay); }
#engineering .code-panel .y-key { color: var(--inset-relay); }
#engineering .platform-pillar__label { color: var(--relay); }

/* Loop — progress, DAG, steps, tabs, badge, stage panel → gold */
#loop .loop-example-badge code { color: var(--relay); }
#loop .loop-visual__label code { color: var(--relay); }

#loop .loop-progress__seg.is-done { background: var(--relay); }
#loop .loop-progress__seg.is-active {
  background: var(--relay);
  box-shadow: 0 0 12px var(--relay-dim);
}

#loop .loop-step.is-active .loop-step__btn {
  background: var(--relay-dim);
  border-color: rgba(154, 123, 60, 0.25);
}
#loop .loop-step.is-active .loop-step__num { color: var(--relay); }

#loop .loop-workflow-tab.is-active {
  border-color: rgba(154, 123, 60, 0.35);
  color: var(--relay);
  background: var(--relay-dim);
}

#loop .loop-callout {
  background: var(--relay-dim);
  border-color: rgba(154, 123, 60, 0.18);
}

/* generic lit DAG nodes/edges (planner, executor) — leave auditor/relay/eval variants as-is */
#loop .dag-node.is-lit:not(.dag-node--auditor):not(.dag-node--relay):not(.dag-node--eval) {
  border-color: rgba(154, 123, 60, 0.4);
  box-shadow: 0 0 20px var(--relay-dim);
  background: var(--bg-elevated);
}
#loop .dag-edge.is-lit:not(.dag-edge--warn):not(.dag-edge--ci) { background: var(--relay); }

#loop .loop-stage-panel__label { color: var(--inset-relay); }

/* Compare — govern column, "yes" checks, and the "us" highlight rows → gold */
#compare .compare-table td.yes { color: var(--relay); }
#compare .compare-table__check--govern { color: var(--relay); }
#compare .compare-table__us {
  background: linear-gradient(90deg, var(--relay-dim), transparent);
}
#compare .compare-card--us {
  background: linear-gradient(135deg, var(--relay-dim), transparent);
  border-color: rgba(154, 123, 60, 0.22);
}

/* ─── Copy-to-clipboard button (sits after each .install-cmd in a flex row) ─── */
.install-cmd { min-width: 0; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.copy-btn svg { width: 16px; height: 16px; }

.hero__guarantees--products .hero__product-name { white-space: nowrap; }
