:root {
  color-scheme: light;
  --ink: #10292d;
  --ink-soft: #314b50;
  --muted: #64797d;
  --paper: #f4f8f8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --line: rgba(23, 64, 71, 0.13);
  --line-strong: rgba(23, 64, 71, 0.22);
  --aqua: #008da0;
  --aqua-dark: #007181;
  --mint: #42cbb2;
  --blue: #147cd1;
  --amber: #ad6716;
  --danger: #b22f38;
  --shadow: 0 24px 70px rgba(18, 61, 67, 0.11);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --page: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 2%, rgba(66, 203, 178, 0.2), transparent 29rem),
    radial-gradient(circle at 94% 14%, rgba(20, 124, 209, 0.14), transparent 31rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--aqua-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #0876bd;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(23, 64, 71, 0.08);
  background: rgba(244, 248, 248, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
}

.nav-inner {
  display: flex;
  width: min(calc(100% - 36px), var(--page));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(0, 113, 129, 0.18);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(66, 203, 178, 0.26), rgba(20, 124, 209, 0.14));
  place-items: center;
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 650;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--aqua-dark);
}

main {
  overflow: hidden;
}

.shell {
  width: min(calc(100% - 36px), var(--page));
  margin: 0 auto;
}

.hero {
  padding: clamp(86px, 13vw, 160px) 0 clamp(72px, 10vw, 124px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(66, 203, 178, 0.13);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin-right: auto;
  margin-bottom: 27px;
  margin-left: auto;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--aqua-dark), var(--blue) 60%, #6258c7);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--ink-soft);
  font-size: clamp(19px, 2.6vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

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

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--aqua-dark), var(--blue));
  box-shadow: 0 12px 28px rgba(0, 113, 129, 0.2);
}

.button.primary:hover {
  color: #fff;
  box-shadow: 0 15px 34px rgba(0, 113, 129, 0.27);
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.73);
}

.button.ghost-danger {
  border-color: rgba(178, 47, 56, 0.2);
  color: #8d2830;
  background: rgba(255, 255, 255, 0.68);
}

.button.ghost-danger:hover {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.94);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.chip,
.label {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1;
}

.section {
  padding: clamp(62px, 9vw, 108px) 0;
}

.section.compact {
  padding-top: 30px;
}

.section-header {
  max-width: 750px;
  margin-bottom: 36px;
}

.section-header.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.kicker {
  margin-bottom: 12px;
  color: var(--aqua-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 730;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 11px;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.section-header p,
.large-copy {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.scope-grid,
.eligibility-grid,
.provenance-grid {
  display: grid;
  gap: 16px;
}

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

.scope-grid.explanation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 45px rgba(18, 61, 67, 0.06);
}

.scope-card {
  padding: clamp(25px, 4vw, 38px);
}

.scope-card.good {
  border-color: rgba(0, 141, 160, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(66, 203, 178, 0.08));
}

.scope-card.caution {
  border-color: rgba(173, 103, 22, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 166, 75, 0.08));
}

.scope-card ul,
.check-list,
.plain-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.scope-card li,
.check-list li,
.plain-list li {
  position: relative;
  margin-top: 11px;
  padding-left: 25px;
  color: var(--ink-soft);
}

.scope-card li::before,
.check-list li::before,
.plain-list li::before {
  position: absolute;
  left: 0;
  color: var(--aqua);
  font-weight: 800;
  content: "✓";
}

.scope-card.caution li::before,
.plain-list.warning li::before {
  color: var(--amber);
  content: "—";
}

.compatibility-note {
  margin-top: 18px;
  padding: 16px 19px;
  border: 1px solid rgba(178, 47, 56, 0.17);
  border-radius: var(--radius-sm);
  color: #70242b;
  background: rgba(178, 47, 56, 0.055);
  font-size: 14px;
}

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

.eligibility-card {
  padding: 27px;
}

.number {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 11px;
  color: var(--aqua-dark);
  background: rgba(66, 203, 178, 0.14);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.eligibility-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.eligibility-card .plain-list {
  margin-top: 14px;
}

.eligibility-card .plain-list li {
  font-size: 13px;
  line-height: 1.55;
}

.stop-card {
  border-color: rgba(173, 103, 22, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 166, 75, 0.07));
}

.matrix-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(20, 124, 209, 0.055));
}

.matrix-line {
  display: flex;
  margin-top: 9px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.matrix-line:last-child {
  border-bottom: 0;
}

.matrix-line strong {
  color: var(--ink);
  font-size: 12px;
}

.flow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 4px 22px;
  padding: clamp(27px, 5vw, 47px);
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
}

.step-index {
  grid-row: 1 / span 3;
  color: var(--aqua);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.step > p {
  max-width: 760px;
  color: var(--ink-soft);
}

.code-wrap {
  position: relative;
  min-width: 0;
  margin-top: 13px;
}

pre {
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(116, 230, 211, 0.14);
  border-radius: var(--radius-sm);
  color: #d7f4ef;
  background: #10272b;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.68;
  tab-size: 2;
}

pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 23px;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(215, 244, 239, 0.2);
  border-radius: 9px;
  color: #d7f4ef;
  background: rgba(16, 39, 43, 0.88);
  font: inherit;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

.copy-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.safety-band {
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid rgba(173, 103, 22, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 231, 204, 0.56));
}

.safety-band.spaced {
  margin-top: 16px;
}

.safety-band p:last-child {
  margin-bottom: 0;
}

