:root {
  --ink: #111827;
  --muted-ink: #536171;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #dce3e2;
  --signal: #006d77;
  --signal-dark: #004f57;
  --accent: #d94f2b;
  --soft-green: #dfeeea;
  --soft-orange: #f8e7df;
  --focus: #006d77;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.65; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 0 32px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; background: var(--signal);
  color: white; font: 800 18px/1 ui-monospace, monospace; border-radius: 4px;
}
nav { display: flex; gap: 28px; }
nav a { color: var(--muted-ink); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--signal); }

main { overflow: hidden; }
.hero {
  max-width: 1240px; min-height: 660px; margin: 0 auto; padding: 88px 32px 72px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); gap: 72px; align-items: center;
}
.mode-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--soft-green); color: var(--signal-dark); border: 1px solid #bdd9d3;
  border-radius: 4px; font-size: 13px; font-weight: 700;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.eyebrow { margin: 26px 0 12px; color: var(--signal); font: 750 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.08; font-weight: 780; }
.hero-lead { max-width: 700px; margin: 28px 0 0; color: var(--muted-ink); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.primary-button {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--signal);
  color: white; font: inherit; font-weight: 750; cursor: pointer; transition: background 180ms ease, transform 180ms ease;
}
.primary-button:hover { background: var(--signal-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--signal-dark); font-weight: 700; text-underline-offset: 5px; }
.safety-note { margin: 20px 0 0; color: #687483; font-size: 13px; }

.run-console { background: #101b22; color: #edf7f4; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.console-head { display: flex; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid #2c3b43; }
.console-head > div { display: grid; gap: 5px; }
.console-label { color: #8db5ae; font: 700 11px/1.2 ui-monospace, monospace; }
.console-state { align-self: center; padding: 5px 9px; border: 1px solid #49616a; border-radius: 3px; color: #bad0ca; font-size: 12px; }
.run-steps { list-style: none; padding: 8px 24px; margin: 0; }
.run-steps li { min-height: 72px; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; border-bottom: 1px solid #293840; color: #789097; transition: color 180ms ease, background 180ms ease; }
.run-steps li:last-child { border-bottom: 0; }
.run-steps li > span { font: 700 12px/1 ui-monospace, monospace; }
.run-steps li div { display: grid; gap: 3px; }
.run-steps small { font-size: 12px; }
.run-steps li.active { color: #ffffff; }
.run-steps li.complete { color: #9fcbc2; }
.run-steps li.complete > span::after { content: " ✓"; color: #63c6b3; }
.console-result { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; padding: 18px 24px; background: #18262d; color: #9eb2b7; font-size: 12px; }
.console-result strong { color: white; font-size: 13px; }

.metrics { max-width: 1240px; margin: 0 auto; padding: 0 32px 88px; display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics article { min-height: 122px; padding: 24px; border: 1px solid var(--line); border-right: 0; display: grid; align-content: center; gap: 5px; }
.metrics article:last-child { border-right: 1px solid var(--line); }
.metrics strong { font: 760 28px/1.2 ui-monospace, monospace; color: var(--signal-dark); }
.metrics span { color: var(--muted-ink); font-size: 13px; }

.section { padding: 96px max(32px, calc((100vw - 1176px) / 2)); background: var(--surface); }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading .eyebrow, .sample-copy .eyebrow, .boundaries .eyebrow { margin-top: 0; }
h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.15; }
.section-heading > p:last-child, .sample-copy > p:not(.eyebrow) { color: var(--muted-ink); font-size: 17px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.workflow-grid article { min-height: 240px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid span { color: var(--accent); font: 800 13px/1 ui-monospace, monospace; }
.workflow-grid h3 { margin: 38px 0 10px; font-size: 22px; }
.workflow-grid p { margin: 0; color: var(--muted-ink); }

.sample-section { padding: 96px max(32px, calc((100vw - 1176px) / 2)); display: grid; grid-template-columns: .76fr 1.24fr; gap: 64px; align-items: center; background: #e9efed; }
.sample-facts { margin: 36px 0 0; border-top: 1px solid #c9d5d2; }
.sample-facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid #c9d5d2; }
.sample-facts dt { color: var(--muted-ink); }
.sample-facts dd { margin: 0; font-weight: 750; text-align: right; }
.sample-image { margin: 0; background: var(--surface); border: 1px solid #c9d5d2; box-shadow: var(--shadow); }
.sample-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sample-image figcaption { padding: 12px 16px; color: var(--muted-ink); font-size: 12px; border-top: 1px solid var(--line); }

.standards { background: var(--ink); color: white; }
.section-heading.compact { max-width: 850px; }
.standards .eyebrow { color: #7fc2b6; }
.standards-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #374151; }
.standards-list article { padding: 32px 32px 0 0; }
.standards-list strong { color: #7fc2b6; font: 760 38px/1 ui-monospace, monospace; }
.standards-list p { color: #c1c9d3; }

.boundaries { padding: 96px max(32px, calc((100vw - 1176px) / 2)); display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; background: var(--surface); }
.boundary-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.boundary-columns article { padding: 28px; border: 1px solid var(--line); border-radius: 6px; }
.boundary-columns article:first-child { border-top: 4px solid var(--signal); }
.boundary-columns article:last-child { border-top: 4px solid var(--accent); }
.boundary-columns h3 { margin: 0 0 18px; }
.boundary-columns ul { padding-left: 20px; margin: 0; color: var(--muted-ink); }
.boundary-columns li + li { margin-top: 12px; }

.public-notice { max-width: 1176px; margin: 0 auto 96px; padding: 28px 32px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: var(--soft-orange); border: 1px solid #edc7b7; }
.notice-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font: 800 16px/1 ui-monospace, monospace; }
.public-notice p { margin: 4px 0 0; color: #704838; }

footer { min-height: 112px; max-width: 1240px; margin: 0 auto; padding: 28px 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted-ink); font-size: 13px; }
footer div { display: grid; color: var(--ink); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 1px solid var(--line); }
  .sample-section, .boundaries { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; min-height: 64px; }
  nav { display: none; }
  .hero { padding: 48px 20px 56px; min-height: auto; }
  h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .run-console { border-radius: 4px; }
  .console-result { grid-template-columns: 1fr auto; }
  .metrics { padding: 0 20px 64px; grid-template-columns: 1fr; }
  .metrics article { border-right: 1px solid var(--line); border-bottom: 0; }
  .metrics article:last-child { border-bottom: 1px solid var(--line); }
  .section, .sample-section, .boundaries { padding: 72px 20px; }
  .workflow-grid, .standards-list, .boundary-columns { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 210px; }
  .public-notice { margin: 0 20px 72px; padding: 22px; grid-template-columns: 1fr; }
  footer { margin: 0 20px; padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

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