:root {
  --blue: #3f82ef;
  --blue-2: #5b9cf7;
  --navy: #14224f;
  --ink: #0f1730;
  --muted: #5b6a86;
  --bg: #f6f9ff;
  --card: #ffffff;
  --line: #e6ecf7;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(31, 74, 160, 0.12);
  --shadow-sm: 0 8px 24px rgba(31, 74, 160, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

.grad {
  background: linear-gradient(120deg, var(--blue-2), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 130, 239, 0.35);
}
.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.block { display: flex; width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(246, 249, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn:hover { color: #fff; }
.lang-toggle {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, color 0.15s ease;
  min-width: 48px;
}
.lang-toggle:hover { transform: translateY(-2px); color: var(--blue); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) clamp(16px, 5vw, 64px) 80px; }
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(60% 80% at 75% 10%, rgba(91, 156, 247, 0.28), transparent 60%),
    radial-gradient(50% 70% at 15% 20%, rgba(63, 130, 239, 0.20), transparent 60%);
  filter: blur(6px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin: 22px 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* Hero mock */
.hero-art { display: flex; justify-content: center; }
.mock {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: rotate(1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-10px); } }
.mock-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.mock-head .badge {
  margin-left: auto; background: var(--blue); color: #fff;
  min-width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.mock-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #f7faff; }
.thumb { width: 64px; height: 40px; border-radius: 8px; flex: none; }
.thumb-a { background: linear-gradient(135deg, #6c5ce7, #3f82ef); }
.thumb-b { background: linear-gradient(135deg, #00b894, #3f82ef); }
.thumb-c { background: linear-gradient(135deg, #fd79a8, #6c5ce7); }
.mock-item .meta { flex: 1; min-width: 0; }
.mock-item .meta b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-item .meta small { color: var(--muted); font-size: 12px; }
.mock-item .dl {
  border: 0; background: var(--blue); color: #fff; font-weight: 600;
  padding: 7px 12px; border-radius: 9px; font-size: 13px; cursor: pointer; flex: none;
}

/* Formats strip */
.formats {
  max-width: 1160px; margin: 0 auto; padding: 8px clamp(16px, 5vw, 64px) 8px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  padding: 7px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Sections */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 64px); }
.section.alt { background: linear-gradient(180deg, #eef4ff, #f6f9ff); max-width: none; }
.section.alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(120deg, var(--blue-2), var(--blue)); color: #fff;
  font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column;
}
.price-card.featured { border-color: rgba(63, 130, 239, 0.4); box-shadow: var(--shadow); }
.ribbon {
  position: absolute; top: 18px; right: 18px; background: linear-gradient(120deg, var(--blue-2), var(--blue));
  color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.tier { font-weight: 700; color: var(--navy); font-size: 16px; }
.amount { font-size: 40px; font-weight: 800; margin: 8px 0 2px; }
.per { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { font-size: 15px; }
.price-card li.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }

/* Install */
.install-box {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); text-align: center;
}
.install-box ol { text-align: left; color: var(--ink); line-height: 2; margin: 0 0 20px; padding-left: 22px; }
.install-box code { background: #eef4ff; color: var(--blue); padding: 2px 8px; border-radius: 6px; font-size: 14px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 20px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 700; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 16px; }

/* Final CTA */
.final-cta {
  text-align: center; color: #fff; padding: clamp(56px, 8vw, 96px) 24px;
  background: linear-gradient(120deg, var(--navy), var(--blue));
}
.final-cta h2 { font-size: clamp(24px, 3.6vw, 40px); font-weight: 800; max-width: none; white-space: nowrap; margin: 0 auto 14px; }
.version-badge { display: inline-block; margin-left: 8px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 12px; vertical-align: middle; }
.site-version { margin-top: 10px !important; opacity: .72; font-size: 12px; }
.final-cta p { opacity: 0.9; margin: 0 0 28px; font-size: 17px; }

/* Footer */
.footer {
  padding: 40px clamp(16px, 5vw, 64px); text-align: center; color: var(--muted); font-size: 14px;
  background: #0f1730; color: #9fb0cf;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.foot-brand img { border-radius: 6px; }
.footer p { max-width: 60em; margin: 0 auto; }

/* Privacy policy */
.privacy-policy { max-width: 900px; color: var(--ink); }
.privacy-policy h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.privacy-policy h2 { font-size: 22px; margin: 32px 0 10px; }
.privacy-policy p, .privacy-policy li { color: var(--muted); }
.privacy-policy li { margin: 8px 0; }
.privacy-policy a { color: var(--blue); text-decoration: underline; }
.policy-updated { font-size: 14px; }
.privacy-policy hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .price-grid { justify-content: stretch; }
  .final-cta h2 { font-size: clamp(15px, 4.2vw, 24px); }
}
