/* AGENT TRUST introduction. All theme values are local to this page. */
:root {
  color-scheme: light;
  --bg: #f1f6ff;
  --surface: #ffffff;
  --elevated: #f5f8ff;
  --ink: #1b3151;
  --muted: #526986;
  --quiet: #5b6f8b;
  --brand: #3767ed;
  --brand-strong: #2f5dda;
  --accent: #7957d5;
  --accent-ink: #7050c5;
  --accent-soft: #f5f0ff;
  --accent-line: #c7b8ea;
  --cyan: #079daa;
  --cyan-ink: #087884;
  --cyan-line: #acd5dc;
  --line: #d5e1f2;
  --line-strong: #9eb6de;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
}

/* Base and navigation */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
p, h1, h2, h3, figure { margin: 0; }
svg { display: block; }
::selection { background: var(--brand-strong); color: #fff; }
.wrap { width: min(1440px, calc(100% - 112px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--bg);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
}
.wordmark svg { width: 30px; height: 30px; stroke: var(--brand); stroke-width: 1.2; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 13px; color: var(--muted); }
.site-header nav a:hover, .text-link:hover { color:var(--brand); }
.site-header .nav-demo { color: var(--ink); padding-left: 28px; border-left: 1px solid var(--line); }
.nav-demo span { margin-left: 12px; color: var(--accent); }

/* Hero: high contrast copy beside the original four-party protocol. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 52px;
  align-items: center;
  padding-block: 68px 64px;
  min-height: 720px;
}
.hero-copy { position: relative; min-width: 0; }
.technical-label {
  font: 10px/1.6 var(--mono);
  letter-spacing: .1em;
  color: var(--quiet);
  margin-bottom: 27px;
}
h1 {
  font-size: clamp(38px, 3.36vw, 64px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.headline-line { display: block; }
.headline-emphasis { color:var(--brand-strong); }
.hero-subtitle { font-size: 20px; line-height: 1.75; font-weight: 500; margin-top: 28px; }
.hero-description { font-size: 16px; line-height: 1.95; color: var(--muted); margin-top: 16px; max-width: 560px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s, border-color .18s;
}
.primary { background:var(--brand); color:#fff; border-color:var(--brand); }
.primary:hover { background:var(--accent); border-color:var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.access-note { margin-top: 19px; max-width: 530px; font-size: 11px; line-height: 1.8; color: var(--quiet); }
.access-note[data-warning=true] { color: #935f00; }

/* Keep the protocol materials above the flat shared page background. */
.trust-figure { position: relative; min-width: 0; }
.figure-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
}
.figure-heading > span:last-child { font: 10px var(--mono); color: var(--quiet); }
.trust-map { width: 100%; height: auto; overflow: visible; }
.map-frame { stroke: var(--line-strong); stroke-opacity: .12; fill: none; }
.protocol-paths { fill: none; stroke: var(--brand-strong); stroke-width: 1.5; }
.protocol-paths .challenge-path { stroke: var(--quiet); stroke-dasharray: 4 5; }
.protocol-paths .device-request { stroke: var(--accent-ink); }
.protocol-paths .device-contribution { stroke: var(--accent); stroke-opacity: .65; }
.protocol-paths .verification-path { stroke: var(--cyan-ink); }
.map-label .device-request { fill: var(--accent-ink); }
.map-label .device-contribution { fill: var(--accent); }
.map-label .verification-path { fill: var(--cyan-ink); }
.map-node-device .node-detail { fill: var(--accent-ink); }
.map-node-verifier .node-detail { fill: var(--cyan-ink); }
.map-label { font-size: 12px; fill: var(--brand-strong); }
.map-label .quiet-label { fill: var(--quiet); }
.node-title { font-size: 22px; font-weight: 600; fill: var(--ink); }
.node-subtitle { font-size: 14px; fill:var(--muted); }
.node-detail { font: 11px var(--mono); fill: var(--brand-strong); }
.core-title { font-size: 29px; font-weight: 600; fill:var(--ink); }
.core-signature { font-size: 13px; fill: var(--brand-strong); }
.record-label { font-size: 13px; fill: var(--ink); }
.record-meta { font: 10px var(--mono); fill: var(--quiet); }
.verification-label { font-size: 12px; fill: var(--quiet); }
.flow-highlight { stroke: var(--accent); animation: flow 9s linear infinite; }
.trust-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--quiet);
  line-height: 1.7;
}
.figure-key { color: var(--muted); }
.technology-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 27px;
  border-block: 1px solid var(--line);
  color: var(--quiet);
  font: 12px/1.6 var(--mono);
}

