:root {
  --paper: #f4f1e8;
  --paper-deep: #e8e3d7;
  --paper-light: #fbfaf6;
  --ink: #1c2329;
  --muted: #687179;
  --line: rgba(28, 35, 41, 0.16);
  --line-strong: rgba(28, 35, 41, 0.28);
  --blue: #155eef;
  --blue-soft: #dfe8ff;
  --amber: #b56b16;
  --amber-soft: #f5e8d0;
  --green: #1f7a52;
  --green-soft: #dcefe4;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a, button { font: inherit; }

::selection { background: var(--blue); color: #fff; }

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(28, 35, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 35, 41, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

.site-header,
.section-frame,
.site-footer {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line-strong);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.04em; }
.brand small { margin-top: 3px; color: var(--muted); font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.13em; text-transform: uppercase; }
.brand-mark { color: var(--blue); font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -0.15em; }

.header-right { display: flex; align-items: center; gap: 28px; }
.status-strip, .site-nav { display: flex; align-items: center; gap: 12px; }
.status-strip { color: var(--muted); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.status-strip span + span::before { content: "·"; margin-right: 12px; color: var(--blue); }
.site-nav { font-size: 13px; }
.site-nav a { color: var(--muted); transition: color 180ms ease; }
.site-nav a:hover { color: var(--blue); }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 96px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.eyebrow, .section-label, .card-topline, .card-footline, .receipt-bar, .receipt-foot, .footer-code {
  font: 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 26px; color: var(--blue); }
.hero h1, .section-heading h2, .document-copy h2, .boundary-layout h2 { margin: 0; font-size: clamp(46px, 6vw, 82px); font-weight: 500; letter-spacing: -0.075em; line-height: 0.98; }
.hero h1 em, .document-copy h2 em, .boundary-layout h2 em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 550px; margin: 32px 0 0; color: var(--muted); font-size: 17px; line-height: 1.85; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid var(--ink); font-size: 13px; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-quiet { border-color: var(--line-strong); color: var(--muted); }
.button-quiet:hover { border-color: var(--blue); color: var(--blue); }
.read-only-note { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }

.hero-card { padding: 18px; border: 1px solid var(--line-strong); background: rgba(251, 250, 246, 0.64); box-shadow: 12px 12px 0 var(--paper-deep); }
.card-topline, .card-footline { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
.route-card { display: grid; gap: 14px; margin: 34px 0; }
.route-node { padding: 20px; border: 1px solid var(--line); background: var(--paper-light); }
.route-node-blue { background: var(--blue-soft); border-color: rgba(21, 94, 239, 0.32); }
.route-node-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.route-kicker { display: block; margin-bottom: 14px; color: var(--blue); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; }
.route-node-dark .route-kicker { color: #8eb0ff; }
.route-node strong, .route-node small { display: block; }
.route-node strong { font-size: 18px; letter-spacing: -0.04em; }
.route-node small { margin-top: 10px; color: var(--muted); font-size: 12px; }
.route-node-dark small { color: rgba(244, 241, 232, 0.62); }
.route-line { position: relative; height: 16px; border-left: 1px solid var(--blue); margin-left: 23px; }
.route-line span { position: absolute; top: 1px; left: 12px; color: var(--blue); font: 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-footline code { color: var(--ink); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.section-block { padding: 120px 0; border-top: 1px solid var(--line-strong); }
.section-label { display: flex; align-items: center; gap: 13px; color: var(--blue); }
.section-label span:first-child { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--blue); border-radius: 50%; font-size: 10px; }
.section-heading { margin-top: 38px; }
.split-heading { display: grid; grid-template-columns: 1fr 0.72fr; gap: 80px; align-items: end; }
.section-heading h2, .document-copy h2, .boundary-layout h2 { font-size: clamp(38px, 5vw, 64px); }
.split-heading p, .document-copy p, .boundary-intro { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

.capability-grid { display: grid; grid-template-columns: 1.05fr 0.95fr 1.1fr 0.95fr 1.05fr; gap: 10px; margin-top: 64px; }
.capability-card { min-height: 235px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); background: rgba(251, 250, 246, 0.66); }
.capability-card:nth-child(2), .capability-card:nth-child(4) { transform: translateY(20px); }
.capability-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-number { color: var(--blue); }
.card-mark { padding: 5px 6px; border: 1px solid var(--line); }
.capability-card h3 { margin: auto 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -0.06em; }
.capability-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.workflow-section { background: rgba(232, 227, 215, 0.48); }
.workflow-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin-top: 66px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.workflow-step { position: relative; min-height: 150px; padding: 20px 14px 18px; border-right: 1px solid var(--line); }
.workflow-step:last-child { border-right: 0; }
.workflow-step:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 62px; z-index: 1; color: var(--blue); background: var(--paper-deep); font: 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-index { display: block; margin-bottom: 38px; color: var(--blue); font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-step strong, .workflow-step span:last-child { display: block; }
.workflow-step strong { font-size: 16px; font-weight: 500; }
.workflow-step span:last-child { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.input-table { margin-top: 66px; border-top: 1px solid var(--line-strong); }
.table-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; align-items: center; min-height: 70px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table-header { min-height: 42px; color: var(--muted); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.table-row strong { font-weight: 500; }
.table-row span { color: var(--muted); }
.table-row code { justify-self: start; padding: 6px 8px; background: var(--paper-deep); color: var(--blue); font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }

.document-section { display: grid; grid-template-columns: 0.85fr 1fr; gap: 100px; align-items: center; background: var(--ink); color: var(--paper); }
.document-section .section-label { color: #8eb0ff; }
.document-section .section-label span:first-child { border-color: #8eb0ff; }
.document-copy h2 { margin-top: 32px; }
.document-copy p { max-width: 480px; margin-top: 30px; color: rgba(244, 241, 232, 0.68); }
.document-flow { padding: 32px; border: 1px solid rgba(244, 241, 232, 0.28); background: rgba(244, 241, 232, 0.06); }
.document-step { padding: 22px 0; border-bottom: 1px solid rgba(244, 241, 232, 0.2); }
.document-step:last-child { border-bottom: 0; }
.document-step span, .document-step strong, .document-step small { display: block; }
.document-step span { color: #8eb0ff; font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.document-step strong { margin-top: 18px; font-size: 22px; font-weight: 500; letter-spacing: -0.04em; }
.document-step small { margin-top: 8px; color: rgba(244, 241, 232, 0.58); font-size: 12px; }
.document-arrow { color: #8eb0ff; font: 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.real-run-section { background: var(--paper-light); }
.receipt-card { margin-top: 66px; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); box-shadow: 12px 12px 0 var(--paper-deep); }
.receipt-bar, .receipt-foot { display: flex; justify-content: space-between; gap: 20px; padding: 15px 20px; color: rgba(244, 241, 232, 0.56); }
.receipt-bar { border-bottom: 1px solid rgba(244, 241, 232, 0.2); }
.receipt-bar > span:first-child { color: var(--green); }
.receipt-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.receipt-dot-green { background: #63d294; }
.receipt-content { padding: 38px 40px 44px; }
.receipt-success { margin: 0 0 26px; color: #63d294; font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.receipt-content dl { margin: 0; }
.receipt-content dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 22px; padding: 13px 0; border-bottom: 1px solid rgba(244, 241, 232, 0.14); }
.receipt-content dt { color: rgba(244, 241, 232, 0.48); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.receipt-content dd { margin: 0; font-size: 15px; line-height: 1.5; }
.receipt-content dd code { color: #8eb0ff; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.receipt-process { display: grid; grid-template-columns: 100px 1fr; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 232, 0.2); }
.receipt-process > span { color: rgba(244, 241, 232, 0.46); font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.receipt-process ol { margin: 0; padding-left: 20px; color: rgba(244, 241, 232, 0.72); font: 12px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.receipt-foot { border-top: 1px solid rgba(244, 241, 232, 0.2); font-size: 9px; }

.boundaries-section { background: var(--amber-soft); }
.boundary-layout { display: grid; grid-template-columns: 0.8fr 1fr; gap: 100px; margin-top: 48px; }
.boundary-intro { max-width: 420px; margin-top: 30px; }
.boundary-list { border-top: 1px solid var(--line-strong); }
.boundary-item { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.boundary-item > span { color: var(--amber); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.boundary-item p { margin: 0; font-size: 15px; line-height: 1.65; }

.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 66px; }
.status-card { min-height: 220px; padding: 22px; border: 1px solid var(--line); background: rgba(251, 250, 246, 0.62); }
.status-card.status-verified { border-top: 4px solid var(--green); }
.status-card.status-conditional { border-top: 4px solid var(--amber); }
.status-card.status-pending { border-top: 4px solid var(--blue); }
.status-title { font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.status-verified .status-title { color: var(--green); }
.status-conditional .status-title { color: var(--amber); }
.status-pending .status-title { color: var(--blue); }
.status-symbol { margin-right: 8px; font-size: 15px; }
.status-card h3 { margin: 54px 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.04em; }
.status-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.site-footer { display: grid; grid-template-columns: 0.8fr 1.4fr auto; align-items: center; gap: 30px; min-height: 150px; border-top: 1px solid var(--line-strong); }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.site-footer strong { font-size: 14px; font-weight: 500; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-code { color: var(--blue); }

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

@media (max-width: 960px) {
  .header-right { gap: 16px; }
  .status-strip { display: none; }
  .hero { grid-template-columns: 1fr 0.85fr; gap: 50px; }
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
  .capability-card:nth-child(4), .capability-card:nth-child(2) { transform: none; }
  .workflow-track { grid-template-columns: repeat(4, 1fr); }
  .workflow-step:nth-child(4) { border-right: 0; }
  .workflow-step:nth-child(4)::after { display: none; }
  .document-section, .boundary-layout { gap: 50px; }
}

@media (max-width: 760px) {
  .site-header, .section-frame, .site-footer { width: min(calc(100% - 40px), var(--max-width)); }
  .site-header { min-height: 76px; align-items: flex-start; padding: 20px 0; }
  .header-right { display: block; }
  .site-nav { gap: 14px; overflow-x: auto; white-space: nowrap; padding-bottom: 3px; }
  .hero { display: block; min-height: auto; padding-top: 78px; padding-bottom: 90px; }
  .hero h1 { font-size: clamp(46px, 14vw, 72px); }
  .hero-lede { font-size: 15px; }
  .hero-card { margin-top: 60px; box-shadow: 8px 8px 0 var(--paper-deep); }
  .section-block { padding: 84px 0; }
  .split-heading, .document-section, .boundary-layout { display: block; }
  .split-heading { margin-top: 28px; }
  .split-heading p { margin-top: 26px; }
  .section-heading h2, .document-copy h2, .boundary-layout h2 { font-size: clamp(40px, 12vw, 60px); }
  .capability-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .capability-card { min-height: 190px; }
  .capability-card h3 { margin-top: 60px; }
  .workflow-track { display: block; margin-top: 44px; }
  .workflow-step { display: grid; grid-template-columns: 44px 1fr; min-height: auto; padding: 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-step:last-child { border-bottom: 0; }
  .workflow-index { margin: 0; }
  .workflow-step:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -8px; background: var(--paper-deep); }
  .table-row { grid-template-columns: 1fr; gap: 7px; align-items: start; min-height: 0; padding: 16px; }
  .table-header { display: none; }
  .table-row code { justify-self: start; }
  .document-section { padding: 84px 0; }
  .document-copy p { margin-top: 24px; }
  .document-flow { margin-top: 48px; padding: 22px; }
  .receipt-card { box-shadow: 8px 8px 0 var(--paper-deep); }
  .receipt-bar, .receipt-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .receipt-content { padding: 28px 20px 30px; }
  .receipt-content dl > div { grid-template-columns: 1fr; gap: 5px; }
  .receipt-process { grid-template-columns: 1fr; gap: 12px; }
  .boundary-layout { margin-top: 32px; }
  .boundary-list { margin-top: 44px; }
  .status-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .status-card { min-height: 180px; }
  .status-card h3 { margin-top: 42px; }
  .site-footer { display: block; padding: 44px 0; }
  .site-footer p { max-width: 520px; margin: 24px 0; }
}
