:root {
  --brand: #7C3AED;
  --brand-2: #EC4899;
  --grad: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --brand-soft: #F5F3FF;
  --pink-soft: #FDF2F8;
  --bg: #FCFAFF;
  --bg2: #F6F2FC;
  --card: #FFFFFF;
  --ink: #1E122B;
  --ink2: #3E2954;
  --muted: #6B5E78;
  --line: #EADBFA;
  --ok: #059669;
  --r: 16px;
  --r-s: 9px;
  --sh: 0 8px 26px rgba(124, 58, 237, 0.08);
  --sh-h: 0 20px 45px rgba(124, 58, 237, 0.16);
  --wrap: 1180px;
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink2); background: var(--bg); line-height: 1.75; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: #5B21B6; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 850; }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 850; }
h3 { font-size: 19px; font-weight: 750; }
p { margin: 0 0 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sec { padding: 86px 0; }
.sec.alt { background: var(--bg2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.sec-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.sec-head .lead { color: var(--muted); font-size: 16.5px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 30px;
  border-radius: 999px; background: var(--grad); color: #fff !important; font-weight: 700;
  font-size: 15px; border: 0; cursor: pointer; box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
  transition: all .2s; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124, 58, 237, 0.38); filter: saturate(1.08); }
.btn.ghost {
  background: transparent; color: var(--brand) !important; border: 1.6px solid rgba(124, 58, 237, 0.4); box-shadow: none;
}
.btn.ghost:hover { background: rgba(124, 58, 237, 0.08); border-color: var(--brand); }
.btn.sm { padding: 9px 22px; font-size: 13.5px; min-height: 40px; }

/* Header */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--hdr);
  background: rgba(252, 250, 255, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 219, 250, 0.8);
}
.hdr-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.brand b { font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand span { font-size: 11.5px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px; font-weight: 600; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav > a {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink2); transition: all .2s;
}
.nav > a:hover, .nav > a.active { background: rgba(124, 58, 237, 0.08); color: var(--brand); }

/* Hero */
.hero {
  position: relative; padding: calc(var(--hdr) + 56px) 0 74px; overflow: hidden;
  background: radial-gradient(1100px 520px at 12% -6%, var(--brand-soft) 0%, transparent 62%),
              radial-gradient(900px 480px at 92% 8%, var(--pink-soft) 0%, transparent 58%),
              var(--bg);
}
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; position: relative; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(124, 58, 237, 0.25); color: var(--brand);
  font-size: 13px; font-weight: 700; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08); margin-bottom: 18px;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.hero-acts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats b { font-size: 26px; font-weight: 850; color: var(--ink); line-height: 1.1; display: block; }
.hero-stats b i { font-size: 14px; font-style: normal; margin-left: 2px; color: var(--brand); }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* Right Demo Card */
.demo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--sh-h); position: relative;
}
.demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.demo-top b { font-size: 15px; color: var(--ink); }
.demo-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.node-pill {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.node-pill.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.node-ping { font-weight: 800; color: var(--ok); font-size: 12.5px; }
.demo-gauge {
  background: linear-gradient(135deg, var(--bg2) 0%, #fff 100%);
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 20px; text-align: center; margin-bottom: 18px;
}
.gauge-num { font-size: 38px; font-weight: 900; color: var(--brand); line-height: 1; }
.gauge-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.demo-read { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; margin-bottom: 20px; }
.demo-read-box { background: var(--bg2); padding: 10px; border-radius: 6px; }
.demo-read-box span { color: var(--muted); display: block; font-size: 11.5px; }
.demo-read-box b { color: var(--ink); font-weight: 750; font-size: 14px; }
.demo-btn {
  display: block; width: 100%; height: 46px; border-radius: 999px;
  background: var(--grad); color: #fff !important; font-size: 14.5px; font-weight: 700;
  text-align: center; line-height: 46px; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* Stats Bar */
.stats { padding: 44px 0; background: var(--bg2); border-block: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-in b { font-size: 32px; font-weight: 850; color: var(--brand); line-height: 1.1; display: block; margin-bottom: 4px; }
.stats-in b i { font-size: 14px; font-style: normal; margin-left: 2px; }
.stats-in span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* 6 Features Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 24px; box-shadow: var(--sh); transition: all .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #C084FC; box-shadow: var(--sh-h); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* 4 Protocols */
.proto-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px;
}
.proto-item {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 22px 18px; text-align: left;
}
.proto-item span { font-size: 12px; font-weight: 800; color: var(--brand); text-transform: uppercase; }
.proto-item h4 { font-size: 16px; font-weight: 800; margin: 4px 0 6px; color: var(--ink); }
.proto-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Nodes Section */
.node-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.node-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; display: flex; justify-content: space-between; align-items: center;
}
.node-card-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.node-card-ping { font-weight: 800; font-size: 13.5px; color: var(--ok); }

/* 6 Scenarios Grid */
.scen-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--sh); transition: all .25s ease;
}
.scen-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.scen-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.scen-card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* 3-Step SOP */
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 24px; position: relative;
}
.step-idx {
  font-size: 32px; font-weight: 900; color: var(--brand); opacity: 0.8; margin-bottom: 10px;
}
.step-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }

/* FAQ */
.faq-box { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq-item summary {
  padding: 18px 24px; font-size: 16px; font-weight: 750; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: bold; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 24px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.75;
  border-top: 1px solid var(--line); padding-top: 14px;
}

/* Footer */
footer.ftr {
  background: #110B18; color: #9C8EB0; padding: 60px 0 30px; font-size: 13.5px;
}
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.ftr-col h4 { color: #fff; font-size: 15px; font-weight: 750; margin-bottom: 16px; }
.ftr-col p { line-height: 1.75; }
.ftr-col li { margin-bottom: 10px; list-style: none; }
.ftr-col a { color: #9C8EB0; transition: color .2s; }
.ftr-col a:hover { color: #F472B6; }
.ftr-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px;
  text-align: center; color: #6D5E82; font-size: 12.5px;
}

@media (max-width: 992px) {
  .hero-in { grid-template-columns: 1fr; }
  .grid-3, .proto-row, .scen-grid { grid-template-columns: 1fr; }
  .stats-in, .node-grid { grid-template-columns: repeat(2, 1fr); }
  .ftr-in { grid-template-columns: 1fr; }
  .nav { display: none; }
}
