:root {
  --ink: #12171b;
  --muted: #5c676d;
  --paper: #f5f6f4;
  --white: #ffffff;
  --line: #ced4d2;
  --cyan: #00a6a6;
  --green: #1a7f5a;
  --amber: #b87513;
  --red: #a53b3b;
  --black: #090d10;
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 4vw;
  color: white;
  background: #090d10;
  border-bottom: 1px solid #293138;
}
.brand { font-weight: 900; text-decoration: none; font-size: 18px; }
.brand span { color: #97a6ae; font-weight: 600; }
nav { display: flex; justify-content: center; gap: 24px; }
nav a, .official { text-decoration: none; font-size: 13px; font-weight: 700; }
nav a:hover, nav a:focus-visible { color: #62ded6; }
.official { border: 1px solid #5f747e; padding: 9px 13px; }

.hero {
  position: relative;
  min-height: 620px;
  height: calc(100vh - 64px);
  max-height: 820px;
  overflow: hidden;
  color: white;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: rgba(3, 8, 11, 0.48); }
.hero-copy { position: relative; z-index: 1; max-width: 780px; padding: clamp(100px, 15vh, 150px) 6vw 60px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(54px, 7vw, 104px); line-height: 0.96; letter-spacing: 0; }
.lead { max-width: 680px; margin: 28px 0 0; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.25; font-weight: 700; }
.hero-note { max-width: 700px; margin: 20px 0 0; color: #d5e0e4; font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.primary-action, .secondary-action { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; text-decoration: none; font-size: 14px; font-weight: 800; }
.primary-action { color: #021819; background: #4de1d7; }
.secondary-action { color: white; border: 1px solid #a8bac2; background: rgba(8, 13, 16, 0.72); }

.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: -44px auto 0; position: relative; z-index: 3; background: white; border: 1px solid var(--line); }
.snapshot div { min-height: 105px; padding: 22px; border-right: 1px solid var(--line); }
.snapshot div:last-child { border-right: 0; }
.snapshot strong, .snapshot span { display: block; }
.snapshot strong { font-size: 28px; }
.snapshot span { margin-top: 8px; color: var(--muted); font-size: 13px; }

.band { padding: 92px max(5vw, calc((100vw - 1180px) / 2)); }
.band:nth-of-type(even) { background: var(--white); }
.section-heading { max-width: 840px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: 0; }
.inline-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.intro-grid { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 60px; align-items: start; }
.big-copy { margin: 0; font-size: clamp(20px, 2.2vw, 31px); line-height: 1.55; font-weight: 650; }
.boundary { padding: 24px 0; border-top: 4px solid var(--amber); border-bottom: 1px solid var(--line); }
.boundary strong { font-size: 15px; }
.boundary p { margin: 12px 0 0; color: var(--muted); line-height: 1.75; }

.segmented { display: flex; border: 1px solid #939e9d; padding: 3px; background: #eef0ee; }
.segmented button { min-width: 58px; height: 36px; padding: 0 14px; border: 0; background: transparent; color: #4d585d; font-weight: 800; cursor: pointer; }
.segmented button.active { background: var(--black); color: white; }
.role-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card { min-height: 260px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: white; text-align: left; cursor: pointer; }
.role-card:hover, .role-card:focus-visible { border-color: var(--cyan); box-shadow: 0 8px 24px rgba(18, 23, 27, 0.08); }
.role-card .priority { width: fit-content; padding: 5px 8px; color: white; background: var(--green); font-size: 11px; font-weight: 900; }
.role-card[data-priority="P1"] .priority { background: var(--amber); }
.role-card[data-priority="P2"] .priority { background: #59656a; }
.role-card h3 { margin: 20px 0 12px; font-size: 20px; line-height: 1.35; }
.role-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.role-card small { margin-top: auto; padding-top: 22px; color: #707c80; }

.system { color: white; background: #0c1216 !important; }
.system .eyebrow { color: #62ded6; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #42515a; border-bottom: 1px solid #42515a; }
.pipeline div { min-height: 170px; padding: 24px 18px; border-right: 1px solid #42515a; }
.pipeline div:last-child { border-right: 0; }
.pipeline span { display: block; color: #62ded6; font-size: 12px; font-weight: 900; }
.pipeline strong { display: block; margin-top: 36px; font-size: 22px; }
.pipeline p { color: #aebbc2; line-height: 1.5; }
.system-columns { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; margin-top: 48px; }
.system-columns article { padding-top: 22px; border-top: 3px solid #62ded6; }
.system-columns h3 { font-size: 22px; }
.system-columns p { color: #c1cbd0; line-height: 1.75; }
code { display: block; overflow-wrap: anywhere; color: #9ef4ee; font-size: 14px; line-height: 1.7; }

.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.evidence-column { padding: 28px; border: 1px solid var(--line); border-top: 5px solid var(--green); background: white; }
.evidence-column.warning { border-top-color: var(--red); }
.evidence-column h3 { margin: 0 0 20px; font-size: 25px; }
.evidence-column ul { list-style: none; margin: 0; padding: 0; }
.evidence-column li { padding: 16px 0; border-top: 1px solid var(--line); }
.evidence-column b, .evidence-column span { display: block; }
.evidence-column span { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.oss-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.oss-links a, .text-link { color: #006b69; font-weight: 800; }

.fx-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 60px; }
.fx-layout ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; border-top: 1px solid var(--line); }
.fx-layout li { counter-increment: steps; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.fx-layout li::before { content: "0" counter(steps); display: inline-block; width: 42px; color: var(--amber); }
.text-link { display: inline-block; margin-top: 30px; }

.apply { background: #e9eeeb !important; }
.gate-list { border-top: 1px solid #9ca8a4; }
.gate-list div { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; min-height: 64px; border-bottom: 1px solid #b6c0bd; }
.gate-list span { font-weight: 900; }
.gate-list em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 900; }
.gate-list .done em { color: var(--green); }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.downloads a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid #7c8985; text-decoration: none; font-weight: 800; }
.downloads .apply-now { margin-left: auto; color: white; background: var(--black); border-color: var(--black); }

dialog { width: min(720px, calc(100vw - 32px)); padding: 34px; border: 1px solid #354047; border-radius: 6px; color: var(--ink); background: white; }
dialog::backdrop { background: rgba(6, 10, 12, 0.72); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; background: #e8ebea; font-size: 25px; cursor: pointer; }
#dialogMeta, #dialogReason { color: var(--muted); line-height: 1.7; }
.signal-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 28px; }
.signal-list span { padding: 6px 9px; background: #e8eeec; font-size: 12px; font-weight: 800; }

footer { padding: 42px 5vw; color: #c7d0d4; background: #090d10; }
footer p { margin: 8px 0 0; color: #87949a; font-size: 13px; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { min-height: 620px; max-height: 760px; }
  .snapshot { margin: 0; grid-template-columns: 1fr 1fr; }
  .snapshot div:nth-child(2) { border-right: 0; }
  .snapshot div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid, .fx-layout, .system-columns, .evidence-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline div { min-height: 110px; border-right: 0; border-bottom: 1px solid #42515a; }
  .pipeline div:last-child { border-bottom: 0; }
  .pipeline strong { margin-top: 16px; }
  .role-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .brand span { display: none; }
  .official { font-size: 12px; }
  .hero { height: auto; min-height: 650px; }
  .hero img { object-position: 62% center; }
  .hero-copy { padding: 100px 22px 48px; }
  h1 { font-size: 52px; }
  .lead { font-size: 23px; }
  .band { padding: 68px 22px; }
  .inline-heading { display: block; }
  .segmented { width: 100%; margin-top: 24px; }
  .segmented button { flex: 1; min-width: 0; padding: 0 8px; }
  .role-list { grid-template-columns: 1fr; }
  .role-card { min-height: 230px; }
  .snapshot div { min-height: 90px; padding: 17px; }
  .snapshot strong { font-size: 23px; }
  .gate-list div { grid-template-columns: 46px 1fr; gap: 8px; padding: 12px 0; }
  .gate-list em { grid-column: 2; }
  .downloads .apply-now { width: 100%; margin-left: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

