:root {
  --ink: #10201e;
  --ink-soft: #495b58;
  --paper: #f3f5f1;
  --paper-deep: #e9ede7;
  --surface: #ffffff;
  --night: #0b1514;
  --night-soft: #12201e;
  --night-line: #263936;
  --mint: #5ce1c3;
  --mint-deep: #148d78;
  --lime: #c9f36a;
  --coral: #ff8067;
  --blue: #7aa7ff;
  --line: #ced6d0;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 48px));
  --radius: 18px;
  --shadow: 0 30px 80px rgba(18, 36, 32, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body.landing {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.landing a { color: inherit; }
.landing button { font: inherit; }
.landing a:focus-visible,
.landing button:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
}

.landing .skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--night);
  color: white;
  text-decoration: none;
  transform: translateY(-150%);
}

.landing .skip-link:focus { transform: translateY(0); }
.mobile-nav-action { display: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(206, 214, 208, 0.85);
  background: rgba(243, 245, 241, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--mint);
}

.wordmark-icon svg { width: 23px; height: 23px; }

.landing-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-links a,
.github-link {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.landing-links a:hover,
.github-link:hover { color: var(--ink); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.button {
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-small {
  min-height: 39px;
  padding: 0 17px;
  font-size: 0.85rem;
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 22px rgba(16, 32, 30, 0.14);
}

.landing .button-primary { color: white; }

.button-primary:hover { background: #1a302d; box-shadow: 0 12px 28px rgba(16, 32, 30, 0.2); }

.button-secondary {
  border-color: #bfc9c1;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.button-secondary:hover { background: var(--surface); }

.landing-menu {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 11px 9px;
  border: 0;
  background: transparent;
}

.landing-menu span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 82px 0 94px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -280px;
  top: 10px;
  border: 1px solid rgba(20, 141, 120, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(20, 141, 120, 0.025), 0 0 0 160px rgba(20, 141, 120, 0.02);
}

.hero-grid {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 72px;
  align-items: center;
}

.release-pill {
  width: fit-content;
  margin-bottom: 25px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.release-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(20, 141, 120, 0.12);
}

.hero h1 {
  max-width: 11ch;
  margin: 0 0 24px;
  font-size: clamp(3.1rem, 5.8vw, 5.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--mint-deep);
  font-style: normal;
}

.hero-lede {
  max-width: 36rem;
  margin: 0 0 25px;
  color: var(--ink-soft);
  font-size: 1.13rem;
  line-height: 1.65;
}

.hero-audience {
  max-width: 38rem;
  margin: -10px 0 22px;
  color: #64736f;
  font-size: 0.82rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.workbench {
  position: relative;
  border: 1px solid #283936;
  border-radius: 20px;
  background: var(--night);
  color: #e9f1ee;
  box-shadow: 0 34px 70px rgba(10, 25, 22, 0.26);
  overflow: hidden;
}

.workbench::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(92, 225, 195, 0.055), transparent 42%);
}

.workbench-bar {
  position: relative;
  z-index: 1;
  height: 46px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--night-line);
  background: #101c1a;
  color: #78908b;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.window-controls { display: flex; gap: 6px; }
.window-controls i { width: 8px; height: 8px; border-radius: 50%; background: #39504b; }
.window-controls i:first-child { background: var(--coral); }
.window-controls i:nth-child(2) { background: #e9c957; }
.window-controls i:nth-child(3) { background: var(--mint); }

.run-state {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #99aaa6;
}

.run-state i,
.metric-header strong i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.workbench-body {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.run-command {
  padding: 12px 14px;
  border: 1px solid #21332f;
  border-radius: 9px;
  background: #0e1a18;
  color: #cad6d2;
  font-family: var(--mono);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
}

.run-command span { margin-right: 8px; color: var(--mint); }

.model-route {
  padding: 23px 7px 19px;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 10px;
}

.model-route div:last-child { text-align: right; }
.model-route small, .metric-grid small {
  display: block;
  margin-bottom: 3px;
  color: #637b76;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.model-route strong { font-family: var(--mono); font-size: 0.73rem; font-weight: 500; }

.route-line { position: relative; height: 1px; background: #34504a; }
.route-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--mint);
  border-right: 1px solid var(--mint);
  transform: rotate(45deg);
}
.route-line i {
  position: absolute;
  left: 48%;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(92, 225, 195, 0.1);
}

.metric-header {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--night-line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  color: #93a7a2;
  font-size: 0.72rem;
}

.metric-header strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
}
.metric-header strong.failed { color: var(--coral); }
.metric-header strong.failed i { background: var(--coral); }

.metric-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  border: 1px solid var(--night-line);
  border-radius: 0 0 9px 9px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.73rem;
}

.metric-grid > div {
  min-height: 55px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #20312e;
  border-bottom: 1px solid #20312e;
}

.metric-grid > div:nth-child(3n) { border-right: 0; }
.metric-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.metric-name { color: #afbfbb; }
.metric-bad { color: #ff9b87; }
.metric-good { color: var(--mint); }

.changed-files {
  margin-top: 13px;
  border: 1px solid var(--night-line);
  border-radius: 9px;
  color: #8ea29d;
  font-family: var(--mono);
  font-size: 0.65rem;
  overflow: hidden;
}

.changed-files > div {
  padding: 8px 12px;
  border-bottom: 1px solid #20312e;
}

.changed-files > div:last-child { border-bottom: 0; }
.changed-title { display: flex; justify-content: space-between; color: #657c76; }
.file-icon { margin-right: 9px; color: #e8cf6b; }
.file-bars { float: right; color: var(--mint); }
.file-icon.failed, .file-bars.failed { color: var(--coral); }
.diff-stat { color: var(--mint); }

.workbench-footer {
  padding: 16px 2px 2px;
  display: flex;
  justify-content: space-between;
  color: var(--mint);
  font-size: 0.69rem;
  font-weight: 500;
}

.workbench-footer span:last-child { color: #aebdb9; }
.workbench-footer span.failed { color: var(--coral); }

.workbench-flow { --flow: 16s; }
.workbench-flow::after { display: none; }

.flow-body { position: relative; z-index: 1; padding: 22px 20px 20px; }

.flow-phase {
  position: relative;
  display: inline-grid;
  justify-items: end;
}
.flow-phase span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: flow-phase var(--flow) infinite;
}
.flow-phase span:nth-child(1) { animation-name: flow-phase-1; }
.flow-phase span:nth-child(2) { animation-name: flow-phase-2; }
.flow-phase span:nth-child(3) { animation-name: flow-phase-3; }
.flow-phase span:nth-child(4) { animation-name: flow-phase-4; }

.flow-track {
  position: relative;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.flow-track::before,
.flow-track::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: 24px;
  width: 1px;
}
.flow-track::before { background: #2a403c; }
.flow-track::after {
  background: var(--mint);
  transform-origin: top;
  transform: scaleY(0);
  animation: flow-line var(--flow) infinite;
}

.flow-step {
  position: relative;
  min-height: 74px;
  padding: 16px 0 16px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  opacity: 0.28;
}
.flow-step-1 { animation: flow-step-1 var(--flow) infinite; }
.flow-step-2 { animation: flow-step-2 var(--flow) infinite; }
.flow-step-3 { animation: flow-step-3 var(--flow) infinite; }
.flow-step-4 { animation: flow-step-4 var(--flow) infinite; }

.flow-step strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.flow-step p {
  margin: 2px 0 0;
  color: #7d928d;
  font-size: 0.72rem;
}
.flow-step b {
  color: #6f8580;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-dot {
  position: absolute;
  left: 4px;
  top: 26px;
  width: 13px;
  height: 13px;
  border: 1.5px solid #3d5550;
  border-radius: 50%;
  background: var(--night);
}
.flow-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--mint);
  transform: scale(0);
}

.flow-outcome {
  position: relative;
  margin-top: 18px;
  min-height: 52px;
  padding: 16px 14px;
  border: 1px solid #21332f;
  border-radius: 9px;
  background: #0e1a18;
  overflow: hidden;
}
.flow-outcome-line {
  position: absolute;
  inset: 0;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c5d4d0;
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0;
}
.flow-outcome-line em {
  font-style: normal;
  color: var(--mint);
}
.flow-outcome-a em { color: var(--coral); }
.flow-outcome-a { animation: flow-phase-1 var(--flow) infinite; }
.flow-outcome-b { animation: flow-phase-2 var(--flow) infinite; }
.flow-outcome-c { animation: flow-phase-3 var(--flow) infinite; }
.flow-outcome-d { animation: flow-phase-4 var(--flow) infinite; color: var(--mint); }

@keyframes flow-phase-1 {
  0%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes flow-phase-2 {
  0%, 24% { opacity: 0; }
  25%, 47% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes flow-phase-3 {
  0%, 49% { opacity: 0; }
  50%, 72% { opacity: 1; }
  75%, 100% { opacity: 0; }
}
@keyframes flow-phase-4 {
  0%, 74% { opacity: 0; }
  75%, 97% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes flow-line {
  0% { transform: scaleY(0); }
  18% { transform: scaleY(0.12); }
  43% { transform: scaleY(0.4); }
  68% { transform: scaleY(0.7); }
  88% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

@keyframes flow-step-1 {
  0%, 4% { opacity: 0.28; }
  8%, 90% { opacity: 1; }
  96%, 100% { opacity: 0.28; }
}
@keyframes flow-step-2 {
  0%, 22% { opacity: 0.28; }
  28%, 90% { opacity: 1; }
  96%, 100% { opacity: 0.28; }
}
@keyframes flow-step-3 {
  0%, 47% { opacity: 0.28; }
  53%, 90% { opacity: 1; }
  96%, 100% { opacity: 0.28; }
}
@keyframes flow-step-4 {
  0%, 72% { opacity: 0.28; }
  78%, 90% { opacity: 1; }
  96%, 100% { opacity: 0.28; }
}

.flow-step-1 .flow-dot { animation: flow-dot-ring var(--flow) infinite; }
.flow-step-1 .flow-dot::after { animation: flow-dot-fill var(--flow) infinite; }
.flow-step-2 .flow-dot { animation: flow-dot-ring-2 var(--flow) infinite; }
.flow-step-2 .flow-dot::after { animation: flow-dot-fill-2 var(--flow) infinite; }
.flow-step-3 .flow-dot { animation: flow-dot-ring-3 var(--flow) infinite; }
.flow-step-3 .flow-dot::after { animation: flow-dot-fill-3 var(--flow) infinite; }
.flow-step-4 .flow-dot { animation: flow-dot-ring-4 var(--flow) infinite; }
.flow-step-4 .flow-dot::after { animation: flow-dot-fill-4 var(--flow) infinite; }

@keyframes flow-dot-ring {
  8%, 90% { border-color: var(--mint); }
}
@keyframes flow-dot-fill {
  8%, 90% { transform: scale(1); }
}
@keyframes flow-dot-ring-2 {
  28%, 90% { border-color: var(--mint); }
}
@keyframes flow-dot-fill-2 {
  28%, 90% { transform: scale(1); }
}
@keyframes flow-dot-ring-3 {
  53%, 90% { border-color: var(--mint); }
}
@keyframes flow-dot-fill-3 {
  53%, 90% { transform: scale(1); }
}
@keyframes flow-dot-ring-4 {
  78%, 90% { border-color: var(--mint); }
}
@keyframes flow-dot-fill-4 {
  78%, 90% { transform: scale(1); }
}

.section { padding: 120px 0; }
.section-shell { width: var(--shell); margin: 0 auto; }

.section-intro { max-width: 690px; margin-bottom: 50px; }
.section-intro h2,
.contract-copy h2,
.quickstart h2 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.section-intro > p:last-child,
.contract-copy > p,
.quickstart-copy > p {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--mint-deep);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before { content: "//"; margin-right: 7px; color: #91a39e; }

.problem-section { background: var(--surface); }
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.scenario-card {
  min-height: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.scenario-model { background: #eef4ff; border-color: #cbd8ec; }
.scenario-data { background: #f2f6e8; border-color: #d3ddbd; }

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

.scenario-titlemark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.scenario-titlemark span {
  display: block;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scenario-titlemark small {
  display: block;
  margin-top: 3px;
  color: #697975;
  font-size: 0.72rem;
}

.scenario-head > b {
  color: #697975;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  padding-top: 4px;
}

.scenario-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 32, 30, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.scenario-icon svg { width: 22px; height: 22px; }
.scenario-card h3 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -0.03em; }
.scenario-card p { max-width: 31rem; margin: 0 0 18px; color: var(--ink-soft); }

.scenario-points {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(16, 32, 30, 0.1);
}

.scenario-points li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 32, 30, 0.1);
  font-size: 0.82rem;
}

.scenario-points span { color: var(--ink-soft); }
.scenario-points strong { font-weight: 500; text-align: right; }

.scenario-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.workflow-section { background: var(--night); color: #edf4f1; }
.workflow-intro > p:last-child { color: #91a39f; }

.workflow-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 70px;
  align-items: center;
}

.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line); }
.workflow-steps li {
  min-height: 112px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--night-line);
}
.step-number { color: var(--mint); font-family: var(--mono); font-size: 0.68rem; padding-top: 5px; }
.workflow-steps strong { display: block; margin-bottom: 5px; font-size: 1.08rem; }
.workflow-steps p { margin: 0; color: #8da09b; font-size: 0.9rem; }
.step-status {
  padding: 5px 8px;
  border: 1px solid #30443f;
  border-radius: 5px;
  color: #728782;
  font-family: var(--mono);
  font-size: 0.58rem;
}
.step-status.success { color: var(--mint); border-color: rgba(92, 225, 195, 0.35); }

.loop-visual {
  position: relative;
  width: 390px;
  height: 390px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #243936;
  border-radius: 50%;
}

.loop-visual::before,
.loop-visual::after {
  content: "";
  position: absolute;
  border: 1px dashed #304944;
  border-radius: 50%;
}
.loop-visual::before {
  inset: 38px;
  animation: ring-spin 32s linear infinite;
}
.loop-visual::after {
  inset: 79px;
  animation: ring-spin-reverse 24s linear infinite;
}

.loop-center {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(92, 225, 195, 0.42);
  border-radius: 50%;
  background: #12231f;
  box-shadow: 0 0 60px rgba(92, 225, 195, 0.08);
  animation: engine-breathe 4s ease-in-out infinite;
}
.loop-center span, .loop-center small { color: #6f8982; font-family: var(--mono); font-size: 0.53rem; }
.loop-center strong { margin: 6px 0; font-size: 1.17rem; line-height: 1.05; }
.loop-center small {
  display: flex;
  align-items: center;
  gap: 6px;
}
.loop-center small i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  animation: status-blink 1.8s ease-in-out infinite;
}

.flow-particle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  animation: packet-orbit 12s linear infinite;
}

.flow-particle::after {
  content: "";
  position: absolute;
  left: 149px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(92, 225, 195, 0.1), 0 0 14px rgba(92, 225, 195, 0.55);
}

.particle-two {
  animation-delay: -4s;
  animation-duration: 12s;
}
.particle-two::after {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(122, 167, 255, 0.1), 0 0 14px rgba(122, 167, 255, 0.45);
}
.particle-three {
  animation-delay: -8s;
  animation-duration: 12s;
}
.particle-three::after {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 243, 106, 0.1), 0 0 14px rgba(201, 243, 106, 0.4);
}

.orbit {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(92, 225, 195, 0.1);
  animation: node-pulse 6s ease-in-out infinite;
}
.orbit span {
  position: absolute;
  padding: 4px 7px;
  border: 1px solid #2c433e;
  border-radius: 5px;
  background: var(--night);
  color: #91aaa4;
  font-family: var(--mono);
  font-size: 0.55rem;
  white-space: nowrap;
}
.orbit-one { left: 53px; top: 91px; }
.orbit-one span { left: -48px; top: -34px; }
.orbit-two { right: 54px; top: 110px; background: var(--blue); box-shadow: 0 0 0 5px rgba(122, 167, 255, 0.1); animation-delay: -2s; }
.orbit-two span { left: 13px; top: -16px; }
.orbit-three { left: 90px; bottom: 51px; background: var(--lime); box-shadow: 0 0 0 5px rgba(201, 243, 106, 0.1); animation-delay: -4s; }
.orbit-three span { left: -52px; top: 15px; }

.holdout-badge {
  position: absolute;
  right: -17px;
  bottom: 28px;
  z-index: 4;
  min-width: 127px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 225, 195, 0.42);
  border-radius: 9px;
  background: #12231f;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  animation: gate-confirm 6s ease-in-out infinite;
  animation-delay: -1s;
}
.holdout-badge i { float: left; width: 7px; height: 7px; margin: 5px 8px 0 0; border-radius: 50%; background: var(--mint); }
.holdout-badge span { display: block; color: #6f8982; font-family: var(--mono); font-size: 0.52rem; }
.holdout-badge strong { font-family: var(--mono); font-size: 0.69rem; color: var(--mint); }

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes ring-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes packet-orbit {
  to { transform: rotate(360deg); }
}

@keyframes engine-breathe {
  0%, 100% {
    border-color: rgba(92, 225, 195, 0.32);
    box-shadow: 0 0 40px rgba(92, 225, 195, 0.05);
  }
  50% {
    border-color: rgba(92, 225, 195, 0.62);
    box-shadow: 0 0 70px rgba(92, 225, 195, 0.13);
  }
}

@keyframes status-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; box-shadow: 0 0 8px rgba(92, 225, 195, 0.7); }
}

@keyframes node-pulse {
  0%, 72%, 100% { transform: scale(1); }
  80% { transform: scale(1.45); }
  88% { transform: scale(1); }
}

@keyframes gate-confirm {
  0%, 65%, 100% {
    border-color: rgba(92, 225, 195, 0.28);
    transform: translateY(0);
  }
  75% {
    border-color: rgba(92, 225, 195, 0.72);
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.26), 0 0 24px rgba(92, 225, 195, 0.09);
  }
}

.contract-section { background: var(--paper-deep); }
.contract-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: 78px;
  align-items: center;
}

.contract-copy h2 { font-size: clamp(2.2rem, 3.8vw, 3.5rem); }
.control-list { margin: 36px 0 28px; padding: 0; list-style: none; }
.control-list li {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  border-top: 1px solid #c8d0ca;
}
.control-list li:last-child { border-bottom: 1px solid #c8d0ca; }
.control-list > li > span { color: var(--mint-deep); font-family: var(--mono); font-size: 0.67rem; padding-top: 3px; }
.control-list strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.control-list p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; }
.inline-link { color: var(--ink); font-size: 0.87rem; font-weight: 600; text-decoration: none; }
.inline-link span { margin-left: 8px; color: var(--mint-deep); }

.editor-card {
  border: 1px solid #293c38;
  border-radius: 15px;
  background: var(--night);
  color: #d8e4e0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.editor-tabs {
  height: 45px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--night-line);
  background: #101c1a;
  color: #96aaa5;
  font-family: var(--mono);
  font-size: 0.65rem;
}
.editor-tabs > span:first-child { color: #d8e4e0; }
.editor-tabs i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 2px; background: var(--coral); }
.editor-path { color: #536a64; }
.copy-btn {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid #30443f;
  border-radius: 5px;
  background: transparent;
  color: #8ca09b;
  font-family: var(--mono);
  font-size: 0.59rem;
  cursor: pointer;
}
.copy-btn:hover, .copy-btn.copied { color: var(--mint); border-color: rgba(92, 225, 195, 0.4); }
.editor-card pre {
  min-height: 490px;
  margin: 0;
  padding: 24px 26px;
  overflow: auto;
  color: #aebfba;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.75;
}
.editor-card code { white-space: pre; }
.yaml-key { color: #8bb2ff; }
.yaml-name { color: #c6ef74; }
.yaml-string { color: #d5ba81; }
.yaml-value { color: #f38f78; }
.yaml-true { color: var(--mint); }
.editor-footer {
  height: 31px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid var(--night-line);
  color: #617772;
  font-family: var(--mono);
  font-size: 0.57rem;
}
.editor-footer span:last-child { color: var(--mint); }

.outcomes-section { background: var(--surface); }
.evidence-proof {
  margin-top: 0;
  padding: 28px 28px 0;
  display: grid;
  grid-template-columns: 0.72fr 1.6fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b1715;
  color: white;
  text-decoration: none;
}
.evidence-proof-copy { align-self: stretch; padding: 14px 0 28px; display: flex; flex-direction: column; justify-content: center; }
.evidence-proof-copy span { margin-bottom: 14px; color: var(--mint); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; }
.evidence-proof-copy strong { margin-bottom: 10px; font-size: 1.55rem; letter-spacing: -0.03em; }
.evidence-proof-copy p { margin: 0 0 24px; color: #9cb2ac; font-size: 0.9rem; }
.evidence-details { margin: -8px 0 22px; color: #9cb2ac; font-size: 0.78rem; }
.evidence-details summary { width: max-content; color: #c7d8d3; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.evidence-details p { margin: 12px 0 0; font-size: 0.78rem; line-height: 1.55; }
.evidence-details code { font-family: var(--mono); font-size: 0.9em; color: var(--mint); }
.evidence-proof-link { color: var(--mint); font-family: var(--mono); font-size: 0.7rem; font-weight: 500; text-decoration: none; }
.evidence-proof-link:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.evidence-image-link { display: block; align-self: end; }
.evidence-proof img {
  width: 100%;
  display: block;
  border: 1px solid #28413c;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  transition: transform 200ms ease;
}
.evidence-proof:hover img { transform: translateY(-4px); }

.usecase-section { background: var(--paper); }
.usecase-intro {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.usecase-intro h2 { max-width: 650px; }
.usecase-intro .inline-link { margin-bottom: 15px; white-space: nowrap; }
.usecase-list { border-top: 1px solid var(--line); }
.usecase-list a {
  min-height: 98px;
  padding: 19px 4px;
  display: grid;
  grid-template-columns: 70px 1.1fr 1.5fr 30px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 160ms ease, background 160ms ease;
}
.usecase-list a:hover { padding-left: 14px; padding-right: 14px; background: rgba(255, 255, 255, 0.52); }
.usecase-list span { color: var(--mint-deep); font-family: var(--mono); font-size: 0.65rem; }
.usecase-list strong { font-size: 1.02rem; }
.usecase-list p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.usecase-list p code { font-family: var(--mono); font-size: 0.82em; }
.usecase-list b { color: var(--mint-deep); font-weight: 500; }

.quickstart { padding: 108px 0; background: var(--mint); color: #09201b; }
.quickstart-shell {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.quickstart .eyebrow { color: #0a5749; }
.quickstart h2 { font-size: clamp(2.3rem, 4vw, 3.7rem); }
.quickstart-copy > p { color: #275a50; }
.quickstart-copy .quickstart-adoption {
  margin-top: 18px;
  font-size: .88rem;
  line-height: 1.6;
}
.quickstart-adoption code { font-family: var(--mono); font-size: .88em; }
.quickstart-copy code { font-family: var(--mono); font-size: .88em; }
.quickstart-adoption a { color: #0a5749; font-weight: 600; }
.quickstart-meta { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #205248; font-size: 0.76rem; }
.install-card { border: 1px solid rgba(7, 43, 36, 0.28); border-radius: 14px; background: var(--night); color: #deebe7; box-shadow: 0 25px 50px rgba(13, 66, 55, 0.22); overflow: hidden; }
.install-head { height: 42px; padding: 0 14px; display: flex; align-items: center; border-bottom: 1px solid var(--night-line); color: #78908a; font-family: var(--mono); font-size: 0.65rem; }
.install-card > code { padding: 23px; display: block; color: #d4e0dc; font-family: var(--mono); font-size: 0.71rem; line-height: 1.85; white-space: pre-wrap; }
.install-card > code span { color: var(--mint); }
.install-card .quickstart-note {
  margin: 0;
  padding: 0 23px 23px;
  color: #a9bbb6;
  font-size: .78rem;
  line-height: 1.55;
}
.install-card .quickstart-note code { color: var(--mint); font-family: var(--mono); }

.site-footer { padding: 75px max(24px, calc((100vw - 1180px) / 2)) 28px; background: var(--night); color: #d7e1de; }
.site-footer .wordmark { color: white; }
.site-footer .wordmark-icon { background: var(--mint); color: var(--night); }
.footer-main { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.footer-main > div > p { max-width: 330px; margin: 18px 0 0; color: #718782; font-size: 0.86rem; }
.footer-main nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.footer-main nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-main nav strong { margin-bottom: 5px; color: #82948f; font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-main nav a { color: #c2ceca; font-size: 0.8rem; text-decoration: none; }
.footer-main nav a:hover { color: var(--mint); }
.footer-bottom { margin-top: 65px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--night-line); color: #5f746f; font-size: 0.7rem; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { max-width: 720px; }
  .hero h1 { max-width: 12ch; }
  .workbench { max-width: 680px; }
  .workflow-board { grid-template-columns: 1fr; }
  .contract-layout { grid-template-columns: 1fr; }
  .contract-copy { max-width: 720px; }
  .editor-card { max-width: 700px; }
  .quickstart-shell { grid-template-columns: 1fr; gap: 45px; }
  .install-card { max-width: 700px; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .nav-shell { height: 64px; }
  .landing-menu { display: block; }
  .nav-actions { display: none; }
  .landing-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 20px 24px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .site-header.open .landing-links { display: flex; }
  .landing-links .mobile-nav-action {
    display: inline-flex;
    font-weight: 600;
  }
  .hero { padding: 60px 0 72px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .workbench-body { padding: 14px; }
  .model-route { grid-template-columns: 1fr 55px 1fr; }
  .section { padding: 84px 0; }
  .scenario-grid { grid-template-columns: 1fr; }
  .evidence-proof { padding: 24px 24px 0; grid-template-columns: 1fr; gap: 8px; }
  .evidence-proof-copy { padding-bottom: 18px; }
  .workflow-board { gap: 50px; }
  .loop-visual { width: 340px; height: 340px; }
  .usecase-intro { display: block; }
  .usecase-list a { grid-template-columns: 40px 1fr 28px; gap: 12px; }
  .usecase-list p { grid-column: 2; }
  .usecase-list b { grid-column: 3; grid-row: 1 / 3; }
  .footer-main { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 500px) {
  .workbench-bar { grid-template-columns: 1fr 1fr; }
  .workbench-bar > span:nth-child(2) { display: none; }
  .flow-step { grid-template-columns: 1fr; gap: 2px 0; }
  .flow-step b { justify-self: start; }
  .metric-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr; font-size: 0.64rem; }
  .metric-grid > div { padding: 8px; }
  .run-command { font-size: 0.58rem; }
  .workbench-footer { display: grid; gap: 5px; }
  .scenario-card { padding: 22px; }
  .workflow-steps li { grid-template-columns: 36px 1fr; }
  .step-status { display: none; }
  .loop-visual { width: 290px; height: 290px; }
  .loop-center { width: 125px; height: 125px; padding: 20px; }
  .orbit-one { left: 37px; top: 70px; }
  .orbit-two { right: 38px; top: 83px; }
  .orbit-three { left: 65px; bottom: 38px; }
  .holdout-badge { right: -5px; bottom: 12px; }
  .flow-particle::after { left: 109px; }
  .editor-card pre { padding: 19px; font-size: 0.64rem; }
  .editor-path { display: none; }
  .quickstart { padding: 82px 0; }
  .install-card > code { padding: 18px; font-size: 0.61rem; }
  .footer-main nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { display: grid; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .loop-visual::before,
  .loop-visual::after,
  .loop-center,
  .loop-center small i,
  .flow-particle,
  .orbit,
  .holdout-badge,
  .flow-phase span,
  .flow-outcome-line,
  .flow-step,
  .flow-track::after,
  .flow-dot,
  .flow-dot::after {
    animation: none !important;
  }
  .flow-step { opacity: 1; }
  .flow-track::after { transform: scaleY(1); }
  .flow-dot { border-color: var(--mint); }
  .flow-dot::after { transform: scale(1); }
  .flow-phase span:last-child,
  .flow-outcome-d { opacity: 1; }
  .flow-phase span:not(:last-child),
  .flow-outcome-line:not(.flow-outcome-d) { opacity: 0; }
}
