:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0b1020;
  --muted: #5b6478;
  --indigo: #4f46e5;
  --blue: #2563eb;
  --line: rgba(11, 16, 32, 0.08);
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.04), 0 4px 16px rgba(11, 16, 32, 0.04);
  --shadow-md: 0 8px 30px rgba(11, 16, 32, 0.08);
  --r: 16px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(79, 70, 229, 0.07), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 22%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(79, 70, 229, 0.38); }
.btn-ghost {
  color: var(--ink); background: var(--surface);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: 0.06em; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 116px 0 96px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.hero-title {
  margin: 28px 0 24px; font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(120deg, var(--indigo), var(--blue) 60%, #7c8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin: 0 auto; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 24px 0 64px; text-align: center; }
.marquee-label { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 64px; white-space: nowrap; animation: scroll 34s linear infinite; }
.marquee-track span { font-size: 22px; font-weight: 600; color: rgba(11, 16, 32, 0.32); letter-spacing: 0.02em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 14px; }
.section-sub { color: var(--muted); font-size: 17px; }

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

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 22px;
  color: var(--indigo);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(37, 99, 235, 0.1));
}
.icon svg { width: 24px; height: 24px; }
.card h3, .step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p, .step p { color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps-section { background: linear-gradient(180deg, transparent, rgba(79, 70, 229, 0.035)); }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 38px 30px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: block; font-size: 15px; font-weight: 700; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--indigo), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Stats ---------- */
.stats-section {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  border-radius: 28px; max-width: var(--maxw); margin: 0 auto;
  width: calc(100% - 56px);
}
.stat { text-align: center; color: #fff; }
.stat-num { display: block; font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 15px; color: rgba(255, 255, 255, 0.78); }

/* ---------- CTA ---------- */
.cta-section { text-align: center; }
.cta-inner { max-width: 720px; }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
.cta-inner p { color: var(--muted); font-size: 18px; margin: 16px 0 32px; }
.cta-inner .hero-actions { margin-top: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; }
.footer-copy { color: var(--muted); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .card:nth-child(2), .steps .step:nth-child(2) { transition-delay: .08s; }
.features .card:nth-child(3), .steps .step:nth-child(3) { transition-delay: .16s; }
.features .card:nth-child(4) { transition-delay: .24s; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  border: 1.5px solid rgba(79, 70, 229, 0.55); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 999;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease);
  mix-blend-mode: multiply;
}
.cursor.hover { width: 46px; height: 46px; background: rgba(79, 70, 229, 0.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .features, .steps, .stats { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
