:root {
  --bg: #f7f8fb;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-2: #2563eb;
  --brand-ink: #3730a3;
  --accent: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(79, 70, 229, .35);
  --maxw: 1120px;
  --grad: linear-gradient(120deg, #6366f1, #2563eb 70%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--brand-ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 251, .8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; }
.brand__mark { color: var(--brand); display: inline-flex; }
.brand__name { font-weight: 600; letter-spacing: -.01em; }
.brand__name strong { color: var(--brand); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a:not(.btn) { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--brand); }
.nav__cta { margin-left: 6px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 64px 0 120px; background:
    radial-gradient(1200px 500px at 85% -10%, rgba(99,102,241,.16), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(37,99,235,.12), transparent 55%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 14px 0 16px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 18px; color: var(--ink-soft); margin: 0 0 26px; max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 26px 0 0; color: var(--ink-soft); font-size: 14px; }
.hero__ticks li { position: relative; padding-left: 22px; }
.hero__ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--bg); clip-path: ellipse(75% 100% at 50% 100%); }

.badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2); padding: 5px 12px; border-radius: 999px; }

/* ===== Trust strip ===== */
.trust { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 18px 22px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.trust__sep { color: var(--ink-faint); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin: 0 0 12px; font-weight: 800; }
.section__lead { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* ===== Grid + cards ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: 14px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(99,102,241,.12); color: var(--brand); }

/* ===== Steps ===== */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.step__num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.step h3 { margin: 2px 0 2px; font-size: 16.5px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.how__media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.how__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery__item img { aspect-ratio: 16 / 10; object-fit: cover; }
.gallery__item figcaption { padding: 12px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }

/* ===== Pricing ===== */
.price { display: flex; flex-direction: column; position: relative; }
.price--featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price__ribbon { position: absolute; top: 16px; right: 16px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price__name { margin: 0; font-size: 22px; }
.price__tag { margin: 2px 0 14px; color: var(--ink-faint); font-size: 14px; }
.price__amount { font-size: 34px; font-weight: 800; margin: 0 0 18px; line-height: 1.1; }
.price__period { display: block; font-size: 13px; font-weight: 600; color: var(--ink-faint); letter-spacing: .02em; margin-top: 4px; }
.price__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; flex: 1; }
.price__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.price__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.price__note { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); text-align: center; }

/* ===== Prose (privacy) ===== */
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow-sm); }
.prose h3 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -.01em; }
.prose h3:first-of-type { margin-top: 6px; }
.prose p { color: var(--ink-soft); margin: 0 0 12px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 4px 0; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { content: "–"; }
.faq__body { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }
.faq__body p { margin: 0; }

/* ===== CTA ===== */
.cta { padding: 80px 0; background: var(--grad); color: #fff; }
.cta__inner { text-align: center; }
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 10px; letter-spacing: -.02em; }
.cta p { margin: 0 0 26px; font-size: 18px; opacity: .92; }
.cta .btn--primary { background: #fff; color: var(--brand-ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); }

/* ===== Footer ===== */
.footer { background: #0f172a; color: #cbd5e1; padding: 54px 0 30px; }
.footer__grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name strong { color: #a5b4fc; }
.footer__tag { color: #94a3b8; margin: 10px 0 0; font-size: 14px; max-width: 26ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: #cbd5e1; font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #7c8aa0; font-size: 12.5px; }
.footer__legal p { margin: 6px 0; }

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

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 10px 16px 18px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links a:not(.btn) { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 12px 0 0; }
  .grid--3, .grid--2, .gallery, .how__media { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .prose { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
