:root {
  --ink: #172235;
  --muted: #6d798a;
  --line: #e1e7ec;
  --paper: #f5f7f8;
  --white: #fff;
  --blue: #087df0;
  --teal: #19a99f;
  --navy: #14253d;
  --green: #167966;
  --orange: #ae5d31;
  --shadow: 0 28px 90px rgba(25, 42, 64, .11);
  --font: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 84% 12%, rgba(25, 169, 159, .08), transparent 28rem),
    radial-gradient(circle at 12% 5%, rgba(8, 125, 240, .08), transparent 28rem),
    var(--paper);
}
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(8, 125, 240, .28); outline-offset: 3px; }
.page-width { width: min(1240px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }

.prototype-strip {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 20px;
  color: #526476;
  background: #eaf1f5;
  border-bottom: 1px solid rgba(8, 125, 240, .08);
  font-size: 11px;
}
.prototype-strip b { padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--navy); font-size: 10px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand > span { display: grid; gap: 2px; }
.brand b { font-size: 14px; }
.brand small { color: var(--muted); font-size: 9px; }
.site-nav nav { display: flex; align-items: center; gap: 25px; }
.site-nav nav a { color: var(--muted); font-size: 12px; transition: color .2s ease; }
.site-nav nav a:hover { color: var(--ink); }
.back-link { justify-self: end; min-height: 39px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 750; }

.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero { min-height: 470px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.hero-copy h1 { margin-bottom: 21px; font-size: clamp(40px, 4.2vw, 58px); line-height: 1.09; letter-spacing: -.058em; }
.hero-text { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.82; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 29px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border-radius: 999px; font-size: 13px; font-weight: 760; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--navy); box-shadow: 0 15px 35px rgba(20, 37, 61, .2); }
.button.text-button { padding-left: 14px; padding-right: 14px; }
.button.text-button span { margin-left: 5px; color: var(--blue); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 10px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(25, 169, 159, .1); }

.evidence-visual { position: relative; min-height: 330px; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; }
.orbit-outer { width: 315px; height: 315px; border: 1px solid rgba(25, 169, 159, .22); }
.orbit-inner { width: 240px; height: 240px; border: 1px dashed rgba(8, 125, 240, .22); }
.visual-core {
  position: relative;
  z-index: 2;
  width: 166px;
  height: 166px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 48px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #14253d, #087df0 56%, #19a99f);
  box-shadow: 0 34px 86px rgba(8, 125, 240, .26);
}
.visual-core img { width: 47px; height: 47px; margin-bottom: 7px; object-fit: contain; filter: brightness(0) invert(1); }
.visual-core b { font-size: 20px; }
.visual-core span { margin-top: 5px; color: rgba(255,255,255,.7); font-size: 10px; }
.visual-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 13px 35px rgba(25,42,64,.09);
  font-size: 11px;
  font-weight: 750;
}
.visual-pill span { color: var(--blue); font-size: 8px; }
.pill-question { top: 7px; left: 30px; }
.pill-protocol { top: 62px; right: 0; }
.pill-review { right: 20px; bottom: 30px; }
.pill-archive { left: 0; bottom: 31px; }

