:root {
  --paper: #f4f1e9;
  --ink: #14171a;
  --muted: #6f706d;
  --line: rgba(20, 23, 26, 0.18);
  --blue: #2eaef2;
  --deep-blue: #337ee8;
  --cyan: #46d7d5;
  --acid: #caff4a;
  --white: #ffffff;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

a:focus-visible {
  outline: 3px solid var(--deep-blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--acid);
  font-weight: 800;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  display: block;
  width: 70px;
  height: auto;
}

.top-nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
}

.top-nav a,
.plain-link,
.closing-links a {
  position: relative;
}

.top-nav a::after,
.plain-link::after,
.closing-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 180ms ease;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after,
.plain-link:hover::after,
.plain-link:focus-visible::after,
.closing-links a:hover::after,
.closing-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.npm-chip {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.npm-chip:hover,
.npm-chip:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  min-height: calc(100vh - 84px);
  overflow: hidden;
}

.hero-copy,
.live-demo {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 4vw 7vw 5vw;
}

.eyebrow,
.section-number {
  margin: 0 0 42px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(70px, 8.3vw, 150px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.79;
}

.hero h1 i {
  color: transparent;
  font-weight: 500;
  font-style: normal;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-intro {
  max-width: 490px;
  margin: 54px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 13px;
}

.primary-link {
  display: flex;
  width: 180px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--white);
  background: var(--ink);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  transform: translate(-3px, -3px);
  background: var(--deep-blue);
}

.live-demo {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: 72px 1fr 88px;
  min-height: 660px;
  margin: 4vw 4vw 4vw 0;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--cyan);
}

.demo-rail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.demo-rail span:nth-child(2) {
  text-align: center;
}

.demo-rail span:last-child {
  text-align: right;
}

.source-line {
  position: absolute;
  top: 115px;
  right: 32px;
  left: 32px;
  display: flex;
  gap: 22px;
  padding: 19px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: clamp(14px, 1.25vw, 20px);
}

.source-line b {
  color: var(--cyan);
  font-weight: 500;
}

.source-line code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-number {
  color: rgba(255, 255, 255, 0.35);
}

