:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --ink: #172033;
  --muted: #637083;
  --line: #d9e0e8;
  --blue: #1f5f9e;
  --blue-dark: #143d66;
  --gold: #9a6b18;
  --green: #1d7a55;
  --red: #a33737;
  --shadow: 0 16px 40px rgba(31, 45, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body,
button,
input,
textarea {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  font-weight: 700;
  color: var(--blue-dark);
}

.brand img {
  width: 150px;
  height: 54px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar nav a {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.topbar nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

main {
  min-height: 100vh;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 28px;
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 28px;
  align-items: stretch;
}

.dashboard-copy,
.metrics-panel,
.log-card,
.ledger-shell,
.pipeline-panel,
.opportunity-card,
.participation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-copy {
  min-height: 520px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  color: #0d1628;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-title {
  line-height: 1.02;
}

.hero-title span {
  display: block;
}

.hero-title-name {
  font-size: 42px;
  font-weight: 850;
}

.hero-title-experiment {
  margin-top: 8px;
  color: #091428;
  font-size: 62px;
  font-weight: 900;
}

h2 {
  margin: 0;
  color: #111a2d;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: #14223a;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 13px 16px;
  border: 1px solid #e4d5af;
  border-radius: 8px;
  background: #fff8e8;
  color: var(--gold);
}

.proof-strip span {
  font-weight: 700;
}

.proof-strip strong {
  color: #3b2a09;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.button.primary {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #ffffff;
}

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

.metrics-panel {
  min-height: 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f2fa;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.active {
  background: #e7f6ef;
  color: var(--green);
}

.status-pill.completed {
  background: #f4ead2;
  color: var(--gold);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.progress-ring {
  width: 222px;
  height: 222px;
  margin: 20px auto 26px;
  border-radius: 50%;
  background:
    conic-gradient(var(--green) var(--progress), #e5e9ee 0),
    #e5e9ee;
  display: grid;
  place-items: center;
}

.progress-ring > div {
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
}

.progress-ring span {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 850;
  color: #111a2d;
}

.progress-ring small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-grid article {
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: #111a2d;
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.section-band {
  margin: 0;
  background: #172033;
  color: #ffffff;
}

.section-inner,
.content-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-inner {
  padding: 48px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: start;
}

.thesis h2,
.rules h2 {
  color: #ffffff;
}

.thesis p:not(.eyebrow) {
  margin: 0;
  color: #dbe5ef;
  font-size: 18px;
}

.content-section {
  padding: 58px 0 0;
}

.content-section.compact {
  padding-top: 34px;
}

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

.section-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.background-section {
  padding-top: 48px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.background-grid article {
  min-height: 238px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.background-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  margin-bottom: 16px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8f2fa;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.background-grid article p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.open-alter-card {
  background: #0f1b2d !important;
  color: #ffffff;
}

.open-alter-card h3 {
  color: #ffffff;
}

.open-alter-card p {
  color: #d7e1ec !important;
}

.open-alter-card .button {
  margin-top: 20px;
  width: 100%;
  border-color: #ffffff;
  background: #ffffff;
  color: #0f1b2d;
}

.heartbeat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.heartbeat-step {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: #e8f2fa;
  color: var(--blue-dark);
  font-weight: 850;
  font-size: 13px;
}

.heartbeat-step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.log-card {
  padding: 28px;
}

.log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.log-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.log-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.log-stats article {
  min-height: 80px;
  padding: 13px;
  border-radius: 8px;
  background: #f4f7fa;
  border: 1px solid #e4eaf0;
}

.log-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.log-stats strong {
  display: block;
  margin-top: 7px;
  color: #111a2d;
  font-size: 20px;
}

.log-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.log-note article {
  padding: 16px;
  border-left: 4px solid var(--blue);
  background: #f7f9fb;
}

.log-note h3 {
  font-size: 15px;
}

.log-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ledger-shell {
  padding: 10px;
}

.ledger-table-wrap {
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ledger-table th,
.ledger-table td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.ledger-table th {
  color: var(--blue-dark);
  background: #e8eef5;
  font-size: 13px;
}

.ledger-table td {
  color: var(--ink);
  font-size: 14px;
}

.ledger-table td:nth-child(1),
.ledger-table th:nth-child(1) {
  width: 120px;
}

.ledger-table td:nth-child(3),
.ledger-table th:nth-child(3) {
  width: 130px;
}

.empty-ledger {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.opportunity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.opportunity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.opportunity-card {
  min-height: 186px;
  padding: 20px;
}

.opportunity-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.opportunity-card p {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.stage-tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4ead2;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.weight-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ebf1;
}

.weight-bar span {
  display: block;
  height: 100%;
  width: var(--weight);
  border-radius: inherit;
  background: var(--blue);
}

.pipeline-panel {
  padding: 24px;
}

.pipeline-panel ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.pipeline-panel li {
  margin: 0 0 14px;
  color: var(--muted);
}

.rules {
  margin-top: 58px;
  background: #111a2d;
}

.rules .section-heading p:not(.eyebrow) {
  color: #d8e1ec;
}

.red-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 18px;
}

.red-lines article {
  min-height: 214px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.red-lines span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2cf87;
  font-size: 12px;
  font-weight: 850;
}

.red-lines h3 {
  color: #ffffff;
}

.red-lines p {
  margin: 10px 0 0;
  color: #d8e1ec;
  font-size: 14px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rule-card {
  min-height: 122px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.rule-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #f2cf87;
  font-weight: 850;
}

.rule-card p {
  margin: 0;
  color: #d8e1ec;
  font-size: 14px;
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.participation-card {
  min-height: 206px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.participation-card p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.contact-section {
  padding-top: 46px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: center;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.contact-methods a {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.contact-methods a:hover {
  border-color: #b9c8d9;
  transform: translateY(-1px);
}

.contact-methods span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.contact-methods strong {
  display: block;
  margin-top: 8px;
  color: #101a2d;
  font-size: 21px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.qr-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1 / 1.42;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.qr-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.footer {
  width: min(1180px, calc(100% - 48px));
  margin: 56px auto 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .topbar {
    padding: 0 24px;
  }

  .brand {
    min-width: 250px;
  }

  .brand img {
    width: 132px;
    height: 48px;
  }

  .dashboard,
  .two-column,
  .opportunity-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .dashboard-copy,
  .metrics-panel {
    min-height: auto;
  }

  .heartbeat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .log-stats,
  .rules-grid,
  .red-lines,
  .background-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    display: block;
    padding: 16px 18px;
  }

  .brand {
    margin-bottom: 12px;
    min-width: 0;
  }

  .brand img {
    width: 136px;
    height: 48px;
  }

  .topbar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    overflow-x: auto;
  }

  .topbar nav a {
    min-width: 56px;
    padding: 8px 6px;
    text-align: center;
  }

  .dashboard,
  .section-inner,
  .content-section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .dashboard {
    margin-top: 18px;
  }

  .dashboard-copy,
  .metrics-panel,
  .log-card {
    padding: 22px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-title-name {
    font-size: 30px;
  }

  .hero-title-experiment {
    font-size: 42px;
  }

  h2 {
    font-size: 24px;
  }

  .lead {
    font-size: 17px;
  }

  .progress-ring {
    width: 196px;
    height: 196px;
  }

  .progress-ring > div {
    width: 146px;
    height: 146px;
  }

  .metric-grid,
  .heartbeat-grid,
  .log-stats,
  .log-note,
  .opportunity-list,
  .rules-grid,
  .red-lines,
  .background-grid,
  .participation-grid,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 20px;
  }

  .qr-card {
    max-width: 280px;
    justify-self: center;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-bottom: 6px;
  }
}
