:root {
  --bg: #0f1020;
  --bg2: #171935;
  --card: #1c1f3e;
  --fg: #eaeaf6;
  --muted: #a6a8c8;
  --accent: #ff5fa2;
  --accent2: #7c5cff;
  --ring: rgba(124, 92, 255, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 16, 32, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--fg); }
.btn-ghost {
  border: 1px solid var(--ring); padding: 6px 14px; border-radius: 999px;
  color: var(--fg) !important;
}
.btn-ghost:hover { background: var(--ring); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(124, 92, 255, .35), transparent 60%),
    radial-gradient(50% 50% at 85% 20%, rgba(255, 95, 162, .30), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
.hero-inner {
  position: relative; max-width: 880px; margin: 0 auto;
  padding: 96px 20px 80px; text-align: center;
}
.badge {
  display: inline-block; font-size: 13px; color: var(--muted);
  border: 1px solid var(--ring); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 16px; font-weight: 850; line-height: 1.1; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 620px; margin: 0 auto 30px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 13px; margin-top: 18px; }

.btn-primary, .btn-secondary {
  display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124, 92, 255, .5); }
.btn-secondary { background: rgba(255, 255, 255, .08); color: var(--fg); border: 1px solid var(--ring); }
.btn-secondary:hover { background: rgba(255, 255, 255, .14); }

/* Features */
.features { max-width: 1080px; margin: 0 auto; padding: 70px 20px; }
.features h2, .download h2 { text-align: center; font-size: clamp(24px, 4vw, 34px); margin: 0 0 8px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px;
  padding: 26px 20px; text-align: center;
}
.card .ico { font-size: 34px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Download */
.download { max-width: 1080px; margin: 0 auto; padding: 30px 20px 80px; }
.dl-sub { text-align: center; color: var(--muted); margin: 0 0 36px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px;
  padding: 30px 26px; text-align: center;
}
.dl-card h3 { margin: 0 0 8px; font-size: 20px; }
.dl-card p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.platforms { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.plat {
  padding: 10px 18px; border-radius: 10px; background: rgba(255, 255, 255, .08);
  border: 1px solid var(--ring); font-size: 14px; font-weight: 600;
}
.plat:hover { background: rgba(255, 255, 255, .16); }
.plat[data-loading="1"] { opacity: .6; pointer-events: none; }

/* Footer */
.foot {
  border-top: 1px solid rgba(255, 255, 255, .06); padding: 24px 20px;
  display: flex; gap: 20px; justify-content: center; color: var(--muted); font-size: 14px;
}
.foot a:hover { color: var(--fg); }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}
