:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #19251d;
  background: #f7f8f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #f7f8f4;
  --ink: #19251d;
  --muted: #4d5d52;
  --green: #2e634a;
  --deep: #172c20;
  --line: #d7e0d4;
  --lime: #dcf872;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ol, ul, pre { margin: 0; }
body { min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid #3c774a;
  outline-offset: 4px;
}

.icon-library, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  border-radius: .4rem;
  color: var(--deep);
  background: var(--lime);
}

.skip-link:focus { transform: none; }

.icon {
  flex: none;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: #f7f8f4f5;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .66rem;
  font-size: 1.16rem;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand strong { font-weight: 800; }
.brand-name { font-weight: 550; }

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid #cbe663;
  border-radius: .52rem;
  color: var(--deep);
  background: var(--lime);
}

.brand-mark .icon { width: 1.35rem; height: 1.35rem; stroke-width: 1.7; }
.header-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.65rem); }
.header-nav a { color: var(--muted); font-size: .875rem; font-weight: 620; white-space: nowrap; }
.header-nav a:hover, .footer-app:hover { color: var(--green); text-decoration: underline; text-underline-offset: .3rem; }

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button-outline {
  min-height: 2.45rem;
  justify-self: end;
  padding: .55rem 1rem;
  border-color: #bfcbbf;
  background: #ffffff45;
}

.button-outline:hover { border-color: #839f87; background: #eaf1e6; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #cfdacb;
  background: radial-gradient(ellipse at 76% 45%, #eaf0e5 0%, #f7f8f4 58%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#50815a14 1px, transparent 1px), linear-gradient(90deg, #50815a14 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(100deg, transparent 42%, #000 90%);
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.25vw, 4rem);
  align-items: center;
  padding-block: clamp(4.8rem, 7vw, 6.6rem);
}

