:root {
  --ink: #0f172a;
  --muted: #5f6b85;
  --line: #e5e8f2;
  --brand: #667eea;
  --brand-deep: #5468d4;
  --brand-ink: #4353b8;
  --accent: #14b8a6;
  --accent-ink: #0f766e;
  --warm: #f59e0b;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --panel: #ffffff;
  --radius: 16px;
  --shadow-md: 0 12px 32px -12px rgba(79, 70, 229, .18);
  --shadow-lg: 0 24px 64px -24px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible, .button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 232, 242, .9);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, .35);
  flex: none;
}
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}
nav a:hover, nav a.is-active { color: var(--brand-ink); background: #eef1fd; }
nav a.lang-switch { margin-left: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
nav a.lang-switch:hover { border-color: var(--brand); color: var(--brand-ink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30px -80px auto;
  height: 460px;
  background:
    radial-gradient(620px 320px at 18% 0%, rgba(102, 126, 234, .13), transparent 62%),
    radial-gradient(520px 280px at 88% 18%, rgba(20, 184, 166, .10), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef1fd;
  color: var(--brand-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .grad.nowrap { white-space: nowrap; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0; max-width: 34em; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(102, 126, 234, .55);
}
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(102, 126, 234, .62); }
.button.ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.button.light { background: #fff; border-color: transparent; color: var(--brand-ink); }
.button.light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(15, 23, 42, .35); }
.button.ghost-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.button.ghost-light:hover { background: rgba(255, 255, 255, .12); }

.formats { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--muted); font-size: 13px; }
.format-chips { display: inline-flex; gap: 6px; margin-left: 4px; }
.format-chips span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- product mockup ---------- */
.mockup { position: relative; }
.browser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #fafbfe;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #dfe3ee; }
.browser-bar .dot:nth-child(1) { background: #ff5f57; }
.browser-bar .dot:nth-child(2) { background: #febc2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }
.browser-bar .url {
  margin-left: 10px;
  flex: 1;
  max-width: 260px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.browser-view {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  min-height: 236px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfcff, #f4f6fc);
}
.sk-sidebar { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.sk-sidebar i { height: 8px; border-radius: 4px; background: #e3e7f3; }
.sk-main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sk-line { height: 9px; border-radius: 4px; background: #e3e7f3; }
.sk-line.w50 { width: 50%; }
.sk-line.w40 { width: 40%; }
.sk-line.w30 { width: 30%; }
.sk-card { width: 100%; height: 64px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sk-button {
  position: relative;
  margin-top: 2px;
  padding: 8px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, .16);
}
.marker {
  position: absolute;
  top: -13px;
  left: -13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  animation: pulse 2.4s infinite;
}
.callout {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}
.callout span { color: var(--muted); font-size: 12px; }
.steps-panel {
  position: relative;
  margin: -26px 18px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.step + .step { margin-top: 2px; }
.step b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef1fd;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}
.step.active { background: #f0fdfa; }
.step.active b { background: var(--accent); color: #fff; }
.step strong { display: block; font-size: 13.5px; }
.step span { color: var(--muted); font-size: 12px; }
.float-chip {
  position: absolute;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.chip-a { top: -16px; right: 28px; color: var(--brand-ink); }
.chip-b { top: 40%; left: -16px; color: var(--accent-ink); animation-delay: 1.4s; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, .38); }
  70% { box-shadow: 0 0 0 11px rgba(102, 126, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- sections ---------- */
.section { padding: 56px 0 4px; }
.section-title { font-size: 32px; letter-spacing: -.02em; margin: 0 0 10px; }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 28px; max-width: 40em; }
.how-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-grid article, .feature-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.how-grid article:hover, .feature-grid article:hover {
  transform: translateY(-3px);
  border-color: #d3d9f2;
  box-shadow: var(--shadow-md);
}
.how-grid h3, .feature-grid h3 { font-size: 17px; margin: 0 0 8px; }
.how-grid p, .feature-grid p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0; }
.num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px -6px rgba(102, 126, 234, .5);
}
.icon-tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef1fd;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.teal { background: #d7f5ef; color: var(--accent-ink); }
.icon-tile.amber { background: #fdeecd; color: #b45309; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  margin: 64px 0 4px;
  padding: 52px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #667eea, #5468d4 55%, #4a4fb0);
  color: #fff;
  text-align: center;
}
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta::before { width: 260px; height: 260px; top: -120px; right: -60px; }
.cta::after { width: 200px; height: 200px; bottom: -110px; left: -40px; }
.cta h2 { position: relative; font-size: 30px; letter-spacing: -.02em; margin: 0 0 10px; }
.cta p { position: relative; color: rgba(255, 255, 255, .86); font-size: 16px; margin: 0; }
.cta .actions { position: relative; justify-content: center; }

/* ---------- content pages ---------- */
.page-hero { max-width: 860px; margin: 0 auto; padding: 56px 0 26px; }
.page-hero h1 { font-size: 40px; letter-spacing: -.02em; margin: 0 0 12px; }
.page-hero p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0; }
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.content h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 18px; }
.content h2 { font-size: 20px; margin: 30px 0 10px; padding-left: 14px; border-left: 3px solid var(--brand); }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 16.5px; margin: 24px 0 8px; }
.content h4 { font-size: 15px; margin: 20px 0 6px; }
.content p, .content li { color: var(--muted); line-height: 1.75; }
.content ul, .content ol { padding-left: 22px; }
.content li + li { margin-top: 4px; }
.content a { color: var(--brand-ink); }
.content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: #eef1fd;
}
.content blockquote p { margin: 0; }
.content code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f6fc;
  font-size: .92em;
}
.content.legal h2 { font-size: 22px; }
.support-box {
  margin: 4px 0 24px;
  padding: 20px 22px;
  border: 1px solid #d3d9f2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f6ff, #f0fdfa);
}
.support-box h2 { margin-top: 0; border-left: none; padding-left: 0; }
.support-box p { margin: 8px 0; }

/* ---------- footer ---------- */
footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; }
.footer-brand .brand-mark { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.footer-nav { display: inline-flex; gap: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--brand-ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 44px; }
  .hero h1 { font-size: 38px; }
  .how-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { height: auto; padding: 14px 18px; flex-wrap: wrap; }
  main { padding: 0 18px 48px; }
  .hero h1 { font-size: 31px; }
  .section-title { font-size: 26px; }
  .how-grid, .feature-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 22px; }
  .cta h2 { font-size: 24px; }
  .page-hero h1 { font-size: 30px; }
  .content { padding: 24px 20px; }
  .float-chip { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
