:root {
  --brand-1: #7c3aed;
  --brand-2: #d946ef;
  --brand-3: #ec4899;
  --brand-soft: #f5f3ff;
  --ink: #1c1a2e;
  --muted: #6b7280;
  --line: #ece9f5;
  --bg: #ffffff;
  --bg-alt: #faf9ff;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(28, 26, 46, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(124, 58, 237, 0.35);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: linear-gradient(100deg, var(--brand-1), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--brand-1), var(--brand-3));
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(236, 72, 153, .5); }
.btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: #ddd6fe; }
.btn--light { background: #fff; color: var(--brand-1); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-flex; }
.brand__text { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__text em { font-style: normal; color: var(--brand-3); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .18s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero__glow--a { width: 460px; height: 460px; background: #c4b5fd; top: -140px; right: -80px; }
.hero__glow--b { width: 380px; height: 380px; background: #fbcfe8; bottom: -180px; left: -100px; opacity: .55; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-1);
  background: #fff;
  border: 1px solid #e9e4ff;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; margin: 20px 0 18px; }
.hero__desc { font-size: 17px; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.hero__trust li { position: relative; padding-left: 18px; }
.hero__trust li::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(100deg, var(--brand-1), var(--brand-3));
}

/* Dashboard mock */
.hero__visual { perspective: 1200px; }
.dash {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -24px rgba(88, 28, 135, .35);
  padding: 18px;
  transform: rotateY(-8deg) rotateX(4deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-10px); } }
.dash__head { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e5e1ef; }
.dash__title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.dash__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.kpi { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.kpi__label { font-size: 11px; color: var(--muted); }
.kpi__num { font-size: 22px; font-weight: 800; color: var(--ink); }
.kpi__delta { font-size: 11px; font-weight: 600; }
.kpi__delta.up { color: #10b981; }
.dash__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 6px 4px 0; }
.dash__chart span {
  flex: 1; height: var(--h); border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, var(--brand-2), #c4b5fd);
  opacity: .9;
}
.dash__row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.tag--live { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }

/* Stats */
.stats { padding: 10px 0 40px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; background: linear-gradient(100deg, var(--brand-1), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 12px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 16px; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #e6ddfb; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--brand-1);
  background: linear-gradient(135deg, #f3e8ff, #fce7f3);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Platforms */
.plat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.plat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plat__badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-3);
  background: #fdf2f8; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.plat h3 { font-size: 17px; margin-bottom: 8px; }
.plat p { color: var(--muted); font-size: 14px; }

/* Ecosystem */
.eco { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eco__copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 12px 0 16px; }
.eco__copy > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.eco__panel { display: grid; gap: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13px; font-weight: 600; color: var(--brand-1); background: #f5f3ff; border: 1px solid #e9e4ff; border-radius: 999px; padding: 7px 14px; }
.code { background: #1c1a2e; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -22px rgba(28,26,46,.6); }
.code__bar { display: flex; gap: 6px; padding: 12px 14px; background: #262238; }
.code__bar .dot { background: #4b4666; }
.code pre { margin: 0; padding: 18px 20px; color: #d7d2ea; font-size: 13px; line-height: 1.7; overflow-x: auto; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.code .c-key { color: #f0abfc; }
.code .c-cmt { color: #7b7691; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.industry {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 26px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}
.industry:hover { transform: translateY(-4px); color: var(--brand-1); border-color: #ddd6fe; }

/* CTA */
.cta { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--brand-1), var(--brand-3)); color: #fff; }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(255,255,255,.22), transparent 60%); }
.cta__inner { position: relative; padding: 82px 0; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.cta p { margin: 16px auto 0; max-width: 560px; color: rgba(255,255,255,.88); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 16px; }
.cta__hint { font-size: 13px; color: rgba(255,255,255,.75); }

/* Footer */
.footer { background: #14121f; color: #b9b4cc; padding: 46px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__brand .brand__text { color: #fff; }
.footer__brand p { font-size: 13px; color: #8b86a3; margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { font-size: 14px; transition: color .18s ease; }
.footer__links a:hover { color: #fff; }
.footer__meta { font-size: 13px; color: #8b86a3; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .dash { transform: none; animation: none; }
  .section { padding: 70px 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .eco { grid-template-columns: 1fr; gap: 40px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .25s ease, padding .25s ease;
  }
  .nav.is-open .nav__links { max-height: 360px; opacity: 1; padding: 12px 24px 20px; }
  .nav__links a { padding: 10px 0; }
  .nav__links a.btn { text-align: center; margin-top: 8px; }
  .nav__toggle { display: flex; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dash { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