.locale-switcher {
  position: absolute;
  top: 204px;
  left: 32px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.locale {
  width: 56px;
  height: 48px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.locale:last-child {
  border-right: 0;
}

.locale:hover,
.locale:focus-visible {
  color: var(--white);
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.locale.is-active {
  color: var(--ink);
  background: var(--acid);
}

.output-wrap {
  position: absolute;
  top: 46%;
  right: 34px;
  left: 34px;
  transform: translateY(-8%);
}

.output-index {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.output {
  min-height: 1.05em;
  margin: 16px 0 0;
  font-size: clamp(58px, 6vw, 104px);
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 0.95;
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.output.is-changing {
  transform: translateY(10px);
  opacity: 0;
}

.demo-note {
  align-self: end;
  margin: 0;
  padding: 30px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono);
  font-size: 12px;
}

.hero-stamp {
  position: absolute;
  bottom: -86px;
  left: 42%;
  z-index: 4;
  display: grid;
  width: 170px;
  height: 170px;
  transform: rotate(30deg);
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue), var(--deep-blue));
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.hero-stamp span {
  transform: rotate(-30deg);
  font-size: 80px;
  font-weight: 700;
}

.hero-stamp i {
  position: absolute;
  width: 54px;
  height: 9px;
  background: var(--cyan);
}

.hero-stamp i:nth-of-type(1) {
  top: 21px;
  right: 14px;
}
.hero-stamp i:nth-of-type(2) {
  right: -12px;
  bottom: 50px;
}
.hero-stamp i:nth-of-type(3) {
  bottom: 30px;
  left: 2px;
}

.manifesto {
  padding: 150px 6vw 120px;
  border-top: 1px solid var(--line);
}

.manifesto h2 {
  max-width: 1250px;
  margin: 0;
  font-size: clamp(48px, 6.4vw, 104px);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.manifesto h2 span {
  display: block;
  color: var(--deep-blue);
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 100px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.comparison {
  display: grid;
  min-height: 245px;
  min-width: 0;
  padding: 28px;
  align-content: space-between;
}

.comparison + .comparison {
  border-left: 1px solid var(--ink);
}

.comparison p,
.comparison span {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.comparison code {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(18px, 2.15vw, 34px);
}

.old-way {
  color: #7e7e79;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 7px,
    rgba(20, 23, 26, 0.05) 7px,
    rgba(20, 23, 26, 0.05) 8px
  );
}

.old-way code {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.locon-way {
  background: var(--acid);
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 420px;
  align-items: center;
  padding: 40px 6vw 70px;
  overflow: hidden;
  color: var(--white);
  background: var(--deep-blue);
}

.flow::before,
.flow::after {
  position: absolute;
  top: 50%;
  width: 22%;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.5);
}

.flow::before {
  left: 27%;
}
.flow::after {
  right: 27%;
}

.flow-word {
  margin: 0;
  font-size: clamp(42px, 5vw, 86px);
  font-weight: 680;
  letter-spacing: -0.06em;
}

.flow-word:nth-of-type(2) {
  text-align: right;
}

.flow-mark {
  position: relative;
  z-index: 2;
  display: grid;
  width: 116px;
  height: 116px;
  margin: 0 70px;
  transform: rotate(30deg);
  place-items: center;
  color: var(--deep-blue);
  background: var(--acid);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.flow-mark span {
  transform: rotate(-30deg);
  font-size: 54px;
  font-weight: 800;
}

.flow-caption {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.flow-caption span {
  width: 45px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.resources {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 7vw;
  padding: 140px 6vw;
  background: var(--paper);
}

.resources-heading,
.resource-demo {
  min-width: 0;
}

.resources-heading h2 {
  margin: 0;
  font-size: clamp(54px, 6vw, 98px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.resources-heading h2 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.resources-heading > p:last-child {
  max-width: 430px;
  margin: 46px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.resource-demo {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.resource-tree {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px 18px;
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.resource-tree p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.resource-tree span,
.resource-tree strong {
  position: relative;
  font-weight: 400;
  white-space: nowrap;
}

.resource-tree span::before {
  color: var(--muted);
  content: "⌄ ";
}

.resource-tree strong::before {
  color: var(--deep-blue);
  content: "{} ";
}

.tree-indent {
  margin-left: 9px;
}
.tree-indent-2 {
  margin-left: 18px;
}
.tree-indent-3 {
  margin-left: 27px;
}

.resource-files {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}

.resource-file {
  min-width: 0;
  overflow-x: auto;
  color: var(--paper);
  background: var(--ink);
}

.resource-file + .resource-file {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.resource-file header {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.56);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.resource-file header span:first-child {
  color: var(--white);
}

.resource-file pre {
  min-width: 410px;
  padding: 30px 20px 36px;
  font-size: 12px;
}

.resource-file-accent {
  background: #073a50;
}

.json-key {
  color: #76dde0;
}
.json-value {
  color: #caff4a;
}

.resolution-path {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr auto 0.8fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-top: 1px solid var(--ink);
  background: var(--white);
}

.resolution-path > span {
  color: var(--deep-blue);
  font-size: 22px;
}

.resolution-path div {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.resolution-path small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resolution-path code,
.resolution-path strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resolution-path strong {
  color: var(--deep-blue);
}

.quick-start {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 8vw;
  padding: 140px 6vw;
  background: #ebe7de;
}

.start-heading {
  position: sticky;
  top: 50px;
  height: fit-content;
}

.start-heading h2 {
  margin: 0;
  font-size: clamp(54px, 6vw, 96px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.start-heading > p:last-child {
  max-width: 440px;
  margin: 48px 0 0;
  font-size: 18px;
  line-height: 1.55;
}

.code-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.install-box {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.package-tabs {
  display: flex;
  min-height: 48px;
  border-bottom: 1px solid var(--ink);
}

.package-tab {
  position: relative;
  min-width: 86px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid var(--ink);
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.package-tab::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 4px;
  content: "";
  transform: scaleX(0);
  background: var(--deep-blue);
  transition: transform 160ms ease;
}

.package-tab:hover,
.package-tab:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--deep-blue);
  outline-offset: -4px;
}

.package-tab.is-active {
  color: var(--ink);
  background: var(--white);
  font-weight: 700;
}

.package-tab.is-active::after {
  transform: scaleX(1);
}

.install-line {
  display: flex;
  align-items: center;
  min-height: 76px;
  font-family: var(--mono);
}

.install-line .prompt {
  margin: 0 15px 0 24px;
  color: var(--deep-blue);
  font-size: 22px;
  font-weight: 700;
}

.install-line code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  align-self: stretch;
  min-width: 108px;
  border: 0;
  border-left: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: var(--ink);
  background: var(--acid);
  outline: 2px solid var(--deep-blue);
  outline-offset: -4px;
}

.code-block {
  overflow: auto;
  color: #f4f1e9;
  background: var(--ink);
}

.code-block-light {
  color: var(--ink);
  background: var(--white);
}

.code-label {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.code-block-light .code-label {
  border-color: var(--line);
}

pre {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 32px 26px 38px;
  font: 15px/1.8 var(--mono);
}

.syntax-purple {
  color: #d9a7ff;
}
.syntax-string {
  color: #9be36e;
}
.syntax-blue {
  color: #65c8ff;
}
.syntax-dim {
  color: #73777d;
}
.code-block:not(.code-block-light) .syntax-dim,
.doc-body .syntax-dim,
.resource-file .syntax-dim {
  color: #9a9ea4;
}
.code-block-light .syntax-purple {
  color: #8844c2;
}
.code-block-light .syntax-string {
  color: #237c42;
}
.code-block-light .syntax-blue {
  color: #006da8;
}

.docs {
  padding: 140px 6vw;
  color: var(--paper);
  background: var(--ink);
}

.docs-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 8vw;
  align-items: end;
  padding-bottom: 90px;
}

.docs-header h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(58px, 7vw, 112px);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.docs .section-number {
  color: #76dde0;
}

.docs-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.55;
}

.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  color: #76dde0;
  font-family: var(--mono);
  font-size: 11px;
}

.docs-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(118, 221, 224, 0.5);
}

.docs-list {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.doc-entry {
  display: grid;
  grid-template-columns: minmax(14rem, 0.36fr) minmax(0, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.docs-header > *,
.doc-entry > * {
  min-width: 0;
}

.doc-index {
  display: flex;
  min-height: 100%;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding: 36px 30px 36px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--mono);
}

.doc-index span {
  color: #76dde0;
  font-size: 11px;
}

.doc-index code {
  min-width: 0;
  font-size: clamp(16px, 1.7vw, 25px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.doc-body {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  column-gap: 4vw;
  min-width: 0;
  padding: 36px 0 48px 4vw;
}

.doc-body h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.doc-body > p {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.doc-body > p code {
  color: #76dde0;
  font-family: var(--mono);
  font-size: 0.86em;
}

.doc-body > p .plain-link {
  color: #76dde0;
}

.doc-body pre {
  grid-row: 1 / span 3;
  grid-column: 2;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0c1115;
  font-size: 13px;
}

/* A second paragraph after the code block: row 3 on desktop, below the
   code on narrow screens. Neither layout has a row gap of its own. */
.doc-body > pre + p {
  margin-top: 26px;
}

.prop-list {
  grid-column: 1;
  display: grid;
  margin: 30px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.prop-list div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.prop-list dt,
.prop-list dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.prop-list dt {
  color: #76dde0;
  font-family: var(--mono);
}

.prop-list dd {
  color: rgba(255, 255, 255, 0.58);
}

.agent-skill {
  padding: 140px 6vw;
  background: var(--acid);
}

.skill-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 8vw;
  align-items: end;
}

.skill-header h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(58px, 7vw, 112px);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.skill-header > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.skill-header code,
.skill-step code,
.skill-tool-body p code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.skill-setup {
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.28fr);
  margin-top: 90px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.skill-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 22px;
  padding: 38px;
}

.skill-step > span {
  color: var(--deep-blue);
  font-family: var(--mono);
  font-size: 11px;
}

.skill-step h3 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.skill-step p {
  max-width: 610px;
  margin: 24px 0 0;
  color: #545652;
  line-height: 1.6;
}

.skill-setup > pre {
  display: flex;
  align-items: center;
  min-width: 0;
  border-left: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.skill-setup > pre code {
  min-width: max-content;
}

.skill-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.skill-tool {
  min-width: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.skill-tool-codex {
  background: #073a50;
}

.skill-tool > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.skill-tool > header code {
  color: var(--acid);
  font-size: 14px;
  text-transform: none;
}

.skill-tool-body {
  display: grid;
  grid-template-columns: minmax(10rem, 0.62fr) minmax(0, 1.38fr);
  gap: 24px;
  min-width: 0;
  padding: 28px;
}

.skill-tool-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.skill-tool-body p code {
  color: var(--cyan);
}

.skill-tool-body pre {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  line-height: 1.65;
}

.skill-tool .syntax-dim {
  color: #9a9ea4;
}

.skill-behavior {
  margin-top: 18px;
  padding: 0 38px 38px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.skill-behavior > .skill-step {
  padding-right: 0;
  padding-left: 0;
}

.skill-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  list-style: none;
}

.skill-workflow li {
  min-width: 0;
  padding: 24px;
  color: #545652;
  line-height: 1.5;
}

.skill-workflow li + li {
  border-left: 1px solid var(--ink);
}

.skill-workflow span {
  display: block;
  margin-bottom: 14px;
  color: var(--deep-blue);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.skill-note {
  max-width: 820px;
  margin: 34px 0 0;
  line-height: 1.6;
}

.skill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
  color: var(--deep-blue);
  font-family: var(--mono);
  font-size: 11px;
}

.skill-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
}

.closing {
  display: grid;
  min-height: 720px;
  place-items: center;
  align-content: center;
  padding: 100px 5vw;
  text-align: center;
  background: var(--paper);
}

.closing img {
  margin-bottom: 40px;
}

.closing h2 {
  margin: 0;
  font-size: clamp(66px, 9vw, 154px);
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.closing h2 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.closing-links {
  display: flex;
  gap: 34px;
  margin-top: 65px;
  font-family: var(--mono);
  font-size: 13px;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 96px;
  padding: 0 4vw;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

footer img {
  display: block;
}

footer p:nth-child(2) {
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

/* Keep documentation examples beside the prose only when both columns have
   room. Below this width the code becomes a full-width row inside the entry. */
@media (max-width: 1500px) {
  .doc-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-body pre {
    grid-row: auto;
    grid-column: 1;
    margin-top: 28px;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    min-height: 690px;
  }

  .live-demo {
    min-height: 640px;
    margin: 0 5vw 8vw;
  }

  .hero-stamp {
    display: none;
  }

  .quick-start {
    grid-template-columns: 1fr;
  }

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

  .docs-header {
    grid-template-columns: 1fr;
  }

  .skill-header,
  .skill-setup,
  .skill-tool-body {
    grid-template-columns: 1fr;
  }

  .skill-header > p {
    max-width: 650px;
  }

  .skill-setup > pre {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .skill-tool-body pre {
    margin-top: 0;
  }

  .skill-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-workflow li:nth-child(3) {
    border-left: 0;
  }

  .skill-workflow li:nth-child(n + 3) {
    border-top: 1px solid var(--ink);
  }

  .doc-entry {
    grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
  }

  .start-heading {
    position: static;
  }

  .flow-mark {
    margin: 0 30px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 70px;
    padding: 0 20px;
  }

  .brand img {
    width: 64px;
    height: auto;
  }

  .npm-chip {
    display: none;
  }

  .hero-copy {
    min-height: 600px;
    padding: 80px 22px 60px;
  }

  .hero h1 {
    font-size: clamp(60px, 18vw, 76px);
  }

  .hero-intro {
    margin-top: 42px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-demo {
    min-height: 560px;
    margin: 0 22px 65px;
    box-shadow: 10px 10px 0 var(--cyan);
  }

  .source-line {
    right: 18px;
    left: 18px;
    gap: 10px;
    padding: 16px 12px;
    font-size: 12px;
  }

  .locale-switcher {
    left: 18px;
  }

  .locale {
    width: 46px;
  }

  .output-wrap {
    right: 18px;
    left: 18px;
  }

  .output {
    font-size: clamp(50px, 16vw, 74px);
  }

  .manifesto,
  .quick-start,
  .resources,
  .docs,
  .agent-skill {
    padding: 100px 22px;
  }

  .before-after {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 70px;
  }

  .comparison + .comparison {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 560px;
    justify-items: center;
  }

  .flow::before,
  .flow::after {
    display: none;
  }

  .flow-word:nth-of-type(2) {
    text-align: center;
  }

  .flow-mark {
    margin: 0;
  }

  .flow-caption {
    gap: 8px;
    font-size: 9px;
  }

  .flow-caption span {
    width: 16px;
  }

  .resource-demo {
    grid-template-columns: 1fr;
  }

  .resource-tree {
    display: none;
  }

  .resource-files {
    grid-template-columns: 1fr;
  }

  .resource-file + .resource-file {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .resource-file pre {
    min-width: 360px;
  }

  .resolution-path {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resolution-path > span {
    transform: rotate(90deg);
    justify-self: start;
  }

  .docs-header {
    padding-bottom: 65px;
  }

  .skill-header > p {
    margin-top: 42px;
  }

  .skill-setup {
    margin-top: 65px;
  }

  .skill-step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 22px;
  }

  .skill-prompts {
    grid-template-columns: 1fr;
  }

  .skill-tool-body {
    padding: 22px;
  }

  .skill-behavior {
    padding: 0 22px 28px;
  }

  .skill-workflow {
    grid-template-columns: 1fr;
  }

  .skill-workflow li + li,
  .skill-workflow li:nth-child(3) {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .doc-entry {
    grid-template-columns: 1fr;
  }

  .doc-index {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .doc-body {
    padding: 35px 0 55px;
  }

  .doc-body pre {
    overflow-x: auto;
  }

  pre {
    padding-right: 20px;
    padding-left: 20px;
    font-size: 13px;
  }

  .install-line {
    font-size: 12px;
  }

  .install-line .prompt {
    margin-right: 10px;
    margin-left: 14px;
  }

  .package-tab {
    min-width: 76px;
  }

  .closing {
    min-height: 600px;
  }

  .closing-links {
    flex-direction: column;
    gap: 22px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 22px;
  }

  footer p,
  footer p:nth-child(2),
  footer p:last-child {
    margin: 0;
    text-align: left;
  }
}

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