/* AgentDiff landing page
   Original product-site treatment inspired by editorial Framer layouts.
   All selectors are scoped to .ad-home so documentation remains independent. */

:root {
  --ad-paper: #f2efe5;
  --ad-paper-2: #e8e3d5;
  --ad-ink: #151612;
  --ad-muted: #66695f;
  --ad-line: rgba(21, 22, 18, 0.18);
  --ad-night: #11120f;
  --ad-night-2: #1a1c18;
  --ad-night-line: rgba(244, 239, 222, 0.14);
  --ad-cream: #f5f0df;
  --ad-orange: #f06a3c;
  --ad-orange-dark: #a63d1f;
  --ad-lime: #cbed57;
  --ad-yellow: #e5b94b;
  --ad-radius: 28px;
  --ad-page: min(1440px, calc(100vw - 48px));
  --ad-display: clamp(3.35rem, 7.4vw, 8.6rem);
}

html:has(.ad-home),
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body:has(.ad-home) {
  background: var(--ad-paper);
  color: var(--ad-ink);
}

body:has(.ad-home) .md-header,
body:has(.ad-home) .md-sidebar,
body:has(.ad-home) .md-footer,
body:has(.ad-home) .md-top,
body:has(.ad-home) .md-path,
body:has(.ad-home) .md-content__button {
  display: none !important;
}

body:has(.ad-home) .md-container,
body:has(.ad-home) .md-main,
body:has(.ad-home) .md-main__inner,
body:has(.ad-home) .md-content,
body:has(.ad-home) .md-content__inner {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.ad-home) .md-main__inner {
  min-height: 0;
}

body:has(.ad-home) .md-content__inner::before,
body:has(.ad-home) .md-content__inner::after {
  display: none;
}

.ad-home {
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 18% 4%, rgba(240, 106, 60, 0.08), transparent 23rem),
    var(--ad-paper);
  color: var(--ad-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ad-home *,
.ad-home *::before,
.ad-home *::after {
  box-sizing: border-box;
}

.ad-home a {
  color: inherit;
  text-decoration: none;
}

.ad-home button {
  color: inherit;
  font: inherit;
}

.ad-home code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: inherit;
}

.ad-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ad-skip {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ad-cream);
  color: var(--ad-ink);
  font-weight: 750;
  transition: transform 160ms ease;
}

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

.ad-site-header {
  position: relative;
  z-index: 50;
  padding: 18px 0;
}

.ad-site-nav {
  width: var(--ad-page);
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--ad-line);
}

.ad-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 810;
  letter-spacing: -0.03em;
}

.ad-wordmark img,
.ad-wordmark svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  color: var(--ad-orange);
}

.ad-site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 0.79rem;
  font-weight: 720;
}

.ad-site-nav__links > a:not(.ad-nav-cta) {
  position: relative;
  padding: 20px 0;
}

.ad-site-nav__links > a:not(.ad-nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 180ms ease;
}

.ad-site-nav__links > a:not(.ad-nav-cta):hover::after,
.ad-site-nav__links > a:not(.ad-nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ad-nav-cta {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ad-ink);
  color: var(--ad-cream) !important;
  transition: transform 180ms ease, background 180ms ease;
}

.ad-nav-cta:hover {
  transform: translateY(-2px);
  background: var(--ad-orange);
}

.ad-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--ad-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.ad-menu-button > span:not(.ad-visually-hidden) {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

/* Hero */
.ad-hero {
  position: relative;
  width: var(--ad-page);
  min-height: min(820px, calc(100vh - 112px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 108px) clamp(28px, 5.1vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
  overflow: hidden;
  border-radius: var(--ad-radius);
  background:
    radial-gradient(circle at 82% 10%, rgba(240, 106, 60, 0.19), transparent 33%),
    radial-gradient(circle at 4% 86%, rgba(203, 237, 87, 0.08), transparent 30%),
    var(--ad-night);
  color: var(--ad-cream);
}

.ad-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245, 240, 223, 0.08);
  border-radius: inherit;
}

.ad-hero__texture,
.ad-final-cta__noise {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 240, 223, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 223, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.ad-hero__copy,
.ad-proof-stage {
  position: relative;
  z-index: 1;
}

.ad-pill {
  width: fit-content;
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9c9bd;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ad-lime);
  box-shadow: 0 0 0 5px rgba(203, 237, 87, 0.1);
}

.ad-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ad-cream);
  font-size: clamp(3.4rem, 5.9vw, 7.4rem);
  font-weight: 760;
  line-height: 0.91;
  letter-spacing: -0.074em;
  text-wrap: balance;
}

