:root {
  --navy: #173f5f;
  --navy-deep: #102f49;
  --blue: #2e74b5;
  --blue-soft: #eaf1f7;
  --green: #2f7d65;
  --green-soft: #eaf4ef;
  --amber: #a96512;
  --amber-soft: #fff5dc;
  --red: #b8433f;
  --red-soft: #fff0ee;
  --ink: #17212b;
  --muted: #637079;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --surface-muted: #f3f5f4;
  --line: #d8e0e3;
  --shadow: 0 24px 70px rgba(17, 48, 70, 0.11);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --focus: 0 0 0 3px rgba(46, 116, 181, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(46, 116, 181, 0.11), transparent 25rem),
    linear-gradient(180deg, #f4f6f5 0, var(--paper) 34rem);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(23, 63, 95, 0.12);
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  box-shadow: 0 8px 20px rgba(23, 63, 95, 0.22);
  font-family: Georgia, "Songti SC", serif;
  font-weight: 800;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #52616a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.edition-badge,
.status-pill,
.panel-count,
.source-badge {
  border-radius: 999px;
  font-weight: 800;
}

.edition-badge {
  padding: 8px 11px;
  color: #296453;
  background: var(--green-soft);
  font-size: 10px;
}

.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 86px clamp(24px, 5vw, 74px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 76px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.project-header h3,
.evidence-heading h3 {
  font-family: Georgia, "Songti SC", serif;
  color: var(--navy);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #52616a;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions,
.demo-actions,
.report-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(23, 63, 95, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--navy-deep);
}

.button-secondary {
  color: var(--navy);
  border-color: #c8d3d8;
  background: #fff;
}

.privacy-note {
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #557069;
  font-size: 11px;
}

.privacy-note span {
  color: var(--green);
  font-size: 9px;
}

.hero-proof {
  border: 1px solid rgba(23, 63, 95, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.proof-score {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.proof-score span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.proof-score strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 38px;
}

.proof-score small,
.proof-grid span {
  color: var(--muted);
  font-size: 10px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.proof-grid div {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-grid div:nth-child(even) {
  border-right: 0;
}

.proof-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.proof-grid strong {
  color: var(--navy);
  font-size: 20px;
}

.capabilities,
.demo-section,
.deployment {
  max-width: 1440px;
  margin: 0 auto;
  padding: 78px clamp(20px, 5vw, 72px);
}

.capabilities {
  max-width: 1320px;
  border-top: 1px solid rgba(23, 63, 95, 0.12);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.18;
}

.section-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.capability-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.capability-grid article,
.boundary-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.capability-index {
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.capability-grid h3,
.boundary-grid h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 15px;
}

.capability-grid p,
.boundary-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.demo-section {
  max-width: 1540px;
  padding-top: 88px;
}

.demo-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.demo-boundary {
  margin: 28px 0 14px;
  padding: 12px 15px;
  border: 1px solid #bfd9ce;
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #2e6556;
  background: var(--green-soft);
  font-size: 11px;
  line-height: 1.6;
}

.demo-boundary strong {
  flex: 0 0 auto;
}

.workspace {
  min-height: 760px;
  display: grid;
  grid-template-columns: 230px minmax(560px, 1fr) 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workflow-nav,
.evidence-panel {
  background: var(--surface-muted);
}

.workflow-nav {
  padding: 20px 15px;
  border-right: 1px solid var(--line);
}

.workflow-brand {
  padding: 6px 8px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.workflow-brand > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-brand strong {
  color: var(--navy);
  font-size: 14px;
}

.workflow-brand small {
  color: var(--muted);
  font-size: 9px;
}

.step-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
  list-style: none;
}

.step-list button {
  width: 100%;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 8px;
  align-items: center;
  color: #4c5a62;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.step-list button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.step-list button > span:first-child {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 900;
}

.step-list button > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.step-list strong {
  font-size: 10px;
}

.step-list small {
  color: var(--muted);
  font-size: 8px;
}

.step-list button[data-state="current"] {
  border-color: #b9cfdd;
  background: #fff;
  box-shadow: 0 7px 18px rgba(23, 63, 95, 0.08);
}

.step-list button[data-state="complete"] > span:first-child {
  color: #fff;
  background: var(--green);
}

.workflow-progress {
  margin-top: 22px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.workflow-progress > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.workflow-progress strong {
  color: var(--navy);
}

.progress-track {
  height: 6px;
  margin: 9px 0 7px;
  border-radius: 99px;
  overflow: hidden;
  display: block;
  background: #e5e9e8;
}

.progress-track i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #71a58f);
  transition: width 280ms ease;
}

.workflow-progress small {
  color: var(--muted);
  font-size: 8px;
}

.workflow-main {
  min-width: 0;
  padding: 25px;
  background: #fff;
}

.project-header {
  padding-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.project-header h3 {
  margin: 0;
  font-size: 25px;
}

.project-header > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: #2a6655;
  background: var(--green-soft);
  font-size: 9px;
}

.empty-state {
  min-height: 570px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 25px;
}

.empty-state h4 {
  margin: 18px 0 6px;
  color: var(--navy);
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
}

.empty-state p {
  max-width: 400px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.demo-panel {
  margin-top: 17px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fdfdfc;
}

.demo-panel[hidden] {
  display: none;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-heading h4 {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
}

.panel-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 900;
}

.panel-count {
  padding: 6px 9px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
}

.panel-count-risk {
  color: var(--red);
  background: var(--red-soft);
}

.panel-note {
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.rule-table {
  display: grid;
}

.rule-row {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 75px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e7ebec;
}

.rule-row:first-child {
  border-top: 0;
}

.rule-row > span:first-child {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.rule-row strong {
  color: var(--ink);
  font-size: 10px;
}

.rule-row button {
  padding: 5px 6px;
  border: 1px solid #c6d4da;
  border-radius: 7px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.material-list,
.issue-list,
.agent-list {
  margin-top: 13px;
  display: grid;
  gap: 8px;
}

.material-item {
  padding: 10px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  background: #f3f6f5;
}

.material-state {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.material-item[data-status="warning"] .material-state {
  background: var(--amber);
}

.material-item strong,
.issue-item strong,
.agent-list strong {
  display: block;
  font-size: 10px;
}

.material-item small,
.issue-item p,
.issue-item small,
.agent-list span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.material-item > span:last-child {
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
}

.material-item[data-status="warning"] > span:last-child {
  color: var(--amber);
}

.issue-item {
  padding: 11px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  background: #f5f6f5;
}

.issue-level {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--amber);
  font-size: 8px;
  font-weight: 900;
}

.issue-item[data-severity="high"] .issue-level {
  background: var(--red);
}

.issue-item p {
  margin: 4px 0 3px;
}

.issue-item button {
  margin-top: 6px;
  padding: 5px 7px;
  border: 1px solid #c8d5da;
  border-radius: 7px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.agent-list {
  padding: 0;
  list-style: none;
  counter-reset: tools;
}

.agent-list li {
  padding: 9px 10px 9px 38px;
  border-radius: 9px;
  position: relative;
  background: #f2f6f8;
  counter-increment: tools;
}

.agent-list li::before {
  content: counter(tools, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
}

.report-panel {
  border-color: #bbd7cb;
  background: var(--green-soft);
}

.report-ready {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: center;
}

.report-ready > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 18px;
}

.report-ready h4 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
}

.report-ready p:last-child {
  margin: 5px 0 0;
  color: #4d685f;
  font-size: 9px;
  line-height: 1.55;
}

.report-actions {
  margin-top: 16px;
}

.evidence-panel {
  padding: 20px;
  border-left: 1px solid var(--line);
}

.evidence-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.evidence-heading h3 {
  margin: 0;
  font-size: 18px;
}

.evidence-heading > span {
  color: var(--muted);
  font-size: 8px;
}

.evidence-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.evidence-empty > span {
  color: #8aa0aa;
  font-size: 30px;
}

.evidence-empty p {
  max-width: 220px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.evidence-card {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.evidence-card[hidden] {
  display: none;
}

.source-badge {
  display: inline-flex;
  padding: 6px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
}

.evidence-card blockquote {
  margin: 16px 0;
  padding-left: 12px;
  border-left: 3px solid #76a2bd;
  color: #30414a;
  font-family: Georgia, "Songti SC", serif;
  font-size: 13px;
  line-height: 1.8;
}

.evidence-card dl {
  margin: 0;
  display: grid;
  gap: 7px;
}

.evidence-card dl div {
  padding-top: 7px;
  border-top: 1px solid #e7ebec;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
}

.evidence-card dt {
  color: var(--muted);
}

.evidence-card dd {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}

.local-boundary {
  margin-top: 18px;
  padding: 12px;
  border-radius: 11px;
  color: #2f6757;
  background: var(--green-soft);
}

.local-boundary strong {
  font-size: 9px;
}

.local-boundary p {
  margin: 5px 0 0;
  font-size: 8px;
  line-height: 1.55;
}

.local-boundary code {
  color: var(--navy);
  font-family: Consolas, monospace;
}

.live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.deployment {
  max-width: 1320px;
  border-top: 1px solid rgba(23, 63, 95, 0.12);
}

.deployment-flow {
  margin-top: 36px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 48, 70, 0.07);
}

.deployment-flow > div {
  min-height: 108px;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--surface-muted);
}

.deployment-flow small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deployment-flow strong {
  color: var(--navy);
  font-size: 14px;
}

.deployment-flow span {
  color: var(--muted);
  font-size: 9px;
}

.deployment-flow > span {
  color: var(--blue);
  font-size: 22px;
  text-align: center;
}

.boundary-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.boundary-grid article > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

footer {
  padding: 24px clamp(20px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #efefeb;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .evidence-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .evidence-empty {
    min-height: 140px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .edition-badge {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workflow-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step-list {
    grid-template-columns: repeat(5, minmax(125px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .workflow-progress {
    margin-top: 12px;
  }

  .deployment-flow {
    grid-template-columns: 1fr;
  }

  .deployment-flow > span {
    transform: rotate(90deg);
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 64px;
    padding: 0 14px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small,
  .edition-badge {
    display: none;
  }

  .hero {
    padding: 54px 20px 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .proof-grid,
  .capability-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid div:last-child {
    border-bottom: 0;
  }

  .capabilities,
  .demo-section,
  .deployment {
    padding: 58px 14px;
  }

  .demo-heading,
  .project-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-boundary {
    flex-direction: column;
  }

  .workflow-main,
  .evidence-panel {
    padding: 16px 13px;
  }

  .rule-row {
    grid-template-columns: 84px 1fr;
  }

  .rule-row button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .report-actions .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
