:root {
  --ink: #101719;
  --paper: #f2f3ef;
  --white: #ffffff;
  --muted: #677276;
  --line: rgba(16, 23, 25, 0.18);
  --cyan: #8dc9d7;
  --teal: #246c72;
  --brass: #bca36c;
  --deep: #071416;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(242, 243, 239, 0.94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 218px;
  font-size: 12px;
  letter-spacing: 4px;
  line-height: 1;
}

.brand-mark {
  width: 25px;
  height: 25px;
  border: 1px solid currentColor;
  background: rgba(141, 201, 215, 0.62);
  transform: rotate(45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.primary-nav a {
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--deep) url("assets/pengyifund-architecture-hero.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 10, 12, 0.83), rgba(2, 10, 12, 0.22) 65%, rgba(2, 10, 12, 0.08));
}

.hero-grid {
  position: absolute;
  top: 18%;
  right: 7%;
  width: min(31vw, 460px);
  aspect-ratio: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-grid::after {
  content: "";
  position: absolute;
  right: 32%;
  bottom: -28%;
  height: 84%;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 80vw);
  margin: 0 0 9vh 10vw;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 9vw, 144px);
  font-weight: 400;
  line-height: 0.88;
}

.hero-statement {
  margin: 34px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 54px);
  line-height: 1.12;
}

.hero-meta {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  gap: 10px;
  align-items: center;
  width: min(540px, 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  padding-top: 14px;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--cyan);
  font-size: 20px;
  text-align: center;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 28px;
  font-size: 12px;
  text-transform: uppercase;
}

.scroll-cue span {
  margin-left: 16px;
  font-size: 18px;
}

.section {
  display: grid;
  grid-template-columns: 80px minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: 5vw;
  padding: 120px 7vw;
}

.section-index {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.section h2,
.product-section h2,
.risk-section h2,
.dashboard-section h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  font-size: clamp(42px, 5.3vw, 78px);
  font-weight: 400;
  line-height: 1.08;
}

.section-detail {
  align-self: end;
  max-width: 640px;
  color: #3d484b;
  font-size: 17px;
}

.section-detail p + p {
  margin-top: 26px;
}

.product-section {
  padding: 110px 8vw 90px;
  color: var(--white);
  background: #173b3d;
}

.product-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  align-items: end;
}

.product-summary {
  max-width: 600px;
  margin: 0;
  color: #d6e0de;
  font-size: 18px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.product-facts div {
  min-height: 132px;
  padding: 24px 18px 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.product-facts div:not(:first-child) {
  padding-left: 22px;
}

.product-facts span,
.product-facts strong {
  display: block;
}

.product-facts span {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.product-facts strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.platform-section {
  grid-template-columns: 0.8fr 1.2fr;
  grid-template-areas:
    "heading heading"
    "steps panel";
}

.platform-heading {
  grid-area: heading;
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.7fr;
  gap: 4vw;
  align-items: end;
}

.platform-heading .eyebrow {
  align-self: start;
}

.platform-heading h2 {
  max-width: 780px;
}

.platform-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.pipeline {
  grid-area: steps;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.pipeline-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, padding 160ms ease;
}

.pipeline-step span {
  color: var(--muted);
  font-size: 11px;
}

.pipeline-step:hover,
.pipeline-step:focus-visible,
.pipeline-step.is-active {
  padding-left: 14px;
  color: var(--teal);
}

.pipeline-panel {
  grid-area: panel;
  min-height: 380px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: end;
  padding: 48px;
  color: var(--white);
  background: #172327;
}

.panel-kicker {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 1.6px;
}

.pipeline-panel h3 {
  margin: 10px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
}

.pipeline-panel p {
  color: #cbd3d2;
}

.pipeline-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-panel li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.risk-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9vw;
  padding: 120px 8vw;
  color: var(--white);
  background: var(--deep);
}

.risk-copy > p:last-child {
  max-width: 580px;
  margin-top: 36px;
  color: #b7c2c1;
  font-size: 17px;
}

.risk-matrix {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.risk-matrix article {
  display: grid;
  grid-template-columns: 42px 0.8fr 1fr;
  gap: 26px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.risk-matrix article > span {
  color: var(--cyan);
  font-size: 11px;
}

.risk-matrix h3,
.risk-matrix p {
  margin: 0;
}

.risk-matrix h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.risk-matrix p {
  color: #aeb9b8;
  font-size: 14px;
}

.evidence-section {
  display: block;
}

.evidence-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 5vw;
}

.stage-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
}

.stage {
  position: relative;
  min-height: 138px;
  padding: 24px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.stage::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 16px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--teal);
  background: var(--paper);
  transform: rotate(45deg);
}

.stage:hover,
.stage:focus-visible,
.stage.is-current {
  color: var(--white);
  background: var(--teal);
}

.stage.is-current::before,
.stage:hover::before,
.stage:focus-visible::before {
  background: var(--cyan);
}

.stage span,
.stage strong {
  display: block;
}

.stage span {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.stage strong {
  font-size: 12px;
  font-weight: 600;
}

.stage-readout {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 5vw;
  min-height: 120px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stage-readout span {
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
}

.stage-readout p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
}

.dashboard-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 6vw;
  padding: 110px 7vw;
  color: var(--white);
  background: #26383d;
}

.dashboard-copy p:last-child {
  margin-top: 30px;
  color: #c0cccb;
}

.dashboard-shell {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #111b1e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  letter-spacing: 1px;
}

.system-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--brass);
  border-radius: 50%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.system-map,
