:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #e7e3d8;
  background: #11110f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #11110f;
  --panel: #181815;
  --line: #35342d;
  --line-bright: #555247;
  --text: #e7e3d8;
  --muted: #9e9b91;
  --orange: #d86f36;
  --orange-bright: #f38a4c;
  --green: #90a86f;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 17, 15, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  min-height: 72px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #81502f;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    #2b241e;
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.brand-mark.brand-img {
  display: block;
  padding: 0;
  object-fit: cover;
  background: #000;
  border-radius: 9px;
  box-shadow:
    inset 0 0 0 3px #171512,
    3px 3px 0 #0c0c0b;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
}

.brand span:last-child,
.docs-brand span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong,
.docs-brand strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.brand small,
.docs-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.parent-site-link,
.docs-parent-link {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  transition: color 150ms ease;
}

.parent-site-link:hover,
.docs-parent-link:hover {
  color: var(--orange-bright);
}

.mobile-parent-site-link {
  display: none;
}

.docs-parent-link {
  display: inline-block;
  margin: 16px 0 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #bcb8ad;
  font-size: 0.82rem;
}

.main-nav a:hover,
.docs-top-actions a:hover {
  color: white;
}

.main-nav .nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  color: var(--text);
}

.menu-button,
.docs-menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 106px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  top: -220px;
  left: 42%;
  width: 620px;
  height: 620px;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(216, 111, 54, 0.14), transparent 66%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(580px, 1.25fr);
  align-items: center;
  gap: 58px;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.hero h1,
.section h2,
.final-cta h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 670px;
  margin-top: 24px;
  font-size: clamp(4rem, 7vw, 7.3rem);
  line-height: 0.91;
}

.hero h1 span {
  display: block;
  color: var(--orange-bright);
}

.hero-lead {
  max-width: 700px;
  margin: 34px 0 0;
  color: #d8d3c7;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-support {
  max-width: 630px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid var(--line-bright);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

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

.button-primary {
  border-color: #b05e32;
  background: var(--orange);
  color: #16120f;
  box-shadow: 4px 4px 0 #080807;
}

.button-primary:hover {
  background: var(--orange-bright);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.025);
}

.hero-terminal {
  display: inline-flex;
  gap: 9px;
  margin-top: 35px;
  padding: 11px 14px;
  border-left: 2px solid var(--green);
  background: rgba(0, 0, 0, 0.22);
  color: #989b8e;
  font-size: 0.74rem;
}

.hero-terminal span {
  color: var(--green);
}

.runtime-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #49463e;
  background: #141412;
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.36),
    inset 0 0 0 3px #0d0d0c;
  transform: rotate(0.35deg);
}

.runtime-shell::before,
.runtime-shell::after {
  position: absolute;
  z-index: 2;
  width: 5px;
  height: 5px;
  content: "";
  background: #716d61;
  box-shadow: 0 0 0 1px #080807;
}

.runtime-shell::before {
  top: 8px;
  left: 8px;
}

.runtime-shell::after {
  right: 11px;
  bottom: 10px;
}

.runtime-topbar,
.runtime-statusbar {
  display: flex;
  align-items: center;
  color: #aaa69b;
  font-family: "Courier New", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
}

.runtime-topbar {
  height: 40px;
  gap: 8px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #1f1f1b;
}

.runtime-id {
  margin-left: auto;
  color: #77746b;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(144, 168, 111, 0.55);
}

.runtime-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  min-height: 450px;
}

.runtime-chat,
.runtime-trace {
  padding: 19px;
}

.runtime-chat {
  border-right: 1px solid var(--line);
}

.user-message {
  width: 86%;
  margin-top: 18px;
  margin-left: auto;
  padding: 13px 14px;
  border: 1px solid #434138;
  background: #25241f;
  color: #d6d1c5;
  font-size: 0.76rem;
  line-height: 1.5;
}

.plan-card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #4b453b;
  border-left: 3px solid var(--orange);
  background:
    linear-gradient(125deg, rgba(216, 111, 54, 0.07), transparent 45%),
    #1c1b18;
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #878278;
  font-family: "Courier New", monospace;
  font-size: 0.64rem;
}

.live-chip {
  padding: 4px 7px;
  border: 1px solid #5d684c;
  color: var(--green);
}

.plan-card strong {
  display: block;
  margin-top: 18px;
  color: #ece6da;
  font-size: 0.87rem;
}

.plan-card p {
  margin: 9px 0 15px;
  color: #97938a;
  font-size: 0.74rem;
  line-height: 1.55;
}

.plan-card code {
  display: block;
  overflow: hidden;
  padding: 10px;
  background: #11110f;
  color: #b7b0a1;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #8f9584;
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
}

.stream-cursor {
  width: 6px;
  height: 12px;
  background: var(--green);
  animation: blink 1s steps(2, start) infinite;
}

.trace-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.trace-event {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid #34332e;
  background: #181816;
}

