:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0e1526;
  --muted: #5b6478;
  --line: rgba(15, 23, 42, 0.09);
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --dark: #0b1020;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 70px -28px rgba(38, 32, 120, 0.35);
  --container: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(79, 70, 229, 0.09);
  color: var(--brand);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(79, 70, 229, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(79, 70, 229, 0.75);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(15, 23, 42, 0.4);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.9);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-sub {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  border: 1px solid rgba(79, 70, 229, 0.28);
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: #33405a;
}
.nav-links > a:not(.btn) {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--brand); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 88px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  width: 720px; height: 720px;
  top: -320px; right: -180px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: #3f4b66;
  box-shadow: var(--shadow-sm);
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--brand) 10%, var(--brand-2) 52%, #0ea5e9 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 540px;
  font-size: 17px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 44px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #1e1b4b, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual { position: relative; }
.visual-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, #e6e9ff, #f3ecff);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.visual-frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}
.visual-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 18px 44px -22px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { display: block; font-size: 12px; color: var(--muted); }
.float-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand);
  flex: none;
}
.float-icon.accent { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.float-icon svg { width: 20px; height: 20px; }
.float-card-a { top: 8%; left: -34px; }
.float-card-b { bottom: 9%; right: -26px; animation-delay: -3s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 247, 251, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.22);
}
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.14));
  color: var(--brand);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Module table ---------- */
.module-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.module-row {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr 0.5fr;
  gap: 20px;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease);
}
.module-row:last-child { border-bottom: 0; }
.module-row:not(.module-head):hover { background: rgba(79, 70, 229, 0.035); }
.module-head {
  background: rgba(15, 23, 42, 0.03);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.module-name { font-weight: 700; font-size: 15px; }
.module-name em {
  font-style: normal;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.module-perms { display: flex; flex-wrap: wrap; gap: 7px; }
.module-perms b {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.tag {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-live { background: rgba(16, 185, 129, 0.12); color: #047857; }
.tag-soon { background: rgba(100, 116, 139, 0.13); color: #475569; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 14px;
}
.step::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.28);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 17px; margin-bottom: 9px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Security ---------- */
.section-dark {
  background:
    radial-gradient(900px 420px at 82% 8%, rgba(124, 58, 237, 0.34), transparent 66%),
    radial-gradient(700px 380px at 8% 92%, rgba(6, 182, 212, 0.18), transparent 62%),
    var(--dark);
  color: #e8ebf5;
}
.section-dark .eyebrow { color: #a5b4fc; }
.section-dark .section-head p { color: rgba(232, 235, 245, 0.68); }
.security-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.security-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.security-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14.5px;
}
.security-list strong { color: #fff; font-size: 14.5px; }
.security-list span { color: rgba(232, 235, 245, 0.66); }
.security-visual img {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq[open] { border-color: rgba(79, 70, 229, 0.25); box-shadow: var(--shadow-lg); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
  flex: none;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 92%;
}

/* ---------- CTA ---------- */
.cta { padding: 20px 0 96px; }
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 44px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(6, 182, 212, 0.28), transparent 60%),
    linear-gradient(120deg, #312e81, #4f46e5 55%, #7c3aed);
  color: #fff;
  box-shadow: 0 40px 90px -40px rgba(49, 46, 129, 0.7);
}
.cta h2 { font-size: clamp(23px, 2.7vw, 31px); font-weight: 800; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.cta-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.cta-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.62); }
.cta-form input:focus {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.2);
}
.cta-form .btn-primary {
  background: #fff;
  color: #4338ca;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
}
.form-msg {
  grid-column: 1 / -1;
  min-height: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-note { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 340px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-links h4 { font-size: 13px; letter-spacing: 0.08em; color: #7c869c; text-transform: uppercase; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 14px; color: #33405a; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #7c869c;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .security-grid,
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero { padding-top: 34px; }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .visual-frame { transform: none; }
  .float-card-a { left: -8px; }
  .float-card-b { right: -4px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .security-visual { max-width: 480px; }
  .cta-inner { padding: 38px 30px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 11px 10px; border-radius: 10px; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links > a:not(.btn):hover { background: rgba(79, 70, 229, 0.06); }
  .nav-links .btn { margin-top: 6px; }

  .section { padding: 72px 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .module-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .module-head { display: none; }
  .tag { justify-self: start; }
  .security-list li { grid-template-columns: 1fr; gap: 4px; }
  .faq p { max-width: 100%; }
  .cta-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card { padding: 10px 13px; }
  .float-card small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