.hero-copy { padding-bottom: .6rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .095em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow-mark {
  flex: none;
  width: .54rem;
  height: .54rem;
  border: 1px solid #92ae48;
  background: var(--lime);
}

.hero h1 {
  margin-top: 1.12rem;
  font-size: clamp(3.5rem, 5.45vw, 5.15rem);
  font-weight: 720;
  letter-spacing: -.067em;
  word-spacing: .05em;
  line-height: .99;
}

.hero h1 em { color: var(--green); font-style: normal; }
.hero-description {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  line-height: 1.62;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1.8rem; }
.hero-actions .button { min-height: 3.15rem; }
.button-primary { min-width: 9rem; border-color: #cbe65b; background: var(--lime); }
.button-primary:hover { border-color: #b4d143; background: #ccec58; }
.button-text { padding-inline: .5rem; }
.button-text .icon { color: var(--green); }
.button-text:hover { color: var(--green); background: #e8f0e5; }

.replay {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b8c9b8;
  border-radius: 1rem;
  background: #f8fbf6;
  box-shadow: 0 24px 54px #1d3f2520, 0 2px 8px #1835210d;
}

.replay-heading {
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #d4e1d3;
  background: #f9fcf8;
}

.replay-heading h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .94rem;
  font-weight: 730;
  line-height: 1.3;
}

.replay-heading .icon { color: var(--green); }
.example-label { color: var(--muted); font-family: var(--mono); font-size: .75rem; text-align: right; }

.replay-body {
  padding: 1.2rem;
  background-image: radial-gradient(#6a987546 1px, transparent 1px);
  background-position: center top;
  background-size: 15px 15px;
}

.contract-node {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 3.8rem;
  align-items: center;
  gap: .66rem;
  margin-inline: auto;
  padding: .48rem 1.2rem .48rem .65rem;
  border: 1px solid #b9cabb;
  border-radius: .55rem;
  background: #fff;
  box-shadow: 0 3px 6px #193f2612;
}

.node-icon {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
  place-items: center;
  border-radius: .35rem;
  color: #315c44;
  background: #ecf4e8;
}

.contract-node strong, .dataset strong { display: block; font-size: .875rem; line-height: 1.2; }
.contract-node small, .dataset small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; line-height: 1.25; }
.contract-node small { font-family: var(--mono); }

.tree-lines { position: relative; width: calc(50% + .35rem); height: 1.55rem; margin-inline: auto; }
.tree-lines::before {
  position: absolute;
  top: 0;
  left: 50%;
  height: 50%;
  border-left: 1px solid #87a58c;
  content: "";
}

.tree-lines span {
  position: absolute;
  inset: 50% 0 0;
  border: 1px solid #87a58c;
  border-bottom: 0;
  border-radius: .35rem .35rem 0 0;
}

.dataset-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.dataset {
  display: flex;
  min-width: 0;
  min-height: 3.7rem;
  align-items: center;
  gap: .6rem;
  padding: .6rem .7rem;
  border: 1px solid #c6d4c7;
  border-radius: .52rem;
  color: var(--ink);
  background: #fcfdfb;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}

.dataset:hover { border-color: #76a280; background: #f1f8ed; }
.dataset[aria-pressed="true"] { border-color: #7ca687; background: #edf6e7; box-shadow: inset 0 0 0 1px #7ca6873b; }
.dataset > .icon { color: var(--green); }
.dataset-indicator {
  width: .74rem;
  height: .74rem;
  flex: none;
  margin-left: auto;
  border: 1px solid #8da491;
  border-radius: 50%;
  background: #f8fdf7;
}

.dataset[aria-pressed="true"] .dataset-indicator { border-color: #497152; background: #497152; box-shadow: inset 0 0 0 2px #edf6e7; }

.console {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #2c4837;
  border-radius: .6rem;
  color: #eef3ee;
  background: #172a20;
  box-shadow: 0 3px 8px #18352119;
}

.console-toolbar {
  display: flex;
  min-height: 2.75rem;
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  padding: .4rem .8rem;
  border-bottom: 1px solid #d0f0d327;
}

.mode-switch {
  display: flex;
  gap: .15rem;
  padding: .15rem;
  border: 1px solid #d0f0d32b;
  border-radius: .35rem;
  background: #0e2117;
}

.mode-switch button {
  padding: .22rem .55rem;
  border: 0;
  border-radius: .22rem;
  color: #b6c6bb;
  background: transparent;
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.25;
}

.mode-switch button:hover { color: #fff; background: #2d4536; }
.mode-switch button[aria-pressed="true"] { color: #e4f4e4; background: #355443; }
.mode-switch button:focus-visible { outline-color: var(--lime); }
.console-status { display: flex; align-items: center; gap: .37rem; color: #bce3ae; font-family: var(--mono); font-size: .75rem; }
.console-status > span:first-child { width: .39rem; height: .39rem; border-radius: 50%; background: #bce3ae; }

.console-output {
  min-height: 8.4rem;
  padding: .65rem .9rem .83rem;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.5;
}

code { font-family: var(--mono); }
.request { margin-bottom: .38rem; color: #edf5ed; overflow-wrap: anywhere; }
.request > span { margin-right: .22rem; color: #d9f67d; font-weight: 700; }
.json-key { color: #c5d5ca; }
.json-value { color: #b9e2a4; }

.protocol-band { color: #f3f8f1; background: #1d3528; }
.protocol-inner { display: grid; grid-template-columns: max-content max-content; justify-content: space-between; gap: 1.25rem; min-height: 5rem; }
.protocol-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.8rem, 2.3vw, 2.1rem); font-size: .875rem; font-weight: 580; }
.protocol-group:not(:first-child) { padding-left: clamp(1rem, 3vw, 3.25rem); border-left: 1px solid #d1ecd833; }
.protocol-group > span:not(.protocol-label) { white-space: nowrap; }
.protocol-label { color: #cfe68f; font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }

.section { padding-block: clamp(4.4rem, 6.5vw, 6.4rem); scroll-margin-top: 4.5rem; }
.section-heading { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 1.25rem 3rem; margin: .6rem 0 2.35rem; }
.section h2, .final-panel h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); font-weight: 690; line-height: 1.05; letter-spacing: -.057em; word-spacing: .025em; text-wrap: balance; }
.section-heading > p, .section h3 + p, .faq details p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.section-heading > p { max-width: 30rem; padding-bottom: .16rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fcfdfa;
  list-style: none;
}

.steps li { padding: clamp(1.3rem, 2.5vw, 2.15rem); }
.steps li + li { border-left: 1px solid var(--line); }
.feature-icon { display: grid; width: 2.75rem; height: 2.75rem; margin-bottom: 1.12rem; place-items: center; border: 1px solid #d2e0cf; border-radius: .53rem; color: var(--green); background: #eff5eb; }
.feature-icon .icon { width: 1.36rem; height: 1.36rem; }
.section h3 { margin-bottom: .44rem; font-size: 1.25rem; font-weight: 720; line-height: 1.24; letter-spacing: -.036em; }

.capabilities { border-block: 1px solid var(--line); background: #edf2ea; }
.features { display: grid; grid-template-columns: 1.14fr 1fr; gap: .9rem; }
.feature { min-width: 0; padding: clamp(1.25rem, 2.7vw, 2.05rem); border: 1px solid #d4e0d3; border-radius: .85rem; background: #fafcf8; }
.feature h3 { font-size: 1.43rem; }
.feature > p { max-width: 34rem; }

.cloak {
  border-color: #2c513b;
  color: #f5f9ef;
  background: radial-gradient(ellipse at 100% 0%, #2b543b 0%, #1c3629 70%);
}

.cloak .feature-icon { border-color: #bde9a851; color: #d8f384; background: #bde9a818; }
.section .cloak > p { color: #d2e1d4; }
.cloak-preview { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; border: 1px solid #86aa9066; border-radius: .5rem; background: #10271c65; }
.cloak-preview > span { min-width: 0; padding: .65rem .8rem; }
.cloak-preview > span + span { border-left: 1px solid #86aa9066; }
.cloak-preview small { display: block; margin-bottom: .2rem; color: #bcd0bf; font-size: .75rem; }
.cloak-preview code { color: #e0eae0; font-size: .82rem; overflow-wrap: anywhere; }
.cloak-preview > span:last-child code { color: #dbf68a; }

.mcp { background: #f7fbf3; }
.mcp-example { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .9rem; margin-top: 1.25rem; }
.mcp-example code { display: inline-flex; align-items: center; gap: .4rem; padding: .54rem .68rem; border: 1px solid #d2e0cf; border-radius: .38rem; color: #2a553d; background: #eef5e8; font-size: .82rem; }
.mcp-example .icon { width: 1rem; height: 1rem; }
.mcp-example > span { color: var(--muted); font-size: .82rem; }

.fixture-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.15rem; margin-top: 2.25rem; padding-top: 1.55rem; border-top: 1px solid #d2ded0; }
.fixture-row ul { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; }
.fixture-row li { padding: .45rem .64rem; border: 1px solid #cbdac9; border-radius: .35rem; color: #37543e; background: #f5f8f2; font-size: .875rem; font-weight: 620; }

.faq-inner { display: grid; grid-template-columns: .88fr 1.12fr; gap: 2rem clamp(2rem, 6vw, 6rem); }
.faq h2 { margin-top: .6rem; text-wrap: initial; }
.faq-questions { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; min-height: 3.9rem; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem .2rem; list-style: none; font-size: 1rem; font-weight: 660; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary .icon { color: var(--green); transition: transform .15s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 1.8rem 1.05rem .2rem; }

.final-section { padding-bottom: clamp(3.65rem, 6vw, 5.5rem); }
.final-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.65rem 2.5rem;
  padding: clamp(1.65rem, 4.4vw, 3.65rem);
  border: 1px solid #c1da59;
  border-radius: .95rem;
  background: linear-gradient(90deg, #dcf872 10%, #dcf8726b 80%), repeating-linear-gradient(90deg, #c8e55d 0 1px, transparent 1px 1.75rem), repeating-linear-gradient(0deg, #c8e55d 0 1px, #dcf872 1px 1.75rem);
}

.final-panel h2 { font-size: clamp(2.15rem, 3.7vw, 3.65rem); text-wrap: initial; }
.final-panel p { margin-top: .65rem; color: #354627; font-size: 1rem; line-height: 1.5; }
.button-dark { min-height: 3rem; min-width: 9.5rem; color: #fff; background: var(--deep); }
.button-dark:hover { background: #325641; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 5rem; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.footer-app { color: var(--muted); font-family: var(--mono); font-size: .875rem; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 4rem); }
  .hero-inner { gap: 2.25rem; }
  .hero h1 { font-size: clamp(3.1rem, 6vw, 4.4rem); }
}

@media (max-width: 860px) {
  .container { width: calc(100% - 3rem); }
  .header-inner { gap: 1.15rem; }
  .header-nav { gap: 1.15rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.8rem; padding-block: 3.65rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.25rem, 10vw, 5.05rem); }
  .replay { width: min(100%, 36rem); }
  .protocol-inner { grid-template-columns: minmax(0, 1fr) max-content; padding-block: 1rem; }
  .section-heading { grid-template-columns: 1fr; gap: .75rem; }
  .section h2 { text-wrap: initial; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 2.5rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .65rem; min-height: auto; padding-top: .68rem; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.35rem; padding-top: .25rem; }
  .header-nav a { display: grid; place-items: center; min-height: 2.45rem; }
  .hero-inner { gap: 2.15rem; padding-block: 3.2rem 2.75rem; }
  .hero h1 { font-size: clamp(2.45rem, 10.7vw, 4.1rem); }
  .hero-actions { margin-top: 1.4rem; }
  .replay-heading { padding-inline: .85rem; }
  .replay-body { padding: .8rem; }
  .dataset { gap: .37rem; padding: .55rem .45rem; }
  .dataset .icon { width: 1.08rem; height: 1.08rem; }
  .dataset-indicator { width: .58rem; height: .58rem; }
  .console-output { padding-inline: .75rem; }
  .protocol-inner { grid-template-columns: 1fr; gap: .65rem; }
  .protocol-group { display: grid; grid-template-columns: 3.5rem repeat(2, max-content); gap: .4rem .75rem; }
  .protocol-group:first-child > :last-child { grid-column: 2 / -1; }
  .protocol-group:not(:first-child) { padding: .65rem 0 0; border: 0; border-top: 1px solid #d1ecd833; }
  .section { padding-block: 3.65rem; scroll-margin-top: 5.6rem; }
  .section-heading { margin-bottom: 1.6rem; }
  .steps, .features, .faq-inner { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .faq-inner { gap: 1.45rem; }
}

@media (max-width: 350px) {
  .container { width: calc(100% - 1.65rem); }
  .brand { gap: .4rem; font-size: 1rem; }
  .header-inner .button { padding-inline: .65rem; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 2.45rem); }
  .replay-heading h2 { font-size: .83rem; }
  .dataset .icon { display: none; }
  .protocol-group { gap: .4rem .5rem; font-size: .78rem; }
  .protocol-label { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