.trace-event {
  transition: border-color 0.35s ease, background 0.35s ease, opacity 0.35s ease;
  opacity: 0.55;
}

.trace-event.active {
  border-color: #6d664f;
  background: #201e18;
  opacity: 1;
}

.trace-event.done {
  opacity: 0.86;
  border-color: #45443c;
}

.trace-event.done > span {
  color: var(--green);
}

.trace-event > span {
  color: #67645c;
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
}

.trace-event div {
  min-width: 0;
}

.trace-event strong,
.trace-event small {
  display: block;
}

.trace-event strong {
  color: #bcb7aa;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.trace-event small {
  overflow: hidden;
  margin-top: 4px;
  color: #726f67;
  font-size: 0.57rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-statusbar {
  justify-content: space-between;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: #0e0e0d;
  color: #6f6d65;
}

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  max-width: 790px;
  margin-top: 18px;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.02;
}

.manifesto-grid,
.security-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.manifesto-copy {
  align-self: end;
}

.manifesto-copy > p,
.section-description,
.trace-copy > p,
.section-heading > p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.comparison-row {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #171714;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.comparison-row span {
  color: #747169;
  text-decoration: line-through;
}

.comparison-row strong {
  color: var(--green);
}

.capabilities-section {
  background: rgba(255, 255, 255, 0.01);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 54px;
}

.section-heading > p {
  max-width: 420px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  position: relative;
  min-height: 260px;
  padding: 31px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 45%),
    #151512;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.capability-card:hover {
  z-index: 1;
  background: #1b1a16;
  transform: translateY(-4px);
}

.card-index {
  color: #777168;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
}

.capability-card h3 {
  margin: 54px 0 12px;
  font-size: 1.4rem;
}

.capability-card p {
  color: #928f86;
  font-size: 0.9rem;
  line-height: 1.7;
}

.trace-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 88px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 23px;
  color: #c2bdb1;
  line-height: 1.55;
}

.feature-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--orange);
}

.graph-card {
  border: 1px solid #454239;
  background: #151512;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

/* ── Live system_graph embed ─────────────────────────────────────────── */
.live-demo-pill {
  padding: 3px 8px;
  border: 1px solid #5d684c;
  color: var(--green);
  animation: blink 2.4s steps(2, start) infinite;
}

.live-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0f14;
}

.live-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
}

@media (max-width: 900px) {
  .live-embed {
    aspect-ratio: 4 / 5;
  }

  .live-embed iframe {
    width: 300%;
    height: 300%;
    transform: scale(0.3334);
  }
}

/* ── Dashboard replica panel (hero) ──────────────────────────────────── */
.dash-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #35342d;
  border-radius: 10px;
  background:
    radial-gradient(circle at 82% 0%, rgba(216, 111, 54, 0.08), transparent 42%),
    #11110f;
  box-shadow:
    14px 14px 0 rgba(0, 0, 0, 0.36),
    0 0 60px rgba(216, 111, 54, 0.06);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #35342d;
  background: rgba(24, 24, 21, 0.92);
}

.dash-logo {
  color: #d86f36;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(216, 111, 54, 0.28);
}

.dash-chips {
  display: flex;
  gap: 6px;
}

.dash-chip {
  padding: 3px 8px;
  border: 1px solid #35342d;
  border-radius: 7px;
  color: #9e9b91;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.dash-chip-green {
  border-color: rgba(144, 168, 111, 0.55);
  color: #90a86f;
}

.dash-chip-blue {
  border-color: rgba(216, 111, 54, 0.52);
  color: #d86f36;
}

.dash-chip-pink {
  border-color: rgba(144, 168, 111, 0.42);
  color: #90a86f;
}

.dash-chip-theme {
  background: rgba(255, 255, 255, 0.035);
  color: #e7e3d8;
}

.dash-chat {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.dash-sender {
  color: #9e9b91;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dash-user-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.dash-user-row[hidden] {
  display: none;
}

.dash-user-bubble {
  min-height: 1.4em;
  min-width: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #2b241e;
  color: #e7e3d8;
  font-size: 0.78rem;
  font-weight: 600;
}

.dash-plan[hidden],
.dash-ai-row[hidden] {
  display: none;
}

.dash-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(216, 111, 54, 0.36);
  border-radius: 7px;
  background: rgba(216, 111, 54, 0.07);
  animation: dash-fade-in 0.35s ease-out;
}

.dash-plan-title {
  color: #d86f36;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.dash-plan-action {
  color: #e7e3d8;
  font-family: "Courier New", monospace;
  font-size: 0.6rem;
  font-weight: 700;
}

.dash-ai-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  animation: dash-fade-in 0.35s ease-out;
}

.dash-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-copy {
  padding: 2px 8px;
  border: 1px solid rgba(216, 111, 54, 0.34);
  border-radius: 7px;
  background: rgba(216, 111, 54, 0.07);
  color: #e7e3d8;
  font-size: 0.55rem;
  font-weight: 800;
}

