:root {
  --bg: #f0f5ff;
  --bg-soft: #e8effd;
  --bg-mute: #dce8fb;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-3: #60a5fa;
  --brand-deep: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.12);
  --line: rgba(37, 99, 235, 0.16);
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 44px rgba(30, 64, 175, 0.12);
  --shadow-hover: 0 24px 56px rgba(37, 99, 235, 0.2);
  --radius: 18px;
  --shell: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 8% -12%, rgba(37, 99, 235, 0.16), transparent 62%),
    radial-gradient(900px 520px at 92% -4%, rgba(96, 165, 250, 0.22), transparent 58%),
    radial-gradient(760px 420px at 50% 110%, rgba(37, 99, 235, 0.08), transparent 65%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); text-decoration: none; }

h1, h2, h3, p { margin: 0; }

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(150%);
  background: rgba(240, 245, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(240, 245, 255, 0.96);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--ink-2);
  font-weight: 500;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

/* Hero */
.hero { padding: 72px 0 36px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-name {
  font-size: clamp(2.9rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

.hero-tagline {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 1.0625rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* Primary download CTA */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-2));
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: download-cta-glow 3s ease-in-out infinite;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 52px -12px rgba(37, 99, 235, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #fff;
}

.download-btn:active { transform: translateY(0) scale(0.99); }

.download-btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.download-btn svg { flex: none; }

@keyframes download-cta-glow {
  0%, 100% { box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 18px 52px -8px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.26);
  background: rgba(255, 255, 255, 0.6);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.ghost-btn-strong { border-color: rgba(37, 99, 235, 0.34); background: rgba(255, 255, 255, 0.86); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.visual-glow {
  position: absolute;
  inset: 6% 4%;
  background: radial-gradient(ellipse 55% 52% at 50% 50%, rgba(37, 99, 235, 0.22) 0%, rgba(96, 165, 250, 0.1) 46%, transparent 78%);
  filter: blur(34px);
  border-radius: 50%;
}

.preview-card {
  position: relative;
  width: min(360px, 100%);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 70px -24px rgba(30, 64, 175, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
  transform: rotate(-2deg);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(240, 245, 255, 0.72);
}

.preview-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.preview-bar .dot:first-child { background: #fca5a5; }
.preview-bar .dot:nth-child(2) { background: #fcd34d; }
.preview-bar .dot:nth-child(3) { background: #86efac; }

.preview-name {
  margin-left: 8px;
  color: var(--muted);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.preview-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 46px 24px 52px;
  background:
    radial-gradient(420px 220px at 50% 8%, rgba(59, 130, 246, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.4);
}

.preview-body img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 18px 38px -16px rgba(37, 99, 235, 0.55);
}

.preview-body p {
  color: var(--ink-2);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.space-key {
  position: absolute;
  right: 8%;
  bottom: 6%;
  padding: 14px 22px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #e6eefc);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 14px 30px -12px rgba(30, 64, 175, 0.45), inset 0 -3px 0 rgba(37, 99, 235, 0.14);
  color: var(--brand);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transform: rotate(3deg);
}

/* Generic section head */
.section-head {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-2); }

.gradient-text {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass surfaces */
.glass-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  transition: transform 0.28s cubic-bezier(0.22, 0.68, 0, 1.2), box-shadow 0.28s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Features */
.features { padding: 64px 0 24px; }

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

.feature-card { padding: 26px 24px 28px; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--brand);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.18));
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.feature-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p { color: var(--ink-2); font-size: 0.94rem; }

/* Stats */
.stats { padding: 34px 0 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 22px 16px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* How it works */
.how { padding: 76px 0 30px; }

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

.step-card { position: relative; padding: 28px 24px 30px; overflow: hidden; }

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.7);
  margin-bottom: 18px;
}

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.9rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.14);
  letter-spacing: -0.02em;
}

.step-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--ink-2); font-size: 0.94rem; }

/* Formats */
.formats { padding: 76px 0 30px; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.glass-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-2);
  font-size: 0.85rem;
  transition: transform 0.2s cubic-bezier(0.22, 0.68, 0, 1.2), box-shadow 0.2s ease, background 0.2s ease;
}

.glass-chip:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.16);
}

/* CTA */
.cta { padding: 76px 0 40px; }

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  text-align: center;
  border-radius: 24px;
  background:
    radial-gradient(560px 300px at 20% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(520px 300px at 82% 100%, rgba(96, 165, 250, 0.22), transparent 70%),
    rgba(255, 255, 255, 0.74);
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.orb-a { width: 240px; height: 240px; top: -90px; left: -60px; background: rgba(37, 99, 235, 0.18); }
.orb-b { width: 260px; height: 260px; bottom: -110px; right: -70px; background: rgba(96, 165, 250, 0.22); }

.cta-inner { position: relative; z-index: 1; }

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.cta-inner p {
  max-width: 40em;
  margin: 0 auto 26px;
  color: var(--ink-2);
}

.cta-actions { display: flex; justify-content: center; }

/* Footer */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: rgba(232, 239, 253, 0.7);
  backdrop-filter: blur(14px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 34px;
}

.footer-brand p {
  margin-top: 10px;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.footer-logo-row { margin-bottom: 4px; }

.footer-license {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--ink-2);
  font-size: 0.92rem;
  width: fit-content;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; order: 2; }
  .hero { padding-top: 48px; }
  .feature-grid, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-name { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .step-grid { grid-template-columns: 1fr; }
  .format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-btn {
    min-height: 54px;
    width: 100%;
    padding: 0 24px;
    font-size: 1.0625rem;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .ghost-btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-card { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .download-btn { animation: none; transition: none; }
  .glass-card, .glass-chip, .ghost-btn, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
