:root {
  --ink: #0b1a2a;
  --ink-soft: #3d5166;
  --foam: #f2f6f8;
  --panel: #e8eef2;
  --sea: #0f6b72;
  --sea-deep: #0a4d53;
  --metal: #7a92a3;
  --line: rgba(11, 26, 42, 0.12);
  --line-strong: rgba(11, 26, 42, 0.22);
  --font-brand: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: min(1120px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--foam);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

/* —— Top nav —— */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(242, 246, 248, 0.94), rgba(242, 246, 248, 0));
  backdrop-filter: blur(6px);
}

.top-brand {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.top-nav a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.top-nav a:hover {
  color: var(--sea-deep);
  border-color: var(--sea);
}

.top-login {
  color: var(--sea-deep) !important;
  font-weight: 500;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(96px, 14vh, 120px) clamp(20px, 5vw, 72px) clamp(48px, 8vh, 80px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, #f5f8fa 0%, #d5e3ea 45%, #8fb4bc 78%, #1f6d74 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(255, 255, 255, 0.08) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 47px,
      rgba(255, 255, 255, 0.06) 48px
    );
  background-blend-mode: normal, soft-light, soft-light;
  animation: grid-drift 22s ease-in-out infinite alternate;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 78% 30%, rgba(122, 146, 163, 0.28), transparent 55%),
    linear-gradient(90deg, rgba(242, 246, 248, 0.72) 0%, rgba(242, 246, 248, 0.2) 48%, transparent 72%);
}

.hero-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.route {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  animation: route-flow 20s linear infinite;
}
.route-b { animation-duration: 26s; animation-delay: -5s; opacity: 0.75; }
.route-c { animation-duration: 32s; animation-delay: -10s; opacity: 0.5; }

.nodes circle {
  fill: rgba(255, 255, 255, 0.85);
  animation: node-pulse 3.6s ease-in-out infinite;
}
.nodes circle:nth-child(2) { animation-delay: 0.4s; }
.nodes circle:nth-child(3) { animation-delay: 0.8s; }
.nodes circle:nth-child(4) { animation-delay: 1.2s; }
.nodes circle:nth-child(5) { animation-delay: 1.6s; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(720px, 92vw);
  color: var(--ink);
  animation: rise 0.85s ease both;
}

.brand {
  margin: 0 0 14px;
  font-family: var(--font-brand);
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.12;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.lede {
  margin: 0 0 30px;
  max-width: 22em;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--sea-deep);
  letter-spacing: 0.04em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--sea);
  border-color: var(--sea);
  color: #f7fbfc;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--sea-deep);
  border-color: var(--sea-deep);
}

.btn-ghost {
  background: rgba(247, 251, 252, 0.45);
  border-color: rgba(15, 107, 114, 0.4);
  color: var(--sea-deep);
}
.btn-ghost:hover {
  background: rgba(247, 251, 252, 0.8);
  border-color: var(--sea);
}
.btn-ghost.dark {
  background: transparent;
  border-color: rgba(11, 26, 42, 0.28);
  color: var(--ink);
}
.btn-ghost.dark:hover {
  border-color: var(--ink);
  background: rgba(11, 26, 42, 0.04);
}

/* —— Sections —— */
.section {
  padding: clamp(72px, 11vh, 120px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--metal);
  font-weight: 500;
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.section-lede {
  margin: 0 0 40px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 16px;
}

/* —— Pain —— */
.pain {
  background: #fff;
  border-top: 1px solid var(--line);
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.pain-item {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}
.pain-item:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}
.pain-item:nth-child(even) {
  padding-left: 32px;
}

.pain-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pain-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.pain-item .solve {
  margin-top: 14px;
  color: var(--sea-deep);
  font-weight: 500;
}

/* —— Pipeline flow —— */
.pipeline {
  background:
    linear-gradient(180deg, #0d2430 0%, #123743 55%, #0f4d54 100%);
  color: #e8f1f3;
}

.pipeline .eyebrow { color: rgba(232, 241, 243, 0.55); }
.pipeline .section-lede { color: rgba(232, 241, 243, 0.72); }
.pipeline h2 { color: #f4fafb; }

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

.flow li {
  position: relative;
  padding: 22px 20px 8px 0;
  border-top: 1px solid rgba(232, 241, 243, 0.28);
  display: grid;
  gap: 8px;
  animation: flow-in 0.7s ease both;
}
.flow li:nth-child(2) { animation-delay: 0.08s; }
.flow li:nth-child(3) { animation-delay: 0.16s; }
.flow li:nth-child(4) { animation-delay: 0.24s; }

.flow li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9fd0d4;
  box-shadow: 0 0 0 0 rgba(159, 208, 212, 0.45);
  animation: node-pulse 2.8s ease-in-out infinite;
}

.flow li + li {
  padding-left: 22px;
}
.flow li + li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(232, 241, 243, 0.16);
}

.flow span {
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(159, 208, 212, 0.9);
}

.flow strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.flow em {
  font-style: normal;
  font-size: 13px;
  color: rgba(232, 241, 243, 0.62);
  line-height: 1.5;
}

/* —— Capabilities —— */
.capabilities {
  background: var(--foam);
  border-top: 1px solid var(--line);
}

.mod-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.mod {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.mod-tag {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--metal);
}

.mod h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mod-line {
  margin: 0;
  color: var(--sea-deep);
  font-size: 15px;
  max-width: 28em;
}

.mod ul {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.mod li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.mod li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--sea);
}

.mod-emotion {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 4px;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* —— Trust —— */
.trust {
  background: #fff;
  border-top: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 40px 56px;
  align-items: start;
}

.trust-points {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.trust-points li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.trust-points strong {
  font-size: 16px;
  letter-spacing: 0.03em;
}

.trust-points span {
  font-size: 14px;
  color: var(--ink-soft);
}

/* —— Start —— */
.start {
  background:
    linear-gradient(180deg, #eef4f6 0%, #e2ecef 100%);
  border-top: 1px solid var(--line);
}

.start-inner {
  max-width: 720px;
}

.steps {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.steps span {
  font-family: var(--font-brand);
  color: var(--sea);
  letter-spacing: 0.1em;
}

/* —— Footer —— */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px) 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  background: var(--foam);
}

.foot a {
  color: var(--sea-deep);
  border-bottom: 1px solid transparent;
}
.foot a:hover { border-color: var(--sea); }

/* —— Motion —— */
@keyframes rise {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

@keyframes grid-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-1%, -0.6%, 0); }
}

@keyframes route-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -220; }
}

@keyframes node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes flow-in {
  from { transform: translateY(10px); opacity: 0.35; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid, .route, .nodes circle, .hero-copy, .flow li, .flow li::before {
    animation: none !important;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .pain-list,
  .flow,
  .mod,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .pain-item:nth-child(odd),
  .pain-item:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
  }

  .flow li + li {
    padding-left: 0;
  }
  .flow li + li::after { display: none; }

  .mod-emotion { grid-column: auto; }

  .brand { white-space: normal; }
}

@media (max-width: 640px) {
  .top-nav a:not(.top-login) { display: none; }
  .hero { padding-top: 88px; }
  .section-lede { margin-bottom: 28px; }
}