.dash-ai-bubble {
  min-height: 1.5em;
  max-width: 92%;
  padding: 10px 14px;
  border: 1px solid #35342d;
  border-radius: 12px;
  background: #181815;
  color: #e7e3d8;
  font-size: 0.78rem;
  line-height: 1.55;
  vertical-align: top;
}

#dashAiText {
  white-space: pre-line;
}

.dash-caret {
  display: none;
  width: 7px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  background: #d86f36;
}

.dash-caret.on {
  display: inline-block;
  animation: blink 1s steps(2, start) infinite;
}

.dash-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #35342d;
  background: rgba(24, 24, 21, 0.92);
}

.dash-input-ph {
  flex: 1 1 auto;
  padding: 9px 13px;
  border: 1px solid #35342d;
  border-radius: 9px;
  color: #9e9b91;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
}

.dash-input-ph.is-typing {
  color: #e7e3d8;
}

.dash-clip {
  color: #9e9b91;
  font-size: 0.85rem;
}

.dash-send {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #d86f36;
  color: #16120f;
  font-size: 0.7rem;
}

@keyframes dash-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Manifesto section with embedded runtime panel ───────────────────── */
.manifesto-grid-live {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
}

.manifesto-lead .manifesto-copy {
  margin-top: 30px;
}

.manifesto-runtime {
  min-width: 0;
}

/* ── Hero runtime demo states ────────────────────────────────────────── */
.live-chip.chip-complete {
  border-color: #6d8a52;
  color: #b7e394;
}

.plan-card.phase-flash {
  animation: phase-flash 0.6s ease-out;
}

@keyframes phase-flash {
  0% {
    border-color: #7a8a5c;
    box-shadow: 0 0 0 1px rgba(154, 230, 180, 0.25);
  }

  100% {
    border-color: #4b453b;
    box-shadow: none;
  }
}

.graph-card-header {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: #817d73;
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
}

.graph-card-header span:last-child {
  color: var(--green);
}

