:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-card: #ffffff;
  --ink: #0f1420;
  --ink-soft: #5a6474;
  --line: #e6e9f0;
  --accent: #3b5bfd;
  --accent-soft: #eef1ff;
  --accent-ink: #2436b8;
  --radius: 14px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 17px;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b5bfd, #7c3aed);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(59, 91, 253, 0.24); }
.btn-primary:hover { background: #2f4ce8; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd5e3; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  padding: 82px 0 64px;
  background:
    radial-gradient(900px 380px at 50% -120px, #eaeefe 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid #dde3ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 760;
}

.lede {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--ink-soft);
  font-size: 17.5px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.trust {
  margin-top: 30px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 13.5px;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }

/* ---------- sections ---------- */

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 {
  font-size: clamp(24px, 3.2vw, 33px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 720;
}
.sec-head p { margin: 0; color: var(--ink-soft); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.8px; }

.ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }

.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured { border-color: #c3cdfd; box-shadow: var(--shadow); }
.plan.featured::after {
  content: "Most popular";
  position: absolute;
  top: -11px; left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan h3 { margin: 0 0 4px; font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.price { font-size: 38px; font-weight: 760; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.plan .credits { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 14.3px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 7px;
  border-left: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a;
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }

.note { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-top: 20px; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num {
  counter-increment: s;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.step .num::before { content: counter(s); }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.6px; }

/* ---------- faq ---------- */

.faq { max-width: 760px; margin: 0 auto; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.4px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--ink-soft); font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 14.6px; }

/* ---------- cta band ---------- */

.band {
  background: linear-gradient(135deg, #1b2a6b, #3b5bfd 55%, #7c3aed);
  color: #fff;
  border-radius: 20px;
  padding: 46px 40px;
  text-align: center;
}
.band h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.band p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.82); }
.band .btn-ghost { background: #fff; border-color: #fff; color: #1b2a6b; }

/* ---------- legal pages ---------- */

.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); text-align: left; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 34px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: #333c4d; font-size: 15.2px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0;
}
.legal .callout p { margin: 0; font-size: 14.8px; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 46px 0 34px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.foot-grid a { display: block; color: #333c4d; margin-bottom: 8px; font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { color: var(--ink-soft); font-size: 13.8px; margin: 10px 0 0; max-width: 300px; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 860px) {
  .grid-3, .plans, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 44px; }
  section { padding: 56px 0; }
  .band { padding: 36px 22px; }
}
