:root {
  --bg: #16161e;
  --bg-2: #1e1e2e;
  --bg-3: #262638;
  --surface: #20202e;
  --border: #34344a;
  --text: #e8e8f0;
  --text-dim: #a0a0b8;
  --text-mute: #6f6f86;
  --purple: #b388ff;
  --purple-2: #8b5cf6;
  --pink: #fb7299;
  --accent: linear-gradient(135deg, #b388ff 0%, #fb7299 100%);
  --green: #4ade80;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 30, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); display: grid; place-items: center;
  font-size: 17px; box-shadow: 0 4px 14px rgba(179, 136, 255, 0.4);
}
.logo b { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #1a1320; font-weight: 700;
  padding: 8px 18px; border-radius: 10px; font-size: 14px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 480px;
  background: radial-gradient(circle at 50% 0%, rgba(179, 136, 255, 0.20), transparent 60%);
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--text-dim);
  margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: 19px; color: var(--text-dim); margin: 20px auto 32px; max-width: 660px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-size: 15.5px; font-weight: 700;
  border: 1px solid var(--border); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a1320; border: none; box-shadow: 0 8px 24px rgba(179,136,255,0.32); }
.btn-ghost { background: var(--surface); color: var(--text); }
.hero-meta { margin-top: 26px; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--purple); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.section-head h2 { font-size: 34px; font-weight: 800; margin-top: 8px; }
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 16px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--purple); transform: translateY(-3px); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: var(--bg-3); margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* ---------- Video tutorials ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
a.video-card {
  text-decoration: none; color: inherit; display: block;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.video-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(179,136,255,0.18); }
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--bg-3);
  display: grid; place-items: center; color: var(--text-mute);
}
.video-frame .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; font-size: 26px; color: #1a1320;
  box-shadow: 0 8px 24px rgba(179,136,255,0.4);
}
.video-meta { padding: 16px 18px; }
.video-meta h3 { font-size: 15.5px; }
.video-meta p { color: var(--text-mute); font-size: 13px; margin-top: 4px; }
.video-note { text-align: center; color: var(--text-mute); font-size: 13.5px; margin-top: 22px; }
.inline-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* ---------- Download ---------- */
.download { text-align: center; }
.dl-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 48px 32px; max-width: 720px; margin: 0 auto;
}
.dl-box h3 { font-size: 24px; }
.dl-box p { color: var(--text-dim); margin: 12px 0 26px; }
.dl-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.dl-pw { font-size: 13px; color: var(--text-mute); margin-bottom: 4px !important; }
.dl-pw code { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; color: var(--accent); font-size: 12.5px; }
.dl-steps { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.dl-step { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; font-size: 13.5px; color: var(--text-dim); }
.dl-step b { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 38px 0; color: var(--text-mute); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: var(--border); }

/* ---------- Changelog ---------- */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: 38px; font-weight: 800; }
.page-head p { color: var(--text-dim); margin-top: 10px; }
.cl-entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 22px; }
.cl-entry .ver { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.cl-entry .ver .tag { background: var(--accent); color: #1a1320; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.cl-group { margin-top: 18px; }
.cl-group h4 { font-size: 15px; color: var(--purple); margin-bottom: 8px; }
.cl-group ul { list-style: none; }
.cl-group li { position: relative; padding-left: 20px; margin: 9px 0; color: var(--text-dim); font-size: 14.5px; }
.cl-group li::before { content: "▹"; position: absolute; left: 0; color: var(--purple); }
.cl-back { display: inline-flex; margin-bottom: 18px; color: var(--text-dim); font-size: 14px; }
.cl-back:hover { color: var(--text); }

@media (max-width: 860px) {
  .grid, .videos { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .nav-links { display: none; }
}
