:root {
  --ink: #102333;
  --muted: #5c6c78;
  --paper: #f8faf8;
  --white: #ffffff;
  --line: #d8e0df;
  --navy: #0d1b2a;
  --cyan: #2e9ca6;
  --cyan-soft: #dff4f1;
  --yellow: #f4c95d;
  --yellow-soft: #fff3ce;
  --coral: #df735d;
  --coral-soft: #fce5df;
  --mint: #b9decf;
  --max: 1180px;
  --header-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: -50px; left: 20px; padding: 8px 14px; color: var(--white); background: var(--navy); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid rgba(216, 224, 223, .9); background: rgba(248, 250, 248, .96); backdrop-filter: blur(14px); }
.nav-row { display: flex; min-height: var(--header-height); align-items: center; gap: 30px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0; white-space: nowrap; }
.brand img, .footer-brand img { width: 29px; height: 29px; }
.page-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.page-nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.page-nav a:hover, .page-nav a:focus-visible { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.public-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.public-state i { width: 7px; height: 7px; border-radius: 50%; background: #51a06e; }
.copy-button { border: 1px solid var(--ink); padding: 7px 12px; color: var(--ink); background: transparent; cursor: pointer; font-size: 13px; }
.copy-button:hover, .copy-button:focus-visible { color: var(--white); background: var(--ink); }
.copy-status { min-width: 54px; color: var(--cyan); font-size: 12px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: clamp(40px, 8vw, 120px); align-items: center; min-height: 520px; padding-block: 86px 90px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.eyebrow span { margin-left: 12px; color: var(--muted); letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 21px; font-size: clamp(54px, 8vw, 104px); line-height: .98; letter-spacing: -.055em; }
h1 span { color: var(--coral); }
.hero-lede { max-width: 610px; margin-bottom: 34px; color: var(--muted); font-size: 20px; line-height: 1.7; }
.hero-lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 17px; border: 1px solid var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--cyan); border-color: var(--cyan); }
.button-secondary { background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { color: var(--white); background: var(--coral); border-color: var(--coral); }
.hero-note { align-self: center; padding: 26px 27px 23px; border: 1px solid var(--line); border-top: 4px solid var(--yellow); background: var(--white); box-shadow: 9px 9px 0 var(--yellow-soft); }
.note-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.status-dot { color: #51a06e; font-size: 15px; }
.note-title { margin: 21px 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.hero-note p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.note-list { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.note-list div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0 0; font-size: 13px; }
.note-list dt { color: var(--muted); }
.note-list dd { margin: 0; font-weight: 700; }

.signal-strip { border-block: 1px solid var(--line); background: var(--navy); color: var(--white); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal { display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-items: center; min-height: 90px; padding: 15px 20px; border-right: 1px solid rgba(255,255,255,.18); }
.signal:first-child { padding-left: 0; }
.signal:last-child { border-right: 0; }
.signal-index { grid-row: span 2; color: var(--yellow); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.signal strong { font-size: 14px; }
.signal span:last-child { color: #b8c5cb; font-size: 12px; }

.section { padding-block: 112px; }
.section-heading { max-width: 630px; margin-bottom: 42px; }
.section-heading h2, .fallback-section h2 { margin-bottom: 10px; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability { min-height: 330px; padding: 28px 28px 25px; border: 1px solid var(--line); background: var(--white); }
.capability-primary { border-top: 4px solid var(--cyan); }
.capability-secondary { border-top: 4px solid var(--yellow); }
.capability-tertiary { border-top: 4px solid var(--coral); }
.capability-number { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.capability h3 { margin: 40px 0 9px; font-size: 25px; }
.capability p { min-height: 76px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.capability ul { display: grid; gap: 4px; margin: 0; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink); font-size: 13px; }
.capability li::before { content: "→"; display: inline-block; width: 20px; color: var(--cyan); }

.section-tinted { background: var(--yellow-soft); }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: none; align-items: end; }
.split-heading > p { max-width: 420px; justify-self: end; margin-bottom: 5px; color: var(--muted); }
.workflow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow-list li { position: relative; min-height: 205px; padding: 0 24px 0 0; border-top: 2px solid var(--ink); }
.workflow-list li:not(:last-child) { margin-right: 20px; }
.workflow-list li:not(:last-child)::after { content: ""; position: absolute; top: -2px; right: 0; width: 20px; border-top: 2px solid var(--ink); transform: translateX(100%); }
.step-mark { display: block; margin: 18px 0 27px; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 800; }
.workflow-list h3 { margin-bottom: 8px; font-size: 19px; }
.workflow-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.boundary-table { border-top: 2px solid var(--ink); }
.boundary-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: center; min-height: 63px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.boundary-row > span:nth-child(2), .boundary-row > span:nth-child(3) { color: var(--muted); }
.boundary-header { min-height: 45px; color: var(--muted); font-size: 12px; font-weight: 800; }
.tag { display: inline-block; min-width: 43px; margin-right: 10px; padding: 2px 6px; text-align: center; font-size: 11px; font-weight: 800; }
.tag-allow { color: #246e61; background: var(--cyan-soft); }
.tag-deny { color: #a34835; background: var(--coral-soft); }
.tag-pause { color: #826317; background: var(--yellow-soft); }

.fallback-section { padding-block: 95px; background: var(--cyan-soft); }
.fallback-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 70px; align-items: start; }
.fallback-section h2 { max-width: 380px; }
.fallback-copy { max-width: 560px; color: #34555b; font-size: 18px; }
.fallback-rule { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(16,35,51,.22); }
.fallback-rule strong { color: var(--ink); }

.site-footer { padding: 48px 0 20px; color: #c5d1d6; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.footer-brand { color: var(--white); }
.footer-grid p { margin: 13px 0 0; color: #9eafb7; font-size: 13px; }
.footer-statement { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; padding-top: 6px; color: #d8e6e8; font-size: 13px; }
.footer-statement span::before { content: "•"; margin-right: 8px; color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.17); color: #82959e; font-size: 12px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 900px) {
  .shell { width: min(var(--max), calc(100% - 40px)); }
  .nav-row { gap: 18px; }
  .page-nav { gap: 13px; }
  .public-state { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 70px 76px; }
  .hero-note { max-width: 480px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal, .signal:first-child { padding: 13px 16px; }
  .signal:nth-child(2) { border-right: 0; }
  .signal:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .capability-grid, .workflow-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .workflow-list li { min-height: 190px; padding-right: 0; }
  .workflow-list li:not(:last-child) { margin-right: 0; }
  .workflow-list li:not(:last-child)::after { display: none; }
  .workflow-list li:nth-child(-n+2) { border-bottom: 0; }
  .split-heading { grid-template-columns: 1fr; gap: 10px; }
  .split-heading > p { justify-self: start; }
}
@media (max-width: 620px) {
  :root { --header-height: 62px; }
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .nav-row { min-height: var(--header-height); gap: 10px; }
  .brand { font-size: 14px; }
  .brand img { width: 25px; height: 25px; }
  .page-nav { order: 3; width: 100%; justify-content: space-between; gap: 6px; padding: 7px 0 9px; border-top: 1px solid var(--line); }
  .page-nav a { font-size: 12px; }
  .header-actions { margin-left: auto; }
  .copy-button { padding: 6px 9px; font-size: 12px; }
  .copy-status { position: absolute; top: 7px; right: 14px; }
  .site-header .nav-row { flex-wrap: wrap; }
  .hero { gap: 38px; padding-block: 56px 64px; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .eyebrow span { display: block; margin: 4px 0 0; }
  h1 { font-size: clamp(49px, 16vw, 75px); }
  .hero-lede { font-size: 17px; }
  .hero-note { padding: 22px 20px 19px; box-shadow: 6px 6px 0 var(--yellow-soft); }
  .signal-grid, .capability-grid, .workflow-list, .footer-grid { grid-template-columns: 1fr; }
  .signal, .signal:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .signal:last-child { border-bottom: 0; }
  .section { padding-block: 76px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .fallback-section h2 { font-size: 37px; }
  .capability { min-height: 0; padding: 23px 21px 22px; }
  .capability h3 { margin-top: 27px; }
  .capability p { min-height: 0; }
  .workflow-list { gap: 0; }
  .workflow-list li { min-height: 0; padding: 20px 0 22px; border-top: 1px solid var(--ink); }
  .workflow-list li:first-child { border-top: 2px solid var(--ink); }
  .step-mark { display: inline-block; margin: 0 12px 7px 0; }
  .workflow-list h3 { display: inline-block; margin: 0; }
  .workflow-list p { margin-top: 3px; }
  .boundary-table { overflow: hidden; }
  .boundary-row { grid-template-columns: 1fr; gap: 2px; min-height: 0; padding: 15px 0; }
  .boundary-header { display: none; }
  .boundary-row > span:nth-child(2), .boundary-row > span:nth-child(3) { padding-left: 53px; font-size: 13px; }
  .fallback-section { padding-block: 70px; }
  .fallback-grid { grid-template-columns: 1fr; gap: 15px; }
  .fallback-copy { font-size: 16px; }
  .footer-grid { gap: 22px; }
  .footer-statement { justify-content: flex-start; gap: 5px 14px; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 33px; }
}