.ad-hero h1 em,
.ad-section h2 em,
.ad-final-cta h2 em {
  color: var(--ad-orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.ad-hero__lede {
  max-width: 640px;
  margin: 34px 0 0;
  color: #b9baaf;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  line-height: 1.65;
}

.ad-hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ad-button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ad-night-line);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 780;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.ad-button:hover,
.ad-button:focus-visible {
  transform: translateY(-2px);
}

.ad-button--light {
  border-color: var(--ad-cream);
  background: var(--ad-cream);
  color: var(--ad-ink) !important;
}

.ad-button--light:hover {
  border-color: var(--ad-lime);
  background: var(--ad-lime);
}

.ad-button--ghost {
  color: var(--ad-cream) !important;
}

.ad-button--ghost:hover {
  background: rgba(245, 240, 223, 0.09);
}

.ad-command {
  max-width: 560px;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 7px 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--ad-night-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.ad-command__prompt {
  color: var(--ad-orange);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.ad-command code {
  min-width: 0;
  overflow: hidden;
  color: #dbddd1;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-command button {
  margin-left: auto;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 240, 223, 0.08);
  color: #d0d2c6;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.ad-command button:hover {
  background: rgba(245, 240, 223, 0.14);
}

.ad-hero__note {
  margin: 15px 0 0;
  color: #777b72;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
}

/* Product proof */
.ad-proof-stage {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 30px);
  border: 1px solid rgba(245, 240, 223, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
}

.ad-proof-stage__topline {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #7f8378;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.ad-run-card {
  overflow: hidden;
  border: 1px solid rgba(20, 21, 17, 0.2);
  border-radius: 16px;
  background: var(--ad-cream);
  color: var(--ad-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.ad-run-card__header,
.ad-run-card__footer {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ded9c9;
  color: #66695f;
  font-size: 0.62rem;
}

.ad-run-card__header {
  border-bottom: 1px solid #cbc5b5;
}

.ad-window-dots {
  display: flex;
  gap: 5px;
}

.ad-window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ac4b30;
}

.ad-window-dots i:nth-child(2) { background: #c6a642; }
.ad-window-dots i:nth-child(3) { background: #85a842; }

.ad-runtime-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.ad-runtime-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #719432;
}

.ad-run-card__task {
  min-height: 100px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #d8d2c3;
}

.ad-ui-label {
  display: block;
  margin-bottom: 7px;
  color: #83867d;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.ad-run-card__task strong {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.045em;
}

.ad-state-switch {
  padding: 3px;
  display: flex;
  border-radius: 999px;
  background: #d8d3c5;
}

.ad-state-switch button {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #777a70;
  font-size: 0.6rem;
  font-weight: 750;
  cursor: pointer;
}

.ad-state-switch button.is-active {
  background: var(--ad-ink);
  color: var(--ad-cream);
}

.ad-run-card__body {
  min-height: 255px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, 0.7fr);
  gap: 22px;
}

.ad-table-head,
.ad-mutation-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 5px;
}

.ad-table-head {
  padding: 0 8px 8px;
  color: #8b8e85;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.ad-table-head span:nth-child(2) { grid-column: 2; }

.ad-mutation-row {
  min-height: 50px;
  padding: 0 8px;
  border-top: 1px solid #d7d2c4;
  font-size: 0.68rem;
}

.ad-mutation-row b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9d4c5;
  font-size: 0.65rem;
}

.ad-mutation-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-mutation-row span,
.ad-policy-lines b {
  width: fit-content;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.is-deny span,
.ad-policy-lines .is-deny,
.ad-change-list .is-deny {
  background: rgba(166, 61, 31, 0.13);
  color: #a43e23;
}

.is-review span,
.ad-policy-lines .is-review,
.ad-change-list .is-review {
  background: rgba(181, 136, 28, 0.14);
  color: #8f6912;
}

.is-allow span,
.ad-policy-lines .is-allow,
.ad-change-list .is-allow {
  background: rgba(97, 130, 34, 0.13);
  color: #53751e;
}

.ad-score-block {
  padding-left: 20px;
  border-left: 1px solid #d8d2c3;
}

.ad-score-line {
  display: flex;
  align-items: baseline;
}

.ad-score-line strong {
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.ad-score-line span {
  color: #898c82;
  font-size: 0.75rem;
}

.ad-score-track {
  height: 8px;
  margin: 17px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #d4cfc0;
}

.ad-score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ad-orange);
  transition: width 450ms cubic-bezier(.22, .8, .2, 1), background 240ms ease;
}

.ad-verdict {
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.59rem;
  letter-spacing: 0.07em;
}

.ad-run-card__footer {
  justify-content: space-between;
  border-top: 1px solid #cbc5b5;
}

.ad-run-card__footer span {
  color: var(--ad-orange-dark);
  font-weight: 800;
}

.ad-proof-stage__caption {
  margin: 13px 2px 0;
  color: #70746a;
  font-size: 0.61rem;
}

/* Shared section structure */
.ad-section {
  width: var(--ad-page);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 168px) clamp(2px, 4vw, 64px);
}

.ad-section-label {
  margin-bottom: clamp(50px, 7vw, 92px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #696c63;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-section-label span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ad-line);
  border-radius: 50%;
  color: var(--ad-orange-dark);
}

.ad-section-label--light {
  color: #96998f;
}

.ad-section-label--light span {
  border-color: var(--ad-night-line);
  color: var(--ad-orange);
}

.ad-section h2 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 7.5rem);
  font-weight: 740;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.ad-proof-strip {
  width: var(--ad-page);
  margin: 16px auto 0;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  overflow: auto hidden;
  border-bottom: 1px solid var(--ad-line);
  color: #65685f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ad-proof-strip span::before {
  content: "◆";
  margin-right: 10px;
  color: var(--ad-orange);
  font-size: 0.55rem;
}

/* Ecosystem Bar */
.ad-ecosystem-bar {
  width: var(--ad-page);
  margin: 0 auto;
  padding: 24px clamp(2px, 4vw, 64px) 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-ecosystem-label {
  color: #7d8076;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-ecosystem-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ad-eco-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--ad-line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  color: var(--ad-ink);
}

.ad-eco-tag b {
  font-weight: 700;
}

.ad-eco-tag code {
  color: #72756a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
}

/* Problem */
.ad-problem__heading,
.ad-recovery__heading,
.ad-fit__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(42px, 8vw, 120px);
}

.ad-problem__heading > p,
.ad-recovery__heading > p,
.ad-fit__heading > p,
.ad-inspector__intro > p {
  margin: 0 0 12px;
  color: var(--ad-muted);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.65;
}

.ad-problem__grid {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
}

.ad-story-card {
  min-height: 430px;
  padding: clamp(26px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
}

.ad-story-card--light {
  border: 1px solid var(--ad-line);
  background: #e8e3d5;
}

.ad-story-card--dark {
  background: var(--ad-night);
  color: var(--ad-cream);
}

.ad-story-card__meta {
  display: flex;
  justify-content: space-between;
  color: #777a70;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ad-story-card__quote {
  margin: auto 0 28px;
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.ad-terminal-fragment {
  padding: 20px;
  border: 1px solid rgba(21, 22, 18, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  color: #45483f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.9;
}

.ad-terminal-fragment .is-green { color: #64872a; }

.ad-story-card footer {
  margin-top: 32px;
  color: #73766d;
  font-size: 0.75rem;
}

.ad-change-list {
  margin: auto 0;
  padding: 0;
  list-style: none;
}

.ad-change-list li {
  min-height: 70px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--ad-night-line);
}

.ad-change-list b {
  padding: 6px 8px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.54rem;
  text-align: center;
}

.ad-change-list code {
  overflow: hidden;
  color: #e6e1d1;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.ad-change-list span {
  color: #73776e;
  font-size: 0.65rem;
}

/* Inspector */
.ad-inspector {
  padding-top: 40px;
}

.ad-inspector__intro {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.52fr);
  align-items: end;
  gap: 80px;
}

.ad-inspector__shell {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: #e7e2d4;
}

.ad-inspector__tabs {
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ad-line);
}

.ad-inspector__tabs button {
  min-height: 64px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid var(--ad-line);
  background: transparent;
  color: #676a61;
  text-align: left;
  cursor: pointer;
}

.ad-inspector__tabs button span {
  color: #96998f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
}

.ad-inspector__tabs button[aria-selected="true"] {
  color: var(--ad-ink);
  font-weight: 760;
}

.ad-inspector__tabs button[aria-selected="true"] span {
  color: var(--ad-orange-dark);
}

.ad-inspector__content {
  min-width: 0;
  background: var(--ad-night);
  color: var(--ad-cream);
}

.ad-inspector__titlebar {
  min-height: 62px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ad-night-line);
  color: #82867c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

.ad-inspector__content > section {
  padding: clamp(28px, 5vw, 60px);
}

.ad-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ad-evidence-grid > div {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ad-night-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(245, 240, 223, 0.04), transparent),
    #171915;
}

.ad-evidence-grid span {
  color: var(--ad-orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
}

.ad-evidence-grid strong {
  margin-top: auto;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.ad-evidence-grid small {
  margin-top: 8px;
  color: #797d73;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
}

.ad-policy-lines > div,
.ad-recovery-log p {
  min-height: 76px;
  margin: 0;
  display: grid;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--ad-night-line);
}

.ad-policy-lines > div {
  grid-template-columns: minmax(140px, 1fr) 72px minmax(170px, 1.5fr);
}

.ad-policy-lines span,
.ad-recovery-log span {
  color: #7d8177;
  font-size: 0.7rem;
}

.ad-score-breakdown > div {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 2fr) 54px;
  align-items: center;
  gap: 24px;
}

.ad-score-breakdown i {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #292c27;
}

.ad-score-breakdown i::after {
  content: "";
  display: block;
  width: var(--amount);
  height: 100%;
  border-radius: inherit;
  background: #777d70;
}

.ad-score-breakdown b {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}

.ad-score-breakdown .is-total {
  margin-top: 16px;
  border-top: 1px solid var(--ad-night-line);
  color: var(--ad-orange);
}

.ad-score-breakdown .is-total i::after { background: var(--ad-orange); }

.ad-recovery-log p {
  grid-template-columns: 70px minmax(150px, 1fr) minmax(180px, 1.5fr);
}

.ad-recovery-log b {
  color: var(--ad-orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.ad-recovery-log .is-kept { color: var(--ad-lime); }

/* Score story */
.ad-score-story {
  width: 100%;
  max-width: none;
  padding-right: max(5vw, calc((100vw - 1440px) / 2 + 64px));
  padding-left: max(5vw, calc((100vw - 1440px) / 2 + 64px));
  background: var(--ad-night);
  color: var(--ad-cream);
}

.ad-score-story__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(70px, 11vw, 180px);
}

.ad-score-story__layout > div:first-child > p {
  max-width: 680px;
  margin: 34px 0;
  color: #9b9e94;
  font-size: 1.08rem;
  line-height: 1.7;
}

.ad-score-story__layout a,
.ad-trust__content > a {
  color: var(--ad-orange);
  font-size: 0.78rem;
  font-weight: 780;
}

.ad-equation {
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  border: 1px solid var(--ad-night-line);
  border-radius: 20px;
  background: rgba(245, 240, 223, 0.035);
}

.ad-equation span {
  color: #9b9e94;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.ad-equation strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.ad-equation hr {
  grid-column: 1 / -1;
  width: 100%;
  margin: 3px 0;
  border: 0;
  border-top: 1px solid var(--ad-night-line);
}

.ad-equation .is-total {
  color: var(--ad-orange);
  font-size: 4.5rem;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.ad-equation small {
  grid-column: 1 / -1;
  color: #6e7268;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.09em;
}

/* Recovery */
.ad-recovery__flow {
  margin-top: clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
}

.ad-recovery__flow article {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ad-line);
  border-radius: 16px;
}

.ad-recovery__flow article span {
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.ad-recovery__flow article strong {
  margin-top: auto;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.ad-recovery__flow article p {
  margin: 12px 0 0;
  color: var(--ad-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.ad-recovery__flow > i {
  color: var(--ad-orange-dark);
  font-style: normal;
}

.ad-recovery__command {
  margin-top: 18px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-radius: 12px;
  background: var(--ad-night);
  color: var(--ad-cream);
}

.ad-recovery__command code {
  color: var(--ad-lime);
  font-size: 0.75rem;
}

.ad-recovery__command span {
  color: #8d9187;
  font-size: 0.7rem;
}

/* Stack fit */
.ad-fit {
  padding-top: 46px;
}

.ad-fit__table {
  margin-top: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--ad-line);
}

.ad-fit__table > div {
  min-height: 90px;
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--ad-line);
}

.ad-fit__head {
  min-height: 50px !important;
  color: #85887f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-fit__table b {
  font-size: 1.1rem;
}

.ad-fit__table span {
  color: var(--ad-muted);
  font-size: 0.82rem;
}

.ad-fit__table em {
  color: var(--ad-orange-dark);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 690;
}

/* Cortex */
.ad-cortex {
  width: 100%;
  max-width: none;
  padding-right: max(5vw, calc((100vw - 1440px) / 2 + 64px));
  padding-left: max(5vw, calc((100vw - 1440px) / 2 + 64px));
  background: #e9e4d4;
}

.ad-cortex__heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(50px, 9vw, 140px);
}

.ad-cortex__heading > p {
  max-width: 620px;
  margin: 0 0 9px;
  color: #55584f;
  font-size: 1.03rem;
  line-height: 1.72;
}

.ad-cortex__providers {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #c9c4b5;
  border-bottom: 1px solid #c9c4b5;
}

.ad-cortex__providers article {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #c9c4b5;
}

.ad-cortex__providers article:last-child { border-right: 0; }

.ad-cortex__providers span {
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.07em;
}

.ad-cortex__providers strong {
  margin-top: auto;
  color: var(--ad-ink);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.ad-cortex__providers p {
  margin: 12px 0 0;
  color: #55584f;
  font-size: 0.78rem;
  line-height: 1.6;
}

.ad-cortex__command {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.ad-cortex__command code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ad-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.ad-cortex__command a {
  flex: 0 0 auto;
  color: var(--ad-orange-dark);
  font-size: 0.76rem;
  font-weight: 780;
}

/* Trust */
.ad-trust {
  width: 100%;
  max-width: none;
  padding-right: max(5vw, calc((100vw - 1440px) / 2 + 64px));
  padding-left: max(5vw, calc((100vw - 1440px) / 2 + 64px));
  display: grid;
  grid-template-columns: auto 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(36px, 7vw, 110px);
  background: var(--ad-orange);
  color: var(--ad-night);
}

.ad-trust .ad-section-label,
.ad-trust .ad-section-label span {
  color: rgba(17, 18, 15, 0.62);
  border-color: rgba(17, 18, 15, 0.22);
}

.ad-trust__mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
}

.ad-trust h2 {
  font-size: clamp(3.2rem, 6vw, 7rem);
}

.ad-trust__content > p {
  max-width: 620px;
  margin: 0 0 38px;
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  font-weight: 630;
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.ad-trust__content ul {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.ad-trust__content li {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  border-top: 1px solid rgba(17, 18, 15, 0.2);
  font-size: 0.78rem;
}

.ad-trust__content li span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-trust__content > a {
  color: var(--ad-night);
  border-bottom: 1px solid currentColor;
}

/* CTA + footer */
.ad-final-cta {
  position: relative;
  width: var(--ad-page);
  min-height: 660px;
  margin: 24px auto;
  padding: clamp(48px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--ad-radius);
  background:
    radial-gradient(circle at 85% 15%, rgba(240, 106, 60, 0.22), transparent 32%),
    var(--ad-night);
  color: var(--ad-cream);
  text-align: center;
}

.ad-final-cta > *:not(.ad-final-cta__noise) {
  position: relative;
  z-index: 1;
}

.ad-final-cta > p {
  margin: 0 0 24px;
  color: #92968c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-final-cta h2 {
  margin: 0;
  font-size: clamp(3.5rem, 7.8vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.ad-final-cta > div:last-child {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ad-site-footer {
  width: var(--ad-page);
  margin: 0 auto;
  padding: 70px clamp(6px, 4vw, 54px) 34px;
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 0.7fr);
  gap: 50px;
  border-top: 1px solid var(--ad-line);
}

.ad-site-footer__brand p {
  max-width: 280px;
  margin: 22px 0 0;
  color: var(--ad-muted);
  font-size: 0.78rem;
}

.ad-site-footer > div:not(.ad-site-footer__brand) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-site-footer b {
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ad-site-footer > div:not(.ad-site-footer__brand) a {
  width: fit-content;
  color: var(--ad-muted);
  font-size: 0.75rem;
}

.ad-site-footer > div:not(.ad-site-footer__brand) a:hover {
  color: var(--ad-orange-dark);
}

.ad-site-footer small {
  grid-column: 1 / -1;
  padding-top: 42px;
  border-top: 1px solid var(--ad-line);
  color: #85887f;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
}

/* Interaction and focus */
.ad-home :focus-visible {
  outline: 2px solid var(--ad-orange);
  outline-offset: 4px;
}

.ad-home [hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .ad-hero__copy,
  .ad-proof-stage {
    animation: ad-rise 700ms cubic-bezier(.2, .75, .22, 1) both;
  }

  .ad-proof-stage { animation-delay: 100ms; }

  @keyframes ad-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1120px) {
  :root { --ad-page: min(100% - 32px, 1440px); }

  .ad-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ad-hero__copy { max-width: 850px; }
  .ad-proof-stage { max-width: 820px; width: 100%; }

  .ad-inspector__intro,
  .ad-problem__heading,
  .ad-recovery__heading,
  .ad-fit__heading,
  .ad-cortex__heading,
  .ad-score-story__layout {
    grid-template-columns: 1fr;
  }

  .ad-inspector__intro > p,
  .ad-problem__heading > p,
  .ad-recovery__heading > p,
  .ad-fit__heading > p {
    max-width: 620px;
  }

  .ad-trust {
    grid-template-columns: auto 1fr;
  }

  .ad-trust__content {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --ad-page: calc(100% - 24px);
    --ad-radius: 20px;
  }

  .ad-site-nav { min-height: 54px; }

  .ad-menu-button { display: grid; }

  .ad-site-nav__links {
    position: absolute;
    top: 76px;
    right: 12px;
    left: 12px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--ad-line);
    border-radius: 16px;
    background: var(--ad-paper);
    box-shadow: 0 20px 60px rgba(20, 21, 17, 0.15);
  }

  .ad-site-nav__links.is-open { display: flex; }
  .ad-site-nav__links > a { padding: 13px 10px !important; }
  .ad-nav-cta { margin-top: 8px; text-align: center; }

  .ad-hero {
    padding: 54px 22px 24px;
    gap: 54px;
  }

  .ad-hero h1 { font-size: clamp(3.25rem, 14vw, 6rem); }
  .ad-command { max-width: 100%; }

  .ad-run-card__body {
    grid-template-columns: 1fr;
  }

  .ad-score-block {
    padding: 20px 0 0;
    border-top: 1px solid #d8d2c3;
    border-left: 0;
  }

  .ad-problem__grid { grid-template-columns: 1fr; }
  .ad-story-card { min-height: 360px; }

  .ad-inspector__shell {
    grid-template-columns: 1fr;
  }

  .ad-inspector__tabs {
    padding: 10px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ad-line);
  }

  .ad-inspector__tabs button {
    min-width: 130px;
    min-height: 50px;
    border-right: 1px solid var(--ad-line);
    border-bottom: 0;
  }

  .ad-evidence-grid { grid-template-columns: 1fr; }
  .ad-evidence-grid > div { min-height: 160px; }

  .ad-recovery__flow {
    grid-template-columns: 1fr;
  }

  .ad-recovery__flow > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .ad-recovery__command {
    flex-direction: column;
    overflow: auto;
  }

  .ad-fit__table > div {
    grid-template-columns: 0.5fr 1fr;
    padding: 18px 0;
    gap: 14px;
  }

  .ad-fit__table > div > *:last-child {
    grid-column: 2;
  }

  .ad-fit__head { display: none !important; }

  .ad-cortex__providers {
    grid-template-columns: 1fr;
  }

  .ad-cortex__providers article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid #c9c4b5;
  }

  .ad-cortex__providers article:last-child { border-bottom: 0; }

  .ad-cortex__command {
    align-items: flex-start;
    flex-direction: column;
  }

  .ad-site-footer {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .ad-site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .ad-home { font-size: 15px; }
  .ad-site-header { padding-top: 8px; }
  .ad-site-nav__links { top: 66px; }

  .ad-hero {
    width: var(--ad-page);
    min-width: 0;
    padding-top: 45px;
  }

  .ad-hero__copy,
  .ad-proof-stage,
  .ad-hero h1,
  .ad-hero__lede,
  .ad-hero__actions,
  .ad-command {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ad-command code {
    width: 0;
    flex: 1 1 auto;
  }

  .ad-hero h1 { font-size: clamp(2.65rem, 13.5vw, 4.4rem); }
  .ad-hero__actions { align-items: stretch; flex-direction: column; }
  .ad-button { width: 100%; }
  .ad-hero__note { line-height: 1.6; }

  .ad-proof-stage { padding: 10px; }
  .ad-proof-stage__topline span:last-child { display: none; }
  .ad-run-card__task { align-items: flex-start; flex-direction: column; }
  .ad-table-head,
  .ad-mutation-row { grid-template-columns: 20px minmax(0, 1fr) 60px; }
  .ad-run-card__footer code { display: none; }
  .ad-proof-stage__caption { padding: 0 5px; }

  .ad-section { padding-top: 90px; padding-bottom: 90px; }
  .ad-section-label { margin-bottom: 44px; }
  .ad-section h2 { font-size: clamp(2.75rem, 14vw, 4.8rem); }

  .ad-story-card { padding: 24px; }
  .ad-change-list li { grid-template-columns: 62px minmax(0, 1fr); }
  .ad-change-list li span { display: none; }

  .ad-inspector__titlebar span:last-child { display: none; }
  .ad-inspector__content > section { padding: 20px; }
  .ad-policy-lines > div,
  .ad-recovery-log p,
  .ad-score-breakdown > div {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px 0;
  }

  .ad-policy-lines span,
  .ad-recovery-log span,
  .ad-score-breakdown i {
    grid-column: 1 / -1;
  }

  .ad-equation .is-total { font-size: 3.5rem; }

  .ad-trust {
    grid-template-columns: 1fr;
  }

  .ad-trust__content { grid-column: 1; }
  .ad-trust__mark { display: none; }

  .ad-final-cta { min-height: 580px; padding: 42px 20px; }
  .ad-final-cta h2 { font-size: clamp(3.1rem, 15vw, 5.4rem); }

  .ad-site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
}

/* Accessibility contrast: utility text remains intentionally quiet, not faint. */
.ad-run-card__header,
.ad-run-card__footer,
.ad-runtime-status {
  color: #484b43;
}

.ad-run-card code {
  background: transparent !important;
  color: var(--ad-ink) !important;
}

.ad-ui-label,
.ad-table-head,
.ad-score-line span {
  color: #50534b;
}

.ad-state-switch button {
  color: #44473f;
}

.ad-mutation-row.is-deny span {
  color: #78240f;
}

.ad-mutation-row.is-review span {
  color: #604300;
}

.ad-mutation-row.is-allow span {
  color: #34580a;
}

.ad-policy-lines .is-deny {
  color: #ff9878;
}

.ad-policy-lines .is-review {
  color: #f1c765;
}

.ad-policy-lines .is-allow {
  color: #b4d975;
}

.ad-run-card__footer span {
  color: #7c2914;
}

.ad-story-card--light .ad-story-card__meta,
.ad-story-card--light footer {
  color: #4b4e46;
}

.ad-story-card--dark .ad-story-card__meta,
.ad-story-card--dark footer,
.ad-change-list li > span {
  color: #afb2a9;
}

.ad-change-list .is-deny {
  color: #ff9878;
}

.ad-change-list .is-review {
  color: #f1c765;
}

.ad-change-list .is-allow {
  color: #b4d975;
}

.ad-inspector__tabs button {
  color: #484b43;
}

.ad-inspector__tabs button span {
  color: #55584f;
}

.ad-equation small {
  color: #b8bbb2;
}

.ad-trust .ad-section-label--light,
.ad-trust .ad-section-label--light span {
  color: #32150c;
}

/* Hero pitch card */
.ad-hero__pitch {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.ad-hero__pitch-card {
  border: 1px solid rgba(245, 240, 223, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
}

.ad-hero__pitch-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--ad-night-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  color: #7f8378;
}

.ad-hero__pitch-body {
  padding: 28px 24px;
}

.ad-hero__pitch-big {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 740;
  letter-spacing: -0.04em;
  color: var(--ad-cream);
}

.ad-hero__pitch-sub {
  margin: 16px 0 0;
  color: #8a8d83;
  font-size: 0.92rem;
  line-height: 1.7;
}

.ad-hero__pitch-body--answer {
  background: rgba(240, 106, 60, 0.06);
  border-top: 1px solid rgba(240, 106, 60, 0.15);
}

.ad-hero__pitch-answer {
  margin: 0;
  color: var(--ad-orange);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.6;
}

/* Pipeline Demo Section */
.ad-pipeline-section h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 6.8rem);
  font-weight: 740;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.ad-pipeline-flow {
  margin-top: clamp(56px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-pipeline-flow__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
}

.ad-pipeline-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ad-orange);
  font-style: normal;
  font-size: 1.4rem;
  font-weight: 800;
}

.ad-pipeline-flow__bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  color: var(--ad-orange);
  font-size: 1.5rem;
  font-weight: 800;
}

.ad-pipeline-card {
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  background: var(--ad-paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ad-pipeline-card:hover {
  transform: translateY(-2px);
  border-color: var(--ad-orange);
  box-shadow: 0 14px 34px rgba(21, 22, 18, 0.07);
}

.ad-pipeline-card--final {
  border-color: rgba(240, 106, 60, 0.4);
  background: rgba(240, 106, 60, 0.03);
}

.ad-pipeline-card__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-pipeline-card__num.is-verified {
  color: var(--ad-orange);
}

.ad-pipeline-card__header h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -0.035em;
  color: var(--ad-ink);
  line-height: 1.25;
}

.ad-pipeline-card__header p {
  margin: 0;
  color: var(--ad-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ad-pipeline-card__terminal {
  margin-top: 20px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: var(--ad-night);
  color: var(--ad-cream);
  border: 1px solid var(--ad-night-line);
}

.ad-pipeline-card__terminal code {
  font-size: 0.68rem;
  color: #c5c8bc !important;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.ad-pipeline-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ad-muted);
}

.ad-pipeline-card__dot.is-warn {
  background: var(--ad-orange);
}

.ad-pipeline-card__dot.is-info {
  background: #5b92e5;
}

.ad-pipeline-card__dot.is-success {
  background: var(--ad-lime);
}

.ad-pipeline-card__terminal--score {
  justify-content: space-between;
}

.ad-pipeline-card__score-num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
}

.ad-pipeline-card__score-num strong {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ad-orange);
}

.ad-pipeline-card__score-num small {
  color: #8c8f85;
  font-size: 0.65rem;
  font-weight: 700;
}

.ad-pipeline-card__score-badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(240, 106, 60, 0.15);
  color: var(--ad-orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-pipeline-card__terminal--success code {
  color: var(--ad-lime) !important;
}

.ad-pipeline-card__terminal--verified {
  justify-content: space-between;
  background: rgba(203, 237, 87, 0.08);
  border-color: rgba(203, 237, 87, 0.25);
}

.ad-pipeline-card__terminal--verified b {
  color: var(--ad-lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ad-pipeline-card__terminal--verified code {
  color: #8a8d83 !important;
  font-size: 0.6rem;
}

/* Interactive CLI Playground */
.ad-cli-demo {
  margin-top: 36px;
  border-radius: 18px;
  background: var(--ad-night);
  color: var(--ad-cream);
  border: 1px solid var(--ad-night-line);
  overflow: hidden;
}

.ad-cli-demo__bar {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ad-night-line);
  background: rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.ad-cli-demo__tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 999px;
}

.ad-cli-demo__tabs button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8c8f85;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.ad-cli-demo__tabs button:hover {
  color: var(--ad-cream);
}

.ad-cli-demo__tabs button.is-active {
  background: var(--ad-orange);
  color: #fff;
}

.ad-cli-demo__version {
  color: #6d7067;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
}

.ad-cli-demo__window {
  padding: 24px 28px;
  min-height: 230px;
}

.ad-cli-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.65;
}

.ad-cli-pane.is-active {
  display: flex;
}

.ad-cli-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.ad-cli-prompt {
  color: var(--ad-orange);
  user-select: none;
}

.ad-cli-line code {
  color: #fff !important;
}

.ad-cli-out {
  color: #b5b8ac;
}

.ad-cli-out.is-dim {
  color: #6e7167;
}

.ad-cli-out.is-indent {
  padding-left: 20px;
}

.ad-cli-out .is-file {
  color: var(--ad-orange);
}

.ad-cli-out.is-highlight {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(240, 106, 60, 0.12);
  border: 1px solid rgba(240, 106, 60, 0.25);
  color: var(--ad-orange);
  font-weight: 700;
}

.ad-cli-out.is-highlight.is-green {
  background: rgba(203, 237, 87, 0.12);
  border-color: rgba(203, 237, 87, 0.25);
  color: var(--ad-lime);
}

.ad-cli-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

.ad-cli-pill.is-warn {
  background: rgba(240, 106, 60, 0.2);
  color: var(--ad-orange);
}

.ad-cli-pill.is-ok {
  background: rgba(203, 237, 87, 0.2);
  color: var(--ad-lime);
}

.ad-cli-json {
  margin: 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ad-night-line);
  color: #9fe266;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-x: auto;
}

.ad-cli-json code {
  color: #b5e48c !important;
}

/* Detect section */
.ad-detect__demo {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ad-detect__demo .ad-story-card {
  min-height: 340px;
}

.ad-terminal-fragment--dark {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--ad-night-line);
  color: #c5c8bc;
}

.ad-terminal-fragment .is-red { color: #e05a3a; font-weight: 700; }
.ad-terminal-fragment .is-green { color: #85a842; font-weight: 700; }

.ad-detect__command {
  margin-top: 20px;
  padding: 22px 26px;
  border-radius: 12px;
  background: var(--ad-night);
  color: var(--ad-lime);
}

.ad-detect__command code {
  font-size: 0.75rem;
}

/* Generate section */
.ad-generate__grid {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ad-generate__grid article {
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ad-line);
  border-radius: 18px;
  background: #f8f6ed;
  transition: transform 180ms ease, border-color 180ms ease;
}

.ad-generate__grid article:hover {
  transform: translateY(-2px);
  border-color: var(--ad-orange);
}

.ad-generate__grid article span {
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.ad-generate__grid article strong {
  margin-top: auto;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  color: var(--ad-ink);
}

.ad-generate__grid article p {
  margin: 12px 0 0;
  color: var(--ad-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Visual Diff Card */
.ad-diff-card {
  margin-top: 28px;
  border-radius: 18px;
  background: var(--ad-night);
  color: var(--ad-cream);
  border: 1px solid var(--ad-night-line);
  overflow: hidden;
}

.ad-diff-card__header {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ad-night-line);
  background: rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.ad-diff-card__header code {
  color: #9da096 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.ad-diff-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(203, 237, 87, 0.15);
  color: var(--ad-lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ad-diff-card__body {
  padding: 22px 26px;
  overflow-x: auto;
}

.ad-diff-code {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.7;
}

.ad-diff-code code {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-diff-del {
  color: #e56d4f;
  background: rgba(229, 109, 79, 0.1);
  padding: 1px 8px;
  border-radius: 4px;
}

.ad-diff-add {
  color: #cbed57;
  background: rgba(203, 237, 87, 0.1);
  padding: 1px 8px;
  border-radius: 4px;
}

/* Verify flow */
.ad-verify__flow {
  margin-top: clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.ad-verify__flow article {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ad-line);
  border-radius: 16px;
  background: #f8f6ed;
  transition: transform 180ms ease, border-color 180ms ease;
}

.ad-verify__flow article:hover {
  transform: translateY(-2px);
  border-color: var(--ad-orange);
}

.ad-verify__flow article span {
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.ad-verify__flow article strong {
  margin-top: auto;
  font-size: 1.15rem;
  letter-spacing: -0.035em;
  color: var(--ad-ink);
}

.ad-verify__flow article p {
  margin: 10px 0 0;
  color: var(--ad-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.ad-verify__flow > i {
  color: var(--ad-orange-dark);
  font-style: normal;
  font-weight: 800;
}

/* Deliver certificate */
.ad-deliver__cert {
  margin-top: clamp(56px, 8vw, 100px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--ad-line);
  background: var(--ad-night);
  color: var(--ad-cream);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.ad-deliver__cert-header {
  min-height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1a1c18;
  border-bottom: 1px solid var(--ad-night-line);
  color: #82867c;
  font-size: 0.65rem;
  font-family: "JetBrains Mono", monospace;
}

.ad-deliver__cert-header .ad-runtime-status {
  margin-left: auto;
  color: var(--ad-lime);
}

.ad-deliver__cert-header .ad-runtime-status i {
  background: var(--ad-lime);
}

.ad-deliver__cert-body {
  padding: 12px 0;
}

.ad-deliver__cert-body > div {
  min-height: 60px;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--ad-night-line);
}

.ad-deliver__cert-body > div:last-child {
  border-bottom: 0;
}

.ad-deliver__cert-body span {
  color: #8a8d83;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-deliver__cert-body strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ad-deliver__cert-body code {
  color: var(--ad-lime) !important;
  font-size: 0.72rem;
}

/* Comparison table — 4 columns */
.ad-compare__table > div {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
}

.ad-compare__table .ad-fit__head {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
}

/* Under the hood — second row */
.ad-underhood__row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #c9c4b5;
  border-bottom: 1px solid #c9c4b5;
}

.ad-underhood__row article {
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #c9c4b5;
}

.ad-underhood__row article:last-child { border-right: 0; }

.ad-underhood__row span {
  color: var(--ad-orange-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.07em;
}

.ad-underhood__row strong {
  margin-top: auto;
  color: var(--ad-ink);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.ad-underhood__row p {
  margin: 10px 0 0;
  color: #55584f;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Status / Roadmap */
.ad-status__grid {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ad-status__column {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: #f8f6ed;
}

.ad-status__column--future {
  background: var(--ad-night);
  color: var(--ad-cream);
  border-color: var(--ad-night-line);
}

.ad-status__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #696c63;
}

.ad-status__header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ad-lime);
  box-shadow: 0 0 0 4px rgba(203, 237, 87, 0.15);
}

.ad-status__header--future {
  color: #96998f;
}

.ad-status__header--future span {
  background: var(--ad-orange);
  box-shadow: 0 0 0 4px rgba(240, 106, 60, 0.15);
}

.ad-status__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-status__list li {
  padding: 15px 0;
  border-top: 1px solid var(--ad-line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ad-muted);
}

.ad-status__column--future .ad-status__list li {
  border-color: var(--ad-night-line);
  color: #9b9e94;
}

.ad-status__list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ad-ink);
  font-size: 0.9rem;
}

.ad-status__column--future .ad-status__list strong {
  color: var(--ad-cream);
}

/* Responsive adjustments */
@media (max-width: 1120px) {
  .ad-compare__table > div,
  .ad-compare__table .ad-fit__head {
    grid-template-columns: 1fr 0.7fr 0.7fr 1fr;
  }
}

@media (max-width: 980px) {
  .ad-pipeline-flow__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ad-pipeline-flow__arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}

@media (max-width: 820px) {
  .ad-detect__demo { grid-template-columns: 1fr; }

  .ad-generate__grid { grid-template-columns: 1fr; }

  .ad-verify__flow {
    grid-template-columns: 1fr;
  }

  .ad-verify__flow > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .ad-compare__table > div,
  .ad-compare__table .ad-fit__head {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .ad-compare__table .ad-fit__head { display: none !important; }

  .ad-compare__table > div > b {
    grid-column: 1 / -1;
  }

  .ad-underhood__row {
    grid-template-columns: 1fr;
  }

  .ad-underhood__row article {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid #c9c4b5;
  }

  .ad-underhood__row article:last-child { border-bottom: 0; }

  .ad-status__grid { grid-template-columns: 1fr; }

  .ad-deliver__cert-body > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 20px;
  }
}

@media (max-width: 580px) {
  .ad-pipeline-card { min-height: 200px; padding: 20px; }

  .ad-generate__grid article { min-height: 200px; padding: 20px; }

  .ad-verify__flow article { min-height: 160px; padding: 20px; }

  .ad-status__column { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-home *,
  .ad-home *::before,
  .ad-home *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
