:root {
  --bg: #08090b;
  --panel: #12101a;
  --panel-2: #171320;
  --line: #2c2537;
  --line-strong: #43365a;
  --text: #f0edf5;
  --muted: #a9a3b6;
  --purple: #b79cf0;
  --purple-strong: #8b6cc9;
  --cyan: #a9e2f5;
  --green: #8fd6b0;
  --amber: #e8c58a;
  --radius: 18px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 18% 0%, rgba(139, 108, 201, 0.18), transparent 65%),
    radial-gradient(ellipse 45% 35% at 88% 12%, rgba(120, 190, 220, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(90, 60, 130, 0.12), transparent 70%);
  z-index: -1;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code, pre, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--purple);
  color: #140d20;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(44, 37, 55, 0.7);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.4px;
}
.brand:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-header .status-pill {
  flex: none;
  padding: 4px 10px;
  font-size: 11px;
}

.hero { padding: 88px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(46px, 8vw, 88px);
  font-weight: 460;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  font-size: clamp(17px, 2.2vw, 25px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  background: linear-gradient(100deg, #b49bdb 12%, #e8d4ff 38%, #fff 50%, #c5efff 62%, #b49bdb 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  max-width: 560px;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.primary-button {
  background: linear-gradient(120deg, #cbb4f4, #9d7bd8);
  color: #140d20;
}
.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.primary-button:hover,
.secondary-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: grid; gap: 3px; }
.hero-facts strong { font-size: 17px; font-weight: 600; }
.hero-facts span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tag-green { border-color: rgba(143, 214, 176, 0.45); color: var(--green); }
.tag-amber { border-color: rgba(232, 197, 138, 0.45); color: var(--amber); }

.receipt {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(165deg, #171222, #0c0a12 70%);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.receipt-steps { display: grid; gap: 2px; margin: 8px 0; }

.receipt-steps li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(44, 37, 55, 0.65);
}
.receipt-steps b { display: block; font-size: 15px; font-weight: 600; }
.receipt-steps small { display: block; color: var(--muted); font-size: 12px; }
.receipt-steps em { color: var(--cyan); font-size: 12px; font-style: normal; white-space: nowrap; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.dot-purple { background: var(--purple); color: var(--purple); }
.dot-cyan { background: var(--cyan); color: var(--cyan); }
.dot-green { background: var(--green); color: var(--green); }

.receipt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(143, 214, 176, 0.08);
  border: 1px solid rgba(143, 214, 176, 0.25);
  font-size: 13px;
}
.receipt-foot strong { color: var(--green); letter-spacing: 0.08em; }

.receipt-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.flow-rail {
  border-block: 1px solid var(--line);
  background: rgba(18, 16, 26, 0.55);
  padding: 18px 0;
}
.flow-rail ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-rail li { display: inline-flex; align-items: center; gap: 18px; }
.flow-rail li:not(:last-child)::after { content: "→"; color: var(--purple-strong); }

.section { padding: 96px 0; border-bottom: 1px solid rgba(44, 37, 55, 0.55); }
.section:last-of-type { border-bottom: 0; }

.section-head { max-width: 820px; margin-bottom: 44px; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 16px;
}
.section-head p:not(.kicker) { color: var(--muted); font-size: 16px; max-width: 720px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #14111d, #0e0c14);
  padding: 26px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover { border-color: var(--line-strong); }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step-index {
  display: inline-block;
  margin-bottom: 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 0.1em;
}
.step-grid h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.step-grid p { font-size: 14px; color: var(--muted); }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.agent-card { display: grid; gap: 12px; align-content: start; }
.agent-card h3 { font-size: 20px; font-weight: 600; }
.agent-card p { font-size: 14px; color: var(--muted); }
.agent-card code {
  display: inline-block;
  justify-self: start;
  margin-top: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--cyan);
  background: #0b0910;
}
.agent-badge {
  display: inline-flex;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
}
.badge-inspector { color: var(--purple); }
.badge-cleaner { color: var(--cyan); }
.badge-reporter { color: var(--green); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 48px;
  align-items: start;
}
.section-copy { color: var(--muted); font-size: 15px; margin-top: 14px; }
.section-copy + .section-copy { margin-top: 16px; }
.section-copy code,
.check-list code { color: var(--cyan); font-size: 13px; }

.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--muted); }
.check-list span { color: var(--green); }

.code-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b0910;
  overflow: hidden;
}
.code-card figcaption {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.code-card pre { padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.75; color: #d9d0ec; }
.code-card .fine-print { padding: 0 20px 18px; margin: 0; }

.reputation-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(170deg, #161120, #0d0b12);
  padding: 24px;
}
.rep-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.rep-row:last-of-type { border-bottom: 0; }
.rep-row span { color: var(--muted); }
.rep-row strong { text-align: right; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.rep-row .ok { color: var(--green); }
.rep-row .muted { color: var(--muted); }

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: #0e0c14;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #12101a; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); white-space: nowrap; }
td:nth-child(3) { color: var(--muted); }

.pay-notes { display: grid; gap: 10px; margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 860px; }
.pay-notes b { color: var(--text); font-weight: 600; }

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.arch-grid h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.arch-grid p { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.demo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(139, 108, 201, 0.18), transparent 60%),
    linear-gradient(180deg, #15111f, #0d0b12);
}
.demo-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.demo-card h3 { font-size: 24px; font-weight: 500; margin: 8px 0 8px; }
.demo-card p { font-size: 14px; color: var(--muted); max-width: 560px; }
.demo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }

.status-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(232, 197, 138, 0.45);
  color: var(--amber);
}
.status-pill[data-state="live"] {
  border-color: rgba(143, 214, 176, 0.5);
  color: var(--green);
}

.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.link-card { display: grid; gap: 8px; color: var(--text); }
.link-card:hover { text-decoration: none; transform: translateY(-2px); }
.link-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }
.link-card strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.link-card .muted { font-size: 13px; color: var(--muted); }

.fine-print { margin-top: 20px; font-size: 12px; color: var(--muted); }
.code-card .fine-print { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.site-footer p { color: var(--muted); }
.site-footer p:first-child { color: var(--text); }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .header-inner { gap: 16px; }
  .site-header .status-pill { margin-left: auto; }
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .step-grid, .agent-grid, .arch-grid, .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: clamp(40px, 13vw, 56px); }
  .hero h1 span { margin-top: 14px; }
  .lead { font-size: 15.5px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid, .agent-grid, .arch-grid, .link-grid { grid-template-columns: 1fr; }
  .flow-rail ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow-rail li:not(:last-child)::after { content: none; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 30px; }
  .receipt { padding: 18px; }
  .receipt-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .demo-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .demo-side { align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  th, td { padding: 13px 14px; }
}

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