:root {
  --brand-primary: #714cb6;
  --brand-primary-light: #cbb7fb;
  --brand-primary-dark: #15095D;
  --text-primary: #292827;
  --text-secondary: #696363;
  --border: #dcd7d3;
  --border-soft: #e0dce6;
  --border-muted: #e8e5e3;
  --bg: #ffffff;
  --bg-tint: #fdfcff;
  --bg-tint-strong: #faf8ff;
  --bg-tint-max: #f5f3ff;
  --green: #2f7a62;
  --amber: #b98316;
  --ink: #1f1d1b;
  --shadow: 0 20px 48px rgba(21, 9, 93, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(840px, calc(100% - 48px));
}

.section-band {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border-muted);
  box-shadow: 0 8px 24px rgba(21, 9, 93, 0.06);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img {
  width: 214px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--text-secondary);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--brand-primary);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-cta {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(113, 76, 182, 0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: var(--bg);
  padding: 10px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
}

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--brand-primary);
  color: var(--brand-primary-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.hero .eyebrow {
  min-height: 34px;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left-width: 4px;
  font-size: 18px;
  line-height: 1.25;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.12;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.22;
  font-weight: 700;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.hero-lead,
.section-heading p,
.narrow p,
.two-col p,
.final-card p {
  color: var(--text-secondary);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.button-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(113, 76, 182, 0.2);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--brand-primary-dark);
}

.button-secondary {
  color: var(--brand-primary-dark);
  background: #fff;
  border: 1px solid var(--border-soft);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-visual {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.problem-band {
  background: var(--bg);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-visual {
  margin-bottom: 48px;
  text-align: center;
}

.section-visual img {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 9, 93, 0.08);
}

.security-row {
  align-items: stretch;
}

.security-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.security-visual img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.asset-card {
  min-height: 254px;
  padding: 24px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-soft);
  box-shadow: 0 12px 32px rgba(21, 9, 93, 0.08);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--brand-primary-dark);
  background: var(--bg-tint-max);
  font-weight: 700;
}

.asset-card p,
.security-list span,
.topology-card p,
.runtime-card span,
.site-footer p,
.site-footer a {
  color: var(--text-secondary);
}

.split-band,
.deploy-band {
  background: var(--bg-tint);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 58px;
  align-items: center;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
}

.security-list strong {
  color: var(--brand-primary-dark);
}

.topology {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: stretch;
}

.topology-card {
  min-height: 188px;
  padding: 26px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: #fff;
}

.topology-card.accent {
  border-color: var(--border-soft);
  background: var(--bg-tint-strong);
}

.topology-line {
  position: relative;
}

.topology-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand-primary-light);
}

.edge-band {
  background: #fff;
}

.reverse {
  grid-template-columns: 1fr 0.95fr;
}

.edge-panel {
  min-height: 420px;
  padding: 32px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, rgba(203, 183, 251, 0.24), transparent 34%),
    linear-gradient(180deg, #fff, var(--bg-tint-strong));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
}

.mini-node {
  min-height: 92px;
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(21, 9, 93, 0.06);
}

.mini-node.large {
  min-height: 142px;
  grid-column: span 3;
  color: #fff;
  background: var(--brand-primary-dark);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.runtime-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.runtime-card {
  min-height: 156px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
}

.runtime-card strong {
  display: block;
  margin-top: 22px;
  font-size: 28px;
}

.runtime-card.muted {
  background: var(--bg-tint-max);
}

.final-cta {
  background: var(--brand-primary-dark);
  color: #fff;
}

.final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.final-card .eyebrow,
.final-card p {
  color: rgba(255, 255, 255, 0.78);
}

.final-card .eyebrow {
  border-left-color: rgba(255, 255, 255, 0.72);
}

.final-card h2 {
  margin-bottom: 12px;
  color: #fff;
}

.final-card .button-primary {
  background: #fff;
  color: var(--brand-primary-dark);
  box-shadow: none;
}

.site-footer {
  padding: 56px 0;
  background: #fbfaf9;
  border-top: 1px solid var(--border-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 44px;
}

.footer-logo {
  width: 210px;
  margin-bottom: 16px;
}

.footer-legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-muted);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-legal a:hover {
  color: var(--brand-primary);
}

.site-footer h4 {
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

@media (max-width: 980px) {
  .site-nav,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.is-open {
    position: absolute;
    top: 68px;
    left: 24px;
    right: 24px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    padding: 10px 8px;
  }

  .hero-grid,
  .two-col,
  .reverse {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .asset-grid,
  .runtime-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .topology {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topology-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1160px);
  }

  .section-band {
    padding: 68px 0;
  }

  .nav-wrap {
    height: 62px;
  }

  .brand img {
    width: 172px;
  }

  .site-nav.is-open {
    top: 62px;
    left: 14px;
    right: 14px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .eyebrow,
  .hero .eyebrow {
    min-height: 24px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left-width: 3px;
    font-size: 13px;
  }

  .hero-lead,
  .section-heading p,
  .narrow p,
  .two-col p,
  .final-card p {
    font-size: 16px;
  }

  .asset-grid,
  .runtime-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .security-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .edge-panel {
    min-height: 360px;
    grid-template-columns: 1fr 1fr;
  }

  .mini-node.large {
    grid-column: span 2;
  }

  .final-card {
    display: block;
  }

  .final-card .button {
    margin-top: 24px;
  }
}