.readiness,
.signal-window {
  padding: 24px;
}

.system-map {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cyan);
  font-size: 10px;
}

.system-map b {
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.readiness {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.readiness div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.readiness strong {
  color: var(--cyan);
  font-weight: 500;
}

.signal-window {
  min-height: 190px;
}

.signal-window canvas {
  width: 100%;
  height: 130px;
}

.signal-window span {
  color: #839193;
  font-size: 8px;
}

.site-footer {
  padding: 70px 7vw 40px;
  color: #c7d0cf;
  background: #050b0c;
}

.footer-brand {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 66px);
}

.site-footer > p {
  max-width: 760px;
  margin: 28px 0 56px;
  color: #8d9a9a;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .section,
  .product-intro,
  .risk-section,
  .dashboard-section {
    grid-template-columns: 1fr;
  }

  .section-index {
    display: none;
  }

  .platform-heading {
    grid-template-columns: 1fr;
  }

  .platform-section {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "steps" "panel";
  }

  .product-facts {
    grid-template-columns: 1fr 1fr;
  }

  .stage-track {
    grid-template-columns: repeat(3, 1fr);
  }

  .evidence-heading,
  .stage-readout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    padding: 0 20px;
  }

  .brand {
    min-width: 0;
    font-size: 10px;
    letter-spacing: 2.5px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 82svh;
    background-position: 60% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(2, 10, 12, 0.88), rgba(2, 10, 12, 0.28));
  }

  .hero-grid {
    top: 16%;
    right: -22%;
    width: 72vw;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 20px 11vh;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 11.5vw, 54px);
    white-space: nowrap;
  }

  .hero-statement {
    font-size: 29px;
  }

  .hero-meta {
    grid-template-columns: auto 42px;
    gap: 6px;
  }

  .hero-meta span:last-child {
    grid-column: 1 / -1;
  }

  .scroll-cue {
    display: none;
  }

  .section,
  .product-section,
  .risk-section,
  .dashboard-section {
    padding: 78px 20px;
  }

  .section h2,
  .product-section h2,
  .risk-section h2,
  .dashboard-section h2 {
    font-size: 42px;
  }

  .product-facts {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .product-facts div,
  .product-facts div:not(:first-child) {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .pipeline-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 28px 22px;
  }

  .risk-matrix article {
    grid-template-columns: 30px 1fr;
  }

  .risk-matrix article p {
    grid-column: 2;
  }

  .stage-track {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }

  .stage {
    min-height: 116px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .readiness {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .system-map {
    overflow-x: auto;
  }

  .footer-meta {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