.danger-band {
  border-color: rgba(178, 47, 56, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 225, 227, 0.58));
}

.artifact-hash,
.footer-hash {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.final-card .footer-hash {
  margin: 22px auto 0;
  color: #c6dedb;
  font-size: 11px;
}

.agent-card {
  padding: clamp(27px, 5vw, 48px);
  border: 1px solid rgba(0, 141, 160, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #f9ffff, #edf9f7);
  box-shadow: var(--shadow);
}

.agent-card .code-wrap {
  margin-top: 25px;
}

.prompt-wrap pre {
  max-height: 530px;
}

.patch-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.patch-panel summary {
  display: flex;
  min-height: 84px;
  padding: 23px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 730;
  cursor: pointer;
  list-style: none;
}

.patch-panel summary::-webkit-details-marker {
  display: none;
}

.patch-panel summary::after {
  color: var(--aqua-dark);
  font-size: 24px;
  content: "+";
}

.patch-panel[open] summary::after {
  content: "−";
}

.patch-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.patch-summary-copy small {
  color: var(--muted);
  font-weight: 520;
}

.patch-status {
  margin-left: auto;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
}

.patch-status[data-state="verified"] {
  color: var(--aqua-dark);
}

.patch-status[data-state="failed"] {
  color: var(--danger);
}

.patch-body {
  padding: 0 20px 20px;
}

.patch-toolbar {
  display: flex;
  padding: 13px 0;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.small-button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.small-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.patch-code {
  max-height: 680px;
}

.patch-code.tall-source {
  max-height: 760px;
}

.source-panel {
  margin-top: 18px;
}

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

.provenance-card {
  padding: 25px;
}

.provenance-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.mono {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.91em;
}

.final-card {
  padding: clamp(40px, 7vw, 74px);
  border-radius: var(--radius-lg);
  color: #e8fbf7;
  background:
    radial-gradient(circle at 80% 0, rgba(66, 203, 178, 0.22), transparent 25rem),
    #10272b;
  text-align: center;
  box-shadow: 0 30px 80px rgba(16, 39, 43, 0.18);
}

.final-card h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.final-card p {
  max-width: 710px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  color: #b9d8d4;
  font-size: 17px;
}

.final-card .button.secondary {
  border-color: rgba(232, 251, 247, 0.23);
  color: #e8fbf7;
  background: rgba(255, 255, 255, 0.07);
}

footer {
  padding: 42px 0 50px;
  color: #506a6e;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.alert-section {
  margin-top: -46px;
  padding-bottom: 34px;
}

.truth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid rgba(178, 47, 56, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(66, 203, 178, 0.13), transparent 28rem),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.truth-card h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.truth-copy p {
  color: var(--ink-soft);
}

.truth-copy p:last-child {
  margin-bottom: 0;
}

.display-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  margin: 46px 0 20px;
  align-items: center;
}

.display-state {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 54px rgba(18, 61, 67, 0.07);
}

.display-state > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.state-label {
  display: block;
  margin-bottom: 16px;
  color: var(--aqua-dark);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.split-output,
.joined-output {
  min-height: 196px;
  overflow: hidden;
  border: 9px solid #19383d;
  border-radius: 19px;
  background:
    radial-gradient(circle at 30% 30%, rgba(84, 215, 190, 0.74), transparent 36%),
    linear-gradient(135deg, #124d5a, #226aaa 62%, #6657af);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 19px 40px rgba(16, 39, 43, 0.18);
}

.split-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.split-output > div {
  display: flex;
  min-width: 0;
  padding: 14px 8px;
  border: 9px solid #19383d;
  border-radius: 19px;
  color: #f1fffc;
  background:
    radial-gradient(circle at 30% 30%, rgba(84, 215, 190, 0.7), transparent 36%),
    linear-gradient(135deg, #124d5a, #226aaa 62%, #6657af);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.split-output strong,
.joined-output strong {
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: -0.04em;
}

.split-output small,
.joined-output small {
  display: block;
  margin-top: 5px;
  color: rgba(235, 255, 251, 0.7);
  font-size: 10px;
}

.joined-output {
  position: relative;
  display: flex;
  color: #f1fffc;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.joined-output .seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.comparison-arrow {
  color: var(--aqua);
  font-size: 34px;
  font-weight: 300;
}

.command-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 34px);
  align-items: center;
}

.command-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.command-card.compact-command {
  display: block;
  margin-top: 0;
}

.step-note {
  padding: 12px 15px;
  border-radius: 12px;
  color: var(--muted) !important;
  background: rgba(0, 141, 160, 0.055);
  font-size: 13px;
}

.left-row {
  justify-content: flex-start;
  margin-top: 20px;
}

.research-details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.research-details summary {
  padding: 20px 24px;
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
}

.research-details > div {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14px;
}

.research-details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .scope-grid,
  .eligibility-grid,
  .provenance-grid {
    grid-template-columns: 1fr;
  }

  .scope-grid.explanation-grid,
  .truth-card,
  .command-card {
    grid-template-columns: 1fr;
  }

  .display-comparison {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .nav-links a:not(.download-nav) {
    display: none;
  }

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

  .step-index {
    grid-row: auto;
  }

  .patch-status {
    max-width: 9rem;
    font-size: 10px;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .shell {
    width: min(calc(100% - 24px), var(--page));
  }

  h1 {
    font-size: clamp(44px, 16vw, 66px);
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .step {
    padding: 25px 20px;
  }

  .split-output,
  .joined-output {
    min-height: 160px;
  }

  .patch-panel summary {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