.graph-flow {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.graph-step {
  display: flex;
  align-items: center;
}

.graph-node {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid #5a554a;
  background: #201f1a;
  color: #d7d1c5;
  font-family: "Courier New", monospace;
  font-size: 0.63rem;
  box-shadow: inset 0 0 0 3px #11110f;
}

.graph-edge {
  width: 26px;
  color: var(--orange);
  text-align: center;
  transform: rotate(-90deg);
}

.security-layout {
  align-items: center;
}

.security-levels {
  border-top: 1px solid var(--line);
}

.security-level {
  display: grid;
  grid-template-columns: 54px 165px 1fr;
  align-items: center;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.security-level > span {
  color: #6d6961;
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
}

.security-level strong {
  display: block;
  color: var(--orange-bright);
  letter-spacing: 0.04em;
}

.security-level small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.security-level p {
  margin: 0;
  color: #bcb8ad;
  font-size: 0.8rem;
  line-height: 1.55;
}

.security-map {
  margin: 42px 0 0;
  overflow: hidden;
  border: 1px solid #3b3831;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    #0d0d0b;
  background-size: 30px 30px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

.security-map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(216, 111, 54, 0.1), transparent 58%);
}

.security-map-eyebrow,
.security-map-scale,
.security-map-card-head em,
.security-map-footer {
  font-family: "Courier New", monospace;
  letter-spacing: 0.12em;
}

.security-map-eyebrow {
  color: var(--orange-bright);
  font-size: 0.66rem;
}

.security-map h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.security-map-scale {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #c6c1b5;
  font-size: 0.66rem;
}

.security-map-scale i,
.security-map-footer i {
  width: 22px;
  height: 1px;
  margin: 0 8px;
  background: var(--orange-bright);
}

.security-map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.security-map-card {
  min-height: 315px;
  padding: 23px 22px 22px;
  border-right: 1px solid var(--line);
}

.security-map-card:last-child {
  border-right: 0;
}

.security-map-card.jail { box-shadow: inset 0 3px 0 #e65134; }
.security-map-card.playground { box-shadow: inset 0 3px 0 var(--orange-bright); }
.security-map-card.wild { box-shadow: inset 0 3px 0 #c3974a; }
.security-map-card.wild-plus { box-shadow: inset 0 3px 0 var(--green); }

.security-map-card-head {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
}

.security-map-card-head > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-bright);
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
}

.security-map-card-head strong {
  color: #f4efe4;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.security-map-card-head em {
  color: var(--muted);
  font-size: 0.55rem;
  font-style: normal;
}

.security-map-card > p {
  min-height: 42px;
  margin: 18px 0;
  color: #d1ccc1;
  font-size: 0.83rem;
  line-height: 1.5;
}

.security-tool-row,
.security-path,
.security-rule {
  margin-top: 10px;
  color: #aaa69c;
  font-size: 0.68rem;
  line-height: 1.55;
}

.security-tool-row b,
.security-path b,
.security-rule b {
  display: block;
  margin-bottom: 6px;
  color: #817d74;
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.security-tool-row code,
.security-tool-row span,
.security-path code,
.security-path span {
  display: inline-block;
  margin: 0 3px 4px 0;
  padding: 3px 5px;
  border: 1px solid #3d3a34;
  background: rgba(255,255,255,0.03);
  color: #d7d2c8;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
}

.security-tool-row.allow code { border-color: rgba(144, 168, 111, 0.56); color: #b8cf97; }
.security-tool-row.deny span { border-color: rgba(230, 81, 52, 0.42); color: #d98b79; }
.security-path code { border-color: rgba(243, 138, 76, 0.52); color: var(--orange-bright); }

.security-rule code {
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
}

.security-map-card > small {
  display: block;
  margin-top: 14px;
  color: #77736b;
  font-size: 0.65rem;
  line-height: 1.4;
}

.security-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  color: #858179;
  font-size: 0.6rem;
}

.security-map-footer > div {
  display: flex;
  align-items: center;
  color: #d4cfc4;
}

.security-map-footer b { font-weight: 500; }

.docs-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 48px;
  border: 1px solid #565044;
  background:
    linear-gradient(110deg, rgba(216, 111, 54, 0.1), transparent 45%),
    #191816;
}

.docs-promo-card h2 {
  max-width: 760px;
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.docs-promo-card p {
  max-width: 670px;
  color: var(--muted);
  line-height: 1.7;
}

.release-notes-section {
  background: rgba(255, 255, 255, 0.012);
}

.release-notes-heading {
  margin-bottom: 42px;
}

.release-notes-board {
  border: 1px solid var(--line-bright);
  background: var(--panel);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
}

.release-notes-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.release-notes-board-head a {
  color: var(--orange-bright);
  font-weight: 700;
}

.release-note-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 26px;
  min-height: 112px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, padding 160ms ease;
}

.release-note-row:last-child {
  border-bottom: 0;
}

.release-note-row:hover {
  padding-left: 26px;
  background: rgba(243, 138, 76, 0.045);
}

.release-note-meta b,
.release-note-meta small,
.release-note-row span > small {
  display: block;
  font-family: "Courier New", monospace;
}

.release-note-meta b {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 500;
}

.release-note-meta small {
  margin-top: 6px;
  color: var(--orange-bright);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.release-note-row strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.release-note-row span > small {
  max-width: 720px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.release-note-row i {
  color: var(--orange-bright);
  font-size: 1.18rem;
  font-style: normal;
}

.release-notes-empty {
  margin: 0;
  padding: 34px 18px;
  color: var(--muted);
}

.final-cta {
  padding: 130px 0;
  text-align: center;
}

.final-cta p {
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.final-cta h2 {
  max-width: 820px;
  margin: 22px auto 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.96;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: #77746c;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(216, 111, 54, 0.5);
  text-underline-offset: 3px;
}

.site-footer a:hover { color: var(--orange-bright); }

/* Documentation */

.docs-app {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.docs-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 22px 40px;
  border-right: 1px solid var(--line);
  background: #121210;
}

.docs-search {
  display: block;
  margin-top: 34px;
}

.docs-search span {
  display: block;
  margin-bottom: 8px;
  color: #76736b;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.docs-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #3a3933;
  border-radius: 0;
  outline: none;
  background: #0d0d0c;
  color: var(--text);
}

.docs-search input:focus {
  border-color: var(--orange);
}

.docs-navigation {
  margin-top: 28px;
}

.docs-group {
  margin-top: 25px;
}

.docs-group h2 {
  margin: 0 0 8px;
  color: #6e6b63;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-link {
  display: block;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: #a5a198;
  font-size: 0.82rem;
  line-height: 1.4;
}

.docs-link:hover,
.docs-link.active {
  color: #f0eadf;
  background: rgba(255, 255, 255, 0.025);
}

.docs-link.active {
  border-left-color: var(--orange);
}

.docs-no-results {
  color: var(--muted);
  font-size: 0.82rem;
}

.docs-main {
  min-width: 0;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.91);
  backdrop-filter: blur(16px);
}

.docs-path {
  color: #77746c;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
}

.docs-top-actions {
  display: flex;
  gap: 20px;
  color: #aaa69d;
  font-size: 0.76rem;
}

.markdown-body {
  width: min(calc(100% - 70px), 900px);
  margin: 0 auto;
  padding: 75px 0 110px;
  color: #c9c4b8;
  line-height: 1.78;
}

.markdown-body > h1:first-child {
  margin-top: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: #eee8dc;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.markdown-body h1 {
  margin: 0 0 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.markdown-body h2 {
  margin: 70px 0 20px;
  padding-top: 4px;
  font-size: 2rem;
}

.markdown-body h3 {
  margin: 42px 0 14px;
  font-size: 1.35rem;
}

.markdown-body p,
.markdown-body li {
  color: #aaa69c;
}

.markdown-body a {
  color: var(--orange-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body code,
.inline-code {
  padding: 0.15em 0.38em;
  border: 1px solid #393730;
  background: #171714;
  color: #d5aa80;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.markdown-body pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #3a3831;
  background: #0d0d0c;
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c0b4;
}

.markdown-body blockquote {
  margin: 24px 0;
  padding: 8px 20px;
  border-left: 3px solid var(--orange);
  background: rgba(216, 111, 54, 0.05);
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.markdown-body th {
  background: #1c1b18;
  color: #ded8cc;
}

.markdown-body hr {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.docs-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.docs-pagination a {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.docs-pagination a.next {
  text-align: right;
}

.docs-pagination span {
  color: #726f67;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.docs-pagination strong {
  margin-top: 5px;
  color: #d7d1c5;
  font-size: 0.86rem;
}

.empty-docs {
  padding: 80px;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .trace-layout {
    grid-template-columns: 1fr;
  }

  .runtime-shell {
    max-width: 760px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .graph-flow {
    flex-wrap: wrap;
  }

  .graph-edge {
    width: 18px;
  }
}

@media (max-width: 800px) {
  .header-brand-group {
    gap: 10px;
  }

  .parent-site-link {
    display: none;
  }

  .menu-button {
    display: block;
    padding: 8px 10px;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: #131311;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .main-nav .mobile-parent-site-link {
    display: block;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--line-bright);
    color: var(--orange-bright);
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .manifesto-grid,
  .security-layout,
  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manifesto-grid,
  .security-layout {
    gap: 45px;
  }

  .docs-promo-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-note-row {
    grid-template-columns: 1fr 20px;
    gap: 8px 16px;
  }

  .release-note-meta,
  .release-note-row > span:nth-child(2) {
    grid-column: 1;
  }

  .release-note-row i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .docs-app {
    display: block;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: min(86vw, 330px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.45);
  }

  .docs-sidebar.mobile-open {
    transform: translateX(0);
  }

  .docs-menu-button {
    display: inline-block;
    padding: 8px 10px;
  }

  .docs-topbar {
    padding: 0 18px;
  }

  .docs-path {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 26px), var(--max-width));
  }

  .hero {
    padding-top: 68px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .runtime-grid {
    grid-template-columns: 1fr;
  }

  .runtime-chat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .runtime-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .graph-flow {
    flex-direction: column;
  }

  .graph-step {
    flex-direction: column;
  }

  .graph-edge {
    width: auto;
    height: 24px;
    transform: none;
  }

  .security-level {
    grid-template-columns: 42px 105px 1fr;
  }

  .security-map-heading,
  .security-map-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .security-map-grid {
    grid-template-columns: 1fr;
  }

  .security-map-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .security-map-card:last-child {
    border-bottom: 0;
  }

  .markdown-body {
    width: min(calc(100% - 34px), 900px);
    padding-top: 52px;
  }
}

/* ── Capability tile screenshots ─────────────────────────────────────── */
.capability-card {
  display: flex;
  flex-direction: column;
}

.capability-card p {
  flex: 1 1 auto;
}

.capability-shot {
  display: block;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #3b3831;
  background: #0d0d0b;
}

.capability-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 220ms ease;
}

.capability-card:hover .capability-shot img {
  transform: scale(1.03);
}

.capability-live-demo {
  position: relative;
  background: #0a0f14;
}

.capability-live-bar,
.capability-live-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 11px;
  background: #12130f;
  color: #aaa69c;
  font-family: "Courier New", monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.capability-live-bar {
  border-bottom: 1px solid #3b3831;
}

.capability-live-bar span:last-child {
  color: var(--green);
}

.capability-live-bar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(155, 181, 111, 0.7);
  animation: blink 2.4s steps(2, start) infinite;
}

.capability-live-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.capability-live-viewport iframe {
  position: absolute;
  inset: 0;
  width: 220%;
  height: 220%;
  border: 0;
  transform: scale(0.4546);
  transform-origin: top left;
}

.capability-live-link {
  min-height: 38px;
  border-top: 1px solid #3b3831;
  color: var(--orange-bright);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.capability-live-link:hover,
.capability-live-link:focus-visible {
  background: var(--orange);
  color: #15130f;
}

body.home-view.light-theme .capability-live-demo,
body.home-view.light-theme .capability-live-viewport {
  background: #eee7da;
}

body.home-view.light-theme .capability-live-bar,
body.home-view.light-theme .capability-live-link {
  border-color: #cdbfae;
  background: #f3ede2;
  color: #5f574a;
}

body.home-view.light-theme .capability-live-link:hover,
body.home-view.light-theme .capability-live-link:focus-visible {
  background: var(--orange);
  color: #fffaf2;
}

/* ── Engine badge strip ──────────────────────────────────────────────── */
.engine-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: #141412;
}

.engine-strip-label {
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.engine-badge {
  padding: 5px 10px;
  border: 1px solid #45423a;
  background: #1b1a17;
  color: #c9c3b6;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.engine-strip-note {
  margin-left: auto;
  max-width: 470px;
  color: #87827a;
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: right;
}

.engine-strip-note b {
  color: var(--orange-bright);
}

/* ── Speed section ───────────────────────────────────────────────────── */
.speed-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.speed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.speed-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: #151512;
  color: #a9a49a;
  font-size: 0.86rem;
  line-height: 1.6;
}

.speed-list strong {
  color: #ece6da;
}

/* ── Vision / direction section ──────────────────────────────────────── */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.vision-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #151512;
}

.vision-row > span {
  color: var(--orange-bright);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.vision-row strong {
  display: block;
  margin-bottom: 8px;
  color: #ece6da;
  font-size: 0.95rem;
}

.vision-row p {
  margin: 0;
  color: #97938a;
  font-size: 0.8rem;
  line-height: 1.62;
}

/* ── Documentation images ────────────────────────────────────────────── */
.docs-image {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 18px 0;
  border: 1px solid #3b3831;
  border-radius: 6px;
  background: #0d0d0b;
}

@media (max-width: 900px) {
  .speed-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .security-map-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-map-card:nth-child(2) {
    border-right: 0;
  }

  .security-map-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .engine-strip-note {
    margin-left: 0;
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .security-map-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Vision tile artwork ─────────────────────────────────────────────── */
.vision-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vision-row-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.vision-row-head p {
  flex: 1 1 auto;
}

.vision-shot {
  display: block;
  overflow: hidden;
  margin-top: auto;
  border: 1px solid #3b3831;
  background: #0d0d0b;
}

.vision-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 220ms ease;
}

.vision-row:hover .vision-shot img {
  transform: scale(1.03);
}


/* ── Section artwork + lightbox ──────────────────────────────────────── */
.capability-shot img,
.vision-shot img,
.section-art img,
.docs-image {
  cursor: zoom-in;
}

.section-art {
  margin: 34px 0 0;
  border: 1px solid #3b3831;
  background: #0d0d0b;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

.section-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* illustration sitting beside copy inside a two-column feature chapter */
.feature-chapter .trace-layout { align-items: center; }
.feature-chapter .section-art { margin: 0; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(8, 8, 7, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 94vw;
  max-height: 92vh;
  border: 1px solid #4b473d;
  background: #0d0d0b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

body.lightbox-open {
  overflow: hidden;
}

/* ── Product light theme (documentation deliberately remains dark) ──── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange-bright);
}

body.home-view.light-theme {
  --bg: #f4f1e9;
  --panel: #fbf8f1;
  --line: #d5cabc;
  --line-bright: #a99883;
  --text: #292722;
  --muted: #655f55;
  --orange: #a85220;
  --orange-bright: #bf5f28;
  --green: #55704a;
  color: var(--text);
  background:
    linear-gradient(rgba(79, 68, 53, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 68, 53, 0.05) 1px, transparent 1px),
    var(--bg);
}

body.home-view.light-theme::before {
  opacity: 0.045;
  filter: sepia(0.2);
}

body.home-view.light-theme .site-header {
  border-color: rgba(112, 94, 71, 0.24);
  background: rgba(250, 247, 240, 0.9);
}

body.home-view.light-theme .brand-mark.brand-img {
  background: #f7f3ea;
  box-shadow: inset 0 0 0 2px #fffdf8, 3px 3px 0 rgba(83, 68, 50, 0.13);
}

body.home-view.light-theme .main-nav { color: #665f55; }
body.home-view.light-theme .main-nav a:hover { color: #2d2924; }
body.home-view.light-theme .main-nav .nav-cta,
body.home-view.light-theme .theme-toggle { background: rgba(255, 253, 247, 0.7); }

body.home-view.light-theme .hero::after {
  background: radial-gradient(circle, rgba(223, 116, 57, 0.16), transparent 66%);
}

body.home-view.light-theme .hero-terminal,
body.home-view.light-theme .comparison-row,
body.home-view.light-theme .engine-strip,
body.home-view.light-theme .vision-row,
body.home-view.light-theme .speed-list li,
body.home-view.light-theme .capability-card,
body.home-view.light-theme .graph-card,
body.home-view.light-theme .security-map,
body.home-view.light-theme .docs-promo-card {
  background-color: #fbf8f1;
}

body.home-view.light-theme .button-primary {
  border-color: #a9542e;
  color: #fffaf1;
  box-shadow: 4px 4px 0 rgba(80, 60, 42, 0.2);
}

body.home-view.light-theme .button-secondary {
  background: rgba(255, 253, 247, 0.72);
}

body.home-view.light-theme .runtime-shell {
  border-color: #c9bbaa;
  background: #f7f3ea;
  box-shadow: 14px 14px 0 rgba(80, 60, 42, 0.15), inset 0 0 0 3px #fffdf8;
}

body.home-view.light-theme .runtime-shell::before,
body.home-view.light-theme .runtime-shell::after { background: #98866f; box-shadow: 0 0 0 1px #eadfce; }
body.home-view.light-theme .runtime-topbar { background: #eee7da; color: #5f584e; }
body.home-view.light-theme .runtime-chat { background: #faf7f0; }
body.home-view.light-theme .runtime-trace { background: #f3ede2; }
body.home-view.light-theme .runtime-statusbar { background: #eee7da; color: #6f665a; }
body.home-view.light-theme .user-message { border-color: #d0c2b0; background: #eee5d8; color: #3a342c; }
body.home-view.light-theme .plan-card { background: linear-gradient(125deg, rgba(223, 116, 57, 0.1), transparent 45%), #fffaf2; border-color: #d0b49c; }
body.home-view.light-theme .plan-card strong,
body.home-view.light-theme .speed-list strong,
body.home-view.light-theme .vision-row strong { color: #332e27; }
body.home-view.light-theme .plan-card p,
body.home-view.light-theme .capability-card p,
body.home-view.light-theme .vision-row p { color: #6b6358; }
body.home-view.light-theme .plan-card code { background: #eee7da; color: #534b42; }
body.home-view.light-theme .trace-event { border-color: #d9cebf; background: #fffaf3; }
body.home-view.light-theme .trace-event.active { border-color: #bca37d; background: #f2eadd; }
body.home-view.light-theme .trace-event strong { color: #51493e; }
body.home-view.light-theme .trace-event small { color: #6a6156; }

body.home-view.light-theme .capabilities-section { background: rgba(112, 95, 69, 0.035); }
body.home-view.light-theme .capability-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), transparent 48%), #f8f3ea;
}
body.home-view.light-theme .capability-card:hover { background: #fffaf2; }
body.home-view.light-theme .feature-list li { color: #554e45; }
body.home-view.light-theme .graph-card { border-color: #cdbfae; box-shadow: 10px 10px 0 rgba(80, 60, 42, 0.14); }
body.home-view.light-theme .live-embed { background: #eee7da; }

body.home-view.light-theme .dash-shell {
  border-color: #c9bbaa;
  background: radial-gradient(circle at 82% 0%, rgba(223, 116, 57, 0.13), transparent 42%), #fbf8f1;
  box-shadow: 14px 14px 0 rgba(80, 60, 42, 0.15), 0 0 60px rgba(223, 116, 57, 0.08);
}
body.home-view.light-theme .dash-topbar,
body.home-view.light-theme .dash-inputbar { border-color: #d8cdbd; background: rgba(245, 240, 231, 0.96); }
body.home-view.light-theme .dash-sender,
body.home-view.light-theme .dash-chip,
body.home-view.light-theme .dash-input-ph,
body.home-view.light-theme .dash-clip { color: #5c5449; }
body.home-view.light-theme .dash-chip { border-color: #cbbfad; }
body.home-view.light-theme .dash-chip-theme { background: #f4eee4; color: #40392f; }
body.home-view.light-theme .dash-user-bubble { background: #eadfd2; color: #352f28; }
body.home-view.light-theme .dash-plan { background: rgba(223, 116, 57, 0.08); }
body.home-view.light-theme .dash-logo,
body.home-view.light-theme .dash-plan-title { color: #bf5f28; }
body.home-view.light-theme .dash-plan-action,
body.home-view.light-theme .dash-copy,
body.home-view.light-theme .dash-ai-bubble { color: #39332b; }
body.home-view.light-theme .dash-ai-bubble { border-color: #d8cdbd; background: #fffaf3; }
body.home-view.light-theme .dash-input-ph { border-color: #d8cdbd; background: #fffaf4; }
body.home-view.light-theme .dash-input-ph.is-typing { color: #332e27; }

body.home-view.light-theme .security-level strong,
body.home-view.light-theme .security-map h3,
body.home-view.light-theme .security-map-card-head strong { color: #362f27; }
body.home-view.light-theme .security-level small,
body.home-view.light-theme .security-level p,
body.home-view.light-theme .security-map-card > p,
body.home-view.light-theme .security-map-card > small { color: #6a6156; }
body.home-view.light-theme .security-map-card { background: #fbf8f1; border-color: #d8cdbd; }
body.home-view.light-theme .security-map-footer,
body.home-view.light-theme .security-map-heading { background: #f0e9de; }
body.home-view.light-theme .security-tool-row,
body.home-view.light-theme .security-path,
body.home-view.light-theme .security-rule { color: #5f574a; border-color: #ded3c3; }
body.home-view.light-theme .security-rule span { color: #62594e; }
/* row/label captions (EXPOSED, R/W, ROOT, PATH, SHELL …) */
body.home-view.light-theme .security-tool-row b,
body.home-view.light-theme .security-path b,
body.home-view.light-theme .security-rule b { color: #5a5349; }
/* boxed chips — give them a visible light fill + readable text */
body.home-view.light-theme .security-tool-row code,
body.home-view.light-theme .security-tool-row span,
body.home-view.light-theme .security-path code,
body.home-view.light-theme .security-path span {
  border-color: #cdbfad;
  background: #f2ece0;
  color: #4a443a;
}
body.home-view.light-theme .security-tool-row.allow code { border-color: #9fb784; color: #3f5a2b; }
body.home-view.light-theme .security-tool-row.deny span { border-color: #d6a08f; color: #a2432f; }
body.home-view.light-theme .security-path code { border-color: #e0a071; color: #b5511d; }
/* top-right level scale + footer scope row */
body.home-view.light-theme .security-map-scale { color: #5f584e; }
body.home-view.light-theme .security-map-footer { color: #574f44; }
body.home-view.light-theme .security-map-footer > div { color: #47423a; }

/* hero lead paragraph + terminal command (were dark-theme light greys) */
body.home-view.light-theme .hero-lead { color: #3b362d; }
body.home-view.light-theme .hero-terminal code { color: #4d5340; }
/* misc secondary labels hardcoded for the dark theme */
body.home-view.light-theme .speed-list li { color: #554e45; }
body.home-view.light-theme .engine-strip-note { color: #5f574a; }
body.home-view.light-theme .capability-card .card-index { color: #5f574a; }
body.home-view.light-theme .runtime-topbar .runtime-id { color: #5f574a; }
body.home-view.light-theme .graph-card-header span { color: #5f574a; }
body.home-view.light-theme .plan-card-head span { color: #6a6156; }
body.home-view.light-theme .stream-line span { color: #5f6551; }

body.home-view.light-theme .section-art,
body.home-view.light-theme .vision-shot { border-color: #cfc1af; background: #f9f4ea; box-shadow: 9px 9px 0 rgba(80, 60, 42, 0.12); }
body.home-view.light-theme .docs-promo-card { border-color: #cfc1af; }
body.home-view.light-theme .release-notes-section { background: rgba(108, 84, 56, 0.035); }
body.home-view.light-theme .release-notes-board { border-color: #cfc1af; background: #fbf8f1; box-shadow: 9px 9px 0 rgba(80, 60, 42, 0.1); }
body.home-view.light-theme .release-notes-board-head,
body.home-view.light-theme .release-note-row { border-color: #d9cebf; }
body.home-view.light-theme .release-note-row:hover { background: rgba(216, 111, 54, 0.06); }
body.home-view.light-theme .release-note-meta b,
body.home-view.light-theme .release-note-row strong { color: #38342d; }
body.home-view.light-theme .release-note-row span > small,
body.home-view.light-theme .release-notes-empty { color: #6b6257; }
body.home-view.light-theme .site-footer { color: #71695e; }
body.home-view.light-theme .lightbox-overlay { background: rgba(245, 241, 233, 0.94); }
body.home-view.light-theme .lightbox-overlay img { border-color: #bba98f; background: #fffdf8; box-shadow: 0 24px 80px rgba(57, 44, 31, 0.28); }

@media (max-width: 800px) {
  .theme-toggle { padding: 9px 11px; }
  body.home-view.light-theme .main-nav { background: #faf7f0; border-bottom: 1px solid #d5cabc; }
}

/* ── Vision / manifesto page ─────────────────────────────────────────── */
.vision-hero { padding-top: 34px; }
.vision-hero h1 {
  margin: 14px 0 0;
  max-width: 15ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.vision-hero .hero-lead { max-width: 680px; }
.container.narrow { max-width: 820px; }
.vision-chapter .container.narrow { display: flow-root; }
.vision-chapter-art {
  width: min(47%, 390px);
  margin: 2px 0 22px 34px;
  float: right;
}
.vision-chapter-art.art-left {
  margin: 2px 34px 22px 0;
  float: left;
}
.vision-chapter-art img { aspect-ratio: 16 / 9; object-fit: cover; }
.vision-cta-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.ea-list { max-width: 660px; margin-left: auto; margin-right: auto; text-align: left; }
.ea-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 26px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.vision-tagline {
  margin-top: 26px;
  color: var(--orange-bright);
  font-weight: 750;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

/* CTA context has a specific `.final-cta p` rule; scope these to win it */
.final-cta .vision-tagline { font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.final-cta .vision-cta-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.final-cta .ea-list { max-width: 660px; margin-left: auto; margin-right: auto; }

/* Vision roadmap formula callout */
.vision-formula {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 15px 17px;
  border-left: 2px solid var(--orange);
  background: rgba(127, 127, 127, 0.08);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  overflow-x: auto;
}
.vision-formula > div {
  display: grid;
  grid-template-columns: 58px minmax(200px, auto) 1fr;
  gap: 16px;
  align-items: baseline;
}
.vision-formula .ff-tag {
  color: var(--orange-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
}
.vision-formula code { color: var(--text); white-space: nowrap; }
.vision-formula .ff-note { color: var(--muted); font-size: 0.72rem; }
@media (max-width: 640px) {
  .vision-formula > div { grid-template-columns: 1fr; gap: 3px; }
  .vision-chapter-art,
  .vision-chapter-art.art-left {
    width: 100%;
    margin: 20px 0 26px;
    float: none;
  }
}
