:root {
  --brand: #7c5cfc;
  --brand-2: #a855f7;
  --brand-3: #6366f1;
  --ink: #1f2330;
  --ink-2: #4b5160;
  --muted: #8b91a0;
  --bg: #ffffff;
  --bg-soft: #f7f6fd;
  --line: #eceaf5;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.logo .dot { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: inline-block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,92,252,.3); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 84px 0 64px; text-align: center;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(124,92,252,.12), transparent); }
.hero .badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 46px; line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.5px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 660px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: 32px; text-align: center; margin: 0 0 12px; letter-spacing: -0.5px; }
.section .lead { text-align: center; color: var(--ink-2); max-width: 640px; margin: 0 auto 44px; font-size: 16px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(31,35,48,.08); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(124,92,252,.12), rgba(168,85,247,.12)); font-size: 22px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Steps */
.steps { counter-reset: s; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; }
.step .n { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.step h4 { margin: 6px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Compliance banner */
.compliance { background: linear-gradient(135deg, #fff7ed, #fef2f2); border: 1px solid #fed7aa;
  border-radius: var(--radius); padding: 26px 28px; }
.compliance h3 { margin: 0 0 10px; color: #b45309; }
.compliance ul { margin: 0; padding-left: 20px; color: #9a3412; font-size: 15px; }
.compliance li { margin: 6px 0; }

/* Notice (placeholder for license) */
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 14px 18px; color: #92400e; font-size: 14px; margin: 8px 0 0; }
.notice code { background: #fef3c7; padding: 1px 6px; border-radius: 6px; }

/* Footer */
.site-footer { background: #15131f; color: #c9c6d6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a { color: #b9b5c9; font-size: 14px; display: block; margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 22px;
  font-size: 13px; color: #8b88a0; }
.footer-bottom a { color: #b9b5c9; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.footer-meta span { font-size: 13px; }
.footer-meta strong { color: #e7e5f0; font-weight: 600; }

/* Legal pages */
.legal { padding: 56px 0; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15px; }
.legal .updated { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--ink-2); }

/* Misc */
.center { text-align: center; }
.mt { margin-top: 18px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--brand); font-size: 13px; font-weight: 600; margin: 4px 6px 4px 0; }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .section h2 { font-size: 26px; }
}