/* Security progression: the last stage extends the earlier guarantees. */
.section { padding-block: 112px; }
.section-index { font: 12px/1.6 var(--mono); color: var(--brand-strong); margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(28px, 2.4vw, 40px); line-height: 1.5; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.section-heading > p:last-child:not(.section-index) { margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.approach { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.evolution { position: relative; border-top: 1px solid var(--line); }
.evolution::before { content: ""; position: absolute; top: 42px; bottom: 44px; left: 15px; width: 1px; background: var(--line); }
.evolution-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 6px 22px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.row-number { align-self: start; padding-block: 4px; background: var(--bg); font: 12px/1.7 var(--mono); color: var(--quiet); text-align: center; }
.evolution-row h3 { font-size: 19px; font-weight: 500; margin-bottom: 11px; }
.evolution-row p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.evolution-scope { grid-column: 2; color: var(--quiet); font-size: 12px; margin-top: 8px; }
.evolution-row.selected { background: var(--surface); padding-right: 20px; border-bottom-color: var(--accent-line); }
.selected .row-number { color:#fff; background:var(--accent); border-radius: 4px; }
.selected h3 { color: var(--accent-ink); }
.selected .condition { margin-top: 12px; color: var(--quiet); font-size: 13px; }
.selected .evolution-scope { color:var(--accent-ink); }

/* Three distinct diagrams retain their separate technical meanings. */
.technology { border-top: 1px solid var(--line); padding-bottom: 70px; }
.technology-heading { margin-bottom: 52px; }
.technology-heading .keep-phrase { display: inline-block; }
.tech-row { display: grid; grid-template-columns: 1fr 1fr; gap: 108px; padding-block: 64px; border-top: 1px solid var(--line); align-items: center; }
.tech-id { display: flex; align-items: baseline; gap: 24px; font: 13px/1.7 var(--mono); color: var(--accent); margin-bottom: 20px; }
.tech-id span { color: var(--quiet); font-size: 12px; }
.tech-copy h3 { font-size: 32px; line-height: 1.5; font-weight: 500; letter-spacing: -.025em; }
.tech-copy > p:not(.tech-id) { font-size: 15px; line-height: 1.95; color: var(--muted); margin-top: 22px; max-width: 560px; }
.tech-copy > p.tech-note { font-size: 12px; color: var(--quiet); line-height: 1.9; margin-top: 15px; }
.binding-visual, .disclosure-visual, .request-visual { min-width: 0; }
.document-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; padding: 15px 10px 25px; }
.credential-sheet { padding: 25px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-height: 213px; }
.credential-sheet.bound { background: var(--accent-soft); border-color: var(--accent-line); transform: translateY(15px); }
.credential-sheet.bound code { color: var(--accent-ink); }
.credential-sheet > span { font: 10px/1.7 var(--mono); color: var(--quiet); }
.credential-sheet strong { display: block; font-size: 18px; font-weight: 500; margin: 20px 0; }
.credential-sheet i { display: block; height: 3px; background: var(--line-strong); margin-top: 11px; width: 90%; }
.credential-sheet i + i { width: 60%; }
.credential-sheet code { display: block; color:var(--brand-strong); font: 12px var(--mono); margin-top: 25px; }
.binding-equation { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: 19px; font-size: 14px; color: var(--ink); }
.binding-equation b { color: var(--accent); font-weight: 400; }
.binding-visual > p, .disclosure-visual > p, .request-visual > p { text-align: center; color: var(--quiet); font-size: 12px; line-height: 1.8; margin-top: 20px; }
.disclosure-header { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: 14px; }
.disclosure-header code { font: 12px var(--mono); color: var(--quiet); }
.disclosure-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.disclosure-field > span:first-child { color: var(--muted); }
.disclosure-field strong { font-weight: 400; color:var(--cyan-ink); }
.redacted { color: var(--quiet); letter-spacing: 5px; font: 17px var(--mono); }
.blind-path { display: flex; justify-content: space-between; align-items: center; padding: 27px 20px 10px; color: var(--muted); font-size: 13px; }
.blind-path code { font: 25px var(--mono); color:var(--accent-ink); }
.request-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; color: var(--ink); }
.request-inputs > span { padding: 19px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; }
.request-inputs code { display: block; font: 12px var(--mono); color: var(--quiet); margin-top: 10px; }
.context-line { height: 33px; width: 50%; margin: auto; border-inline: 1px solid var(--quiet); border-bottom: 1px solid var(--quiet); position: relative; }
.context-line::after { content: ""; position: absolute; top: 100%; left: 50%; height: 20px; border-left: 1px solid var(--cyan); }
.request-envelope { margin-top: 20px; padding: 25px 18px; background: var(--surface); border: 1px solid var(--cyan-line); border-radius: 6px; text-align: center; }
.request-envelope > span { font-size: 12px; color:var(--cyan-ink); }
.request-envelope strong { display: block; font-size: 20px; font-weight: 500; margin: 15px 0 22px; color: var(--ink); }
.request-envelope > div { display: flex; justify-content: center; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--muted); }

/* The closing section shares the page background. */
.demo-section {
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding-block: 88px;
}
.demo-inner { text-align: center; max-width: 780px; }
.demo-inner h2 { font-size: 42px; line-height: 1.5; letter-spacing: -.04em; font-weight: 500; }
.demo-inner > p:not(.section-index) { max-width: 660px; margin: 25px auto 32px; font-size: 15px; color: var(--muted); line-height: 1.95; }
.demo-boundaries { display: flex; justify-content: center; gap: 22px; margin-top: 28px; font-size: 12px; color: var(--quiet); }
.demo-boundaries > span:nth-child(even) { color:var(--quiet); }
.site-footer { display: flex; justify-content: space-between; gap: 25px; padding-block: 38px; align-items: center; 
  background: var(--bg);
}
.site-footer .wordmark { font-size: 13px; }
.site-footer p { font-size: 11px; color: var(--quiet); line-height: 1.9; }
.site-footer > div p { margin-top: 10px; }
.site-footer > p { text-align: right; }
.noscript-note { margin: 20px auto; max-width: 800px; padding: 20px; color: #935f00; font-size: 13px; }
@keyframes flow { to { stroke-dashoffset: -556; } }

/* Responsive rules are grouped by breakpoint; there are no late overrides. */
@media (min-width: 1700px) {
  .hero { gap: 64px; padding-block: 76px 70px; min-height: 770px; }
}
@media (max-width: 1190px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 30px; padding-block: 56px; min-height: 625px; }
  h1 { font-size: clamp(33px, 3.5vw, 42px); }
  .hero-subtitle { font-size: 17px; }
  .hero-description { font-size: 14px; }
  .technical-label { font-size: 9px; }
  .hero-actions { gap: 20px; }
  .trust-figure figcaption { font-size: 9px; }
  .approach { gap: 45px; }
  .tech-row { gap: 60px; }
  .section { padding-block: 88px; }
  .tech-copy h3 { font-size: 28px; }
  .credential-sheet { padding: 22px 16px; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { height: 82px; }
  .site-header nav { gap: 22px; }
  .hero { grid-template-columns: 1fr; padding-block: 54px; gap: 48px; }
  .hero-copy { max-width: 660px; }
  h1 { font-size: clamp(36px, 6.5vw, 54px); }
  .hero-subtitle { font-size: 19px; }
  .hero-description { max-width: 560px; font-size: 15px; }
  .trust-figure { max-width: 660px; width: 100%; margin: auto; }
  .trust-figure figcaption { font-size: 10px; }
  .technology-strip { gap: 18px; justify-content: flex-start; font-size: 11px; }
  .technology-strip span { flex: 1 1 25%; }
  .approach { grid-template-columns: 1fr; gap: 36px; }
  .section-heading h2 { font-size: 32px; }
  .tech-row { gap: 32px; }
  .tech-copy h3 { font-size: 25px; }
  .tech-id { display: block; }
  .tech-id span { display: block; margin-top: 8px; font-size: 11px; }
  .document-pair { gap: 10px; padding-inline: 0; }
  .credential-sheet { padding: 18px 12px; }
  .credential-sheet strong { font-size: 15px; }
  .credential-sheet > span { font-size: 8px; }
  .request-envelope strong { font-size: 17px; }
  .request-envelope > div { gap: 12px; font-size: 11px; }
  .blind-path { padding-inline: 0; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 76px; }
  .wordmark { font-size: 12px; gap: 7px; letter-spacing: .055em; }
  .wordmark svg { width: 23px; height: 23px; }
  .site-header nav { gap: 11px; font-size: 10px; }
  .site-header .nav-demo { padding-left: 0; border-left: 0; }
  .nav-demo span { margin-left: 3px; }
  .hero { padding-block: 42px 36px; gap: 38px; }
  .technical-label { font-size: 8px; letter-spacing: .02em; margin-bottom: 23px; }
  h1 { font-size: clamp(29px, 8.6vw, 45px); letter-spacing: -.045em; line-height: 1.4; }
  .hero-subtitle { font-size: 15px; margin-top: 22px; }
  .hero-description { font-size: 13px; line-height: 1.95; margin-top: 13px; }
  .hero-actions { gap: 20px; margin-top: 26px; }
  .button { font-size: 12px; gap: 22px; min-height: 46px; padding-inline: 17px; }
  .text-link { font-size: 12px; }
  .access-note { font-size: 10px; margin-top: 16px; }
  .figure-heading { font-size: 12px; }
  .figure-heading > span:last-child { font-size: 9px; }
  .trust-figure figcaption { display: block; font-size: 10px; }
  .trust-figure figcaption > span { display: block; }
  .node-title { font-size: 24px; }
  .node-subtitle { font-size: 16px; }
  .node-detail { font-size: 13px; }
  .core-signature { font-size: 15px; }
  .map-label { font-size: 14px; }
  .record-label { font-size: 15px; }
  .record-meta { font-size: 12px; }
  .verification-label { font-size: 14px; }
  .technology-strip { padding-block: 24px; gap: 16px; font-size: 10px; }
  .technology-strip span { flex-basis: 40%; }
  .section { padding-block: 64px; }
  .section-index { font-size: 11px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 28px; line-height: 1.55; }
  .section-heading > p:last-child:not(.section-index) { font-size: 14px; margin-top: 18px; }
  .evolution-row { gap: 6px 14px; padding-block: 23px; }
  .evolution-row h3 { font-size: 17px; }
  .evolution-row p { font-size: 13px; }
  .evolution-row.selected { padding-right: 12px; }
  .selected .condition { font-size: 12px; }
  .evolution-scope { font-size: 11px; }
  .technology-heading { margin-bottom: 32px; }
  .technology-heading h2 { font-size: 26px; }
  .tech-row { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .tech-copy h3 { font-size: 27px; }
  .tech-id { display: flex; gap: 15px; }
  .tech-id span { margin: 0; font-size: 10px; }
  .tech-copy > p:not(.tech-id) { font-size: 14px; margin-top: 18px; }
  .tech-copy > p.tech-note { font-size: 12px; margin-top: 14px; }
  .document-pair { padding-inline: 4px; }
  .credential-sheet { padding: 23px 14px; }
  .credential-sheet > span { font-size: 8px; }
  .request-inputs { font-size: 13px; }
  .binding-visual > p, .disclosure-visual > p, .request-visual > p { font-size: 11px; }
  .demo-section { padding-block: 62px; }
  .demo-inner h2 { font-size: 30px; }
  .demo-inner > p:not(.section-index) { font-size: 14px; margin-block: 23px 28px; }
  .demo-boundaries { gap: 10px; font-size: 10px; flex-wrap: wrap; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-block: 28px; gap: 18px; }
  .site-footer > p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