.chain-section { padding: 67px 0 74px; color: #fff; background: var(--navy); }
.section-heading, .workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 29px; }
.section-heading > div, .workspace-heading > div { max-width: 710px; }
.section-heading .eyebrow { color: #6fcfc6; }
.section-heading h2, .workspace-heading h2, .boundary-section h2 { margin-bottom: 0; font-size: clamp(29px, 3vw, 40px); line-height: 1.22; letter-spacing: -.045em; }
.section-heading > p, .workspace-heading > p { max-width: 390px; margin-bottom: 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.75; }
.chain-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.chain-grid article { min-height: 178px; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 21px; background: rgba(255,255,255,.055); }
.chain-grid article > span { color: rgba(255,255,255,.48); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.chain-grid h3 { margin: 34px 0 9px; font-size: 18px; letter-spacing: -.03em; }
.chain-grid p { margin-bottom: 0; color: rgba(255,255,255,.54); font-size: 10px; line-height: 1.65; }
.chain-grid .chain-feature { color: var(--ink); border-color: transparent; background: linear-gradient(145deg, #fff, #e8f7f5); box-shadow: 0 18px 45px rgba(0,0,0,.12); }
.chain-feature > span { color: var(--teal) !important; }
.chain-feature p { color: var(--muted); }
.chain-feature a { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; color: var(--blue); font-size: 10px; font-weight: 800; }

.workspace-section { padding-top: 86px; padding-bottom: 90px; }
.workspace-heading > p { color: var(--muted); }
.workspace-shell { overflow: hidden; border: 1px solid #dbe2e8; border-radius: 29px; background: #fff; box-shadow: var(--shadow); }
.workspace-topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.project-identity { display: flex; align-items: center; gap: 11px; }
.project-mark { width: 31px; height: 31px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--teal)); box-shadow: 0 8px 22px rgba(8,125,240,.18); }
.project-identity > div { display: grid; gap: 3px; }
.project-identity b { font-size: 13px; }
.project-identity small { color: var(--muted); font-size: 9px; }
.project-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: var(--green); background: #e4f5ef; font-size: 9px; font-weight: 750; }
.project-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.workspace-tabs { display: flex; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.workspace-tabs button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 999px; color: #657285; background: transparent; font-size: 10px; font-weight: 720; cursor: pointer; }
.workspace-tabs button:hover { background: #edf1f4; }
.workspace-tabs button.is-active { color: #fff; background: var(--navy); }
.workspace-tabs em { min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--orange); font-style: normal; font-size: 8px; }
.tab-panel { min-height: 420px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { display: block; }
.panel-label { display: block; margin-bottom: 8px; color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.panel-label.light { color: #70d2c9; }

.summary-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; min-height: 420px; padding: 48px; }
.summary-copy h3 { max-width: 620px; margin-bottom: 16px; font-size: 30px; line-height: 1.32; letter-spacing: -.04em; }
.summary-copy p { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.summary-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.summary-facts div { padding: 18px; border-radius: 16px; background: var(--paper); }
.summary-facts dt { margin-bottom: 9px; color: var(--muted); font-size: 8px; }
.summary-facts dd { margin: 0; font-size: 11px; font-weight: 750; }

.design-panel { padding: 36px; }
.design-question { max-width: 800px; margin-bottom: 23px; }
.design-question h3 { margin-bottom: 11px; font-size: 24px; letter-spacing: -.035em; }
.design-question p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.design-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.design-grid article { min-height: 180px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.design-grid article > span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); font-weight: 850; }
.design-grid b { font-size: 12px; }
.design-grid p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.mapping-panel { padding: 30px; }
.mapping-panel > header, .reviews-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mapping-panel h3, .reviews-panel h3 { margin-bottom: 0; font-size: 22px; letter-spacing: -.035em; }
.mapping-panel header > small, .reviews-panel header > small { color: var(--muted); font-size: 9px; }
.mapping-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; }
.mapping-panel table { width: 100%; min-width: 760px; border-collapse: collapse; }
.mapping-panel th { padding: 12px 15px; color: var(--muted); background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 8px; text-align: left; }
.mapping-panel td { padding: 15px; border-bottom: 1px solid #edf1f4; font-size: 10px; }
.mapping-panel tbody tr:last-child td { border-bottom: 0; }
.mapping-panel code { color: #155a8d; font-size: 9px; }
.row-warning { background: #fff9f6; }
.table-state { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 750; }
.table-state.matched { color: var(--green); background: #e1f4ee; }
.table-state.issue { color: var(--orange); background: #fee9df; }

.consistency-layout { display: grid; grid-template-columns: 1.28fr .72fr; min-height: 465px; }
.check-panel { padding: 28px; border-right: 1px solid var(--line); }
.check-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.check-header h3 { margin-bottom: 7px; font-size: 22px; letter-spacing: -.035em; }
.check-header p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.run-button { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; color: #fff; background: linear-gradient(90deg, var(--blue), var(--teal)); box-shadow: 0 10px 24px rgba(8,125,240,.17); font-size: 9px; font-weight: 800; cursor: pointer; }
.run-button:disabled { opacity: .65; cursor: wait; }
.run-button i { font-style: normal; font-size: 13px; }
.check-progress { margin-bottom: 13px; padding: 13px 15px; border-radius: 13px; background: #f1f5f7; }
.check-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 8px; }
.check-progress span { color: var(--muted); }
.progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: #dfe6eb; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .35s ease; }
.result-list { display: grid; gap: 8px; }
.result-item { width: 100%; display: grid; grid-template-columns: 34px 1fr 135px; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; text-align: left; background: #fff; cursor: default; transition: border .18s ease, background .18s ease, transform .18s ease; }
.result-item.is-issue { cursor: pointer; }
.result-item.is-issue:hover, .result-item.is-selected { border-color: #edb394; background: #fffaf7; transform: translateX(2px); }
.result-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--green); background: #dff4ed; font-weight: 850; }
.is-issue .result-icon { color: var(--orange); background: #fee8dc; }
.result-copy { display: grid; gap: 4px; }
.result-copy b { font-size: 10px; }
.result-copy small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.result-meta { display: grid; gap: 3px; text-align: right; }
.result-meta b { font-size: 9px; }
.result-meta span { color: var(--muted); font-size: 8px; }

.expert-panel { padding: 29px; color: #fff; background: linear-gradient(150deg, #14253d, #123c58 65%, #126e6b); }
.expert-panel > h3 { margin-bottom: 21px; font-size: 24px; line-height: 1.32; letter-spacing: -.035em; }
.expert-card { padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.08); }
.expert-role { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.12); }
.expert-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); font-weight: 850; }
.expert-role > div { display: grid; gap: 3px; }
.expert-role b { font-size: 10px; }
.expert-role small { color: rgba(255,255,255,.56); font-size: 8px; }
.expert-task { padding-top: 15px; }
.expert-task + .expert-task { margin-top: 13px; border-top: 1px solid rgba(255,255,255,.09); }
.expert-task span { color: rgba(255,255,255,.48); font-size: 8px; }
.expert-task p { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: 10px; line-height: 1.7; }
.responsibility-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 11px; }
.responsibility-strip div { padding: 12px; border-radius: 13px; background: rgba(255,255,255,.075); }
.responsibility-strip b { display: block; margin-bottom: 5px; font-size: 9px; }
.responsibility-strip span { color: rgba(255,255,255,.49); font-size: 8px; }

.reviews-panel { padding: 30px; }
.review-timeline { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.review-timeline li { display: grid; grid-template-columns: 135px 1fr auto; align-items: center; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.review-timeline li:last-child { border-bottom: 0; }
.review-timeline time { color: var(--muted); font-size: 9px; }
.review-timeline div { display: grid; gap: 4px; }
.review-timeline b { font-size: 10px; }
.review-timeline p { margin: 0; color: var(--muted); font-size: 9px; }
.review-timeline li > span { padding: 5px 8px; border-radius: 999px; color: var(--green); background: #e1f4ee; font-size: 8px; font-weight: 750; }

.boundary-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; padding-top: 15px; padding-bottom: 85px; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boundary-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); }
.boundary-grid span { color: var(--blue); font-size: 8px; font-weight: 850; }
.boundary-grid b { display: block; margin: 16px 0 7px; font-size: 12px; }
.boundary-grid p { margin-bottom: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-footer a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 750; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .site-nav nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .evidence-visual { min-height: 360px; }
  .chain-grid { grid-template-columns: repeat(2, 1fr); }
  .chain-feature { grid-column: span 2; }
  .consistency-layout { grid-template-columns: 1fr; }
  .check-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-panel { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr 1fr; }
  .boundary-section { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .page-width { width: min(100% - 24px, 1240px); }
  .prototype-strip span { display: none; }
  .site-nav { height: 62px; padding: 0 12px; }
  .brand small { display: none; }
  .back-link { min-height: 36px; padding: 0 13px; }
  .hero { padding-top: 52px; padding-bottom: 48px; }
  .hero-copy h1 { font-size: clamp(34px, 10.5vw, 45px); }
  .hero-text { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-meta { display: grid; gap: 12px; }
  .evidence-visual { min-height: 320px; transform: scale(.88); margin: -15px -20px; }
  .chain-section { padding: 55px 0; }
  .section-heading, .workspace-heading { align-items: start; flex-direction: column; gap: 14px; }
  .section-heading > p, .workspace-heading > p { max-width: none; }
  .chain-grid { grid-template-columns: 1fr; }
  .chain-feature { grid-column: auto; }
  .chain-grid article { min-height: 145px; }
  .chain-grid h3 { margin-top: 24px; }
  .workspace-section { padding-top: 64px; padding-bottom: 65px; }
  .workspace-topbar { align-items: flex-start; flex-direction: column; padding: 16px; }
  .project-state { align-self: flex-start; }
  .workspace-tabs { overflow-x: auto; padding: 10px 12px; }
  .workspace-tabs button { flex: 0 0 auto; }
  .summary-panel, .design-panel, .mapping-panel, .reviews-panel { padding: 21px; }
  .summary-facts, .design-grid, .boundary-grid { grid-template-columns: 1fr; }
  .consistency-layout { display: block; }
  .check-panel, .expert-panel { padding: 21px; }
  .check-header { align-items: stretch; flex-direction: column; }
  .run-button { align-self: flex-start; }
  .result-item { grid-template-columns: 31px 1fr; }
  .result-meta { grid-column: 2; text-align: left; }
  .responsibility-strip { grid-template-columns: 1fr; }
  .review-timeline li { grid-template-columns: 1fr; gap: 7px; }
  .review-timeline li > span { justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

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