:root {
  --ink: #111413;
  --muted: #66706c;
  --paper: #f5f2ea;
  --paper-strong: #fffaf0;
  --line: rgba(17, 20, 19, 0.12);
  --teal: #0c8074;
  --teal-dark: #075a53;
  --gold: #c99b47;
  --coral: #cf5b4c;
  --charcoal: #171918;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 20, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(17, 20, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: var(--white);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 10px;
  letter-spacing: 0;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: currentColor;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.78;
}

.nav-links a:hover {
  opacity: 1;
}

.header-cta,
.primary-btn,
.secondary-btn,
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  min-width: 112px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
}

.primary-btn {
  min-width: 168px;
  padding: 0 24px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(201, 155, 71, 0.28);
}

.primary-btn:hover,
.secondary-btn:hover,
.copy-btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  min-width: 150px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  opacity: 0.82;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.93) 0%, rgba(10, 12, 11, 0.73) 43%, rgba(10, 12, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 12, 11, 0.82) 0%, rgba(10, 12, 11, 0.12) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 58px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.hero-qr {
  display: inline-grid;
  gap: 12px;
  justify-items: center;
  width: 192px;
  margin-bottom: 42px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.hero-qr img {
  display: block;
  width: 100%;
  max-height: 168px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

.hero-qr span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics div {
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics dt {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.section,
.section-band {
  padding: clamp(72px, 10vw, 128px) 0;
}

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

.intro {
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.solution-layout,
.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.intro p:last-child,
.solution-copy p,
.section-heading p,
.trust-items p {
  color: var(--muted);
  font-size: 18px;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.section-heading.narrow {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.risk-card {
  min-height: 330px;
  padding: 30px;
  background: var(--paper-strong);
}

.card-index {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--coral);
  font-weight: 900;
}

.risk-card h3,
.process-list h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
}

.risk-card p,
.process-list p,
.solution-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution {
  background: var(--charcoal);
  color: var(--white);
}

.solution-copy p {
  color: rgba(255, 255, 255, 0.68);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 900;
}

.text-link::after {
  content: "";
  width: 42px;
  height: 1px;
  margin: 14px 0 0 12px;
  background: currentColor;
}

.solution-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.solution-panel div {
  min-height: 216px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.055);
}

.solution-panel span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.solution-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.system-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 54px;
}

.system-map::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6%;
  left: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.system-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 12px 30px rgba(17, 20, 19, 0.08);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.system-node.active {
  background: var(--teal-dark);
  color: var(--white);
}

.system-node.accent {
  background: var(--gold);
}

.process-section {
  background: var(--paper-strong);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  min-height: 248px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.process-list span {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--teal);
  font-weight: 900;
}

.trust {
  background:
    linear-gradient(90deg, rgba(12, 128, 116, 0.1), transparent),
    var(--paper);
}

.trust-items {
  display: grid;
  gap: 14px;
}

.trust-items p {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 250, 240, 0.76);
}

.contact {
  padding: clamp(86px, 12vw, 150px) 20px;
  background: var(--charcoal);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 7vw, 76px);
  align-items: center;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: left;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact p {
  max-width: 680px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
}

.primary-btn.light {
  background: var(--white);
}

.copy-btn {
  min-width: 168px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.contact small {
  display: block;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.42);
}

.wechat-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.wechat-card img {
  display: block;
  width: 100%;
  max-width: 264px;
  max-height: 264px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

.wechat-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 64px);
  background: #0d0f0e;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

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

  .intro-grid,
  .solution-layout,
  .trust-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .risk-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header {
    height: 66px;
    padding: 0 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-qr {
    width: min(210px, 70vw);
    margin-bottom: 32px;
  }

  .contact-inner,
  .contact p {
    text-align: center;
  }

  .contact-actions {
    justify-content: center;
  }

  .wechat-card {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .secondary-btn {
    color: var(--white);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .risk-grid,
  .solution-panel,
  .process-list,
  .system-map {
    grid-template-columns: 1fr;
  }

  .risk-card,
  .process-list li,
  .solution-panel div {
    min-height: auto;
  }

  .card-index,
  .process-list span {
    margin-bottom: 32px;
  }

  .system-map::before {
    top: 6%;
    bottom: 6%;
    left: 50%;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--teal), var(--gold), var(--coral));
  }

  .footer {
    flex-direction: column;
  }
}
