:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0e1524;
  --ink-2: #414a5c;
  --ink-3: #6b7486;
  --line: #e7eaf1;
  --line-2: #d8dee9;
  --brand: #2f5bea;
  --brand-dark: #1f45c9;
  --brand-soft: #eef2ff;
  --ok: #12805c;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 36, .05);
  --shadow-md: 0 8px 24px -8px rgba(14, 21, 36, .12), 0 2px 6px rgba(14, 21, 36, .04);
  --shadow-lg: 0 24px 60px -20px rgba(14, 21, 36, .18), 0 6px 18px -8px rgba(14, 21, 36, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(14,21,36,.02); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-name { font-size: 16.5px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--ink-3); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ver-pill {
  font-size: 12.5px; color: var(--ink-3); padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 500; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(47, 91, 234, .3), 0 6px 18px -8px rgba(47, 91, 234, .55);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 12px; }
.btn-lg .ico { transition: transform .18s ease; }
.btn-lg:hover .ico { transform: translateY(2px); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ink-3);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.linkish:hover { color: var(--brand); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 22% -8%, #eaf0ff 0%, rgba(234, 240, 255, 0) 62%),
    radial-gradient(680px 360px at 88% 6%, #f3f0ff 0%, rgba(243, 240, 255, 0) 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 76px 24px 64px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  padding: 5px 12px 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 128, 92, .12);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: 54px; line-height: 1.14; letter-spacing: -.035em; font-weight: 600;
}
.lead {
  margin: 20px 0 0; max-width: 470px;
  font-size: 17px; line-height: 1.72; color: var(--ink-2);
}

.dl-block { margin-top: 36px; }
.dl-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 14px; font-size: 13.5px; color: var(--ink-3);
}
.dl-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.dl-alt {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; font-size: 13.5px; color: var(--ink-3);
}

.notice {
  display: flex; align-items: flex-start; gap: 9px;
  max-width: 480px; margin: 20px 0 0; padding: 11px 14px;
  background: #fcfcfe; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 8px; font-size: 13px; line-height: 1.62; color: var(--ink-2);
}
.notice svg { flex: none; margin-top: 2px; color: var(--brand); }
.notice strong { font-weight: 600; color: var(--ink); }

/* ---------- app mock ---------- */
.hero-visual { position: relative; }
.app-window {
  border-radius: 16px; background: #fff; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-width: 100%;
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  background: linear-gradient(#fbfcfe, #f4f6fa);
  border-bottom: 1px solid var(--line);
}
.win-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e7f0; }
.win-title {
  margin-left: 10px; font-size: 12px; color: var(--ink-3);
}
.win-body { display: grid; grid-template-columns: 104px 1fr; min-height: 300px; }
.win-side { padding: 14px 10px; border-right: 1px solid var(--line); background: #fafbfd; }
.side-item {
  font-size: 12px; color: var(--ink-3); padding: 7px 10px; border-radius: 7px; margin-bottom: 2px;
}
.side-item.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.win-main { padding: 16px; min-width: 0; overflow: hidden; }
.graph { width: 100%; height: auto; }
.win-answer {
  margin-top: 6px; padding: 12px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.ans-tag { display: block; font-size: 10.5px; color: var(--brand-dark); margin-bottom: 9px; }
.ans-line {
  display: block; height: 7px; border-radius: 4px;
  background: #dfe5f0; margin-bottom: 7px;
}
.ans-line.short { width: 58%; margin-bottom: 0; }

/* ---------- platforms ---------- */
.platforms { padding: 8px 0 4px; }
.plat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.plat {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink-3);
}
.plat.available { color: var(--brand); border-color: #d3ddfb; background: #fcfdff; }
.plat div { display: flex; flex-direction: column; line-height: 1.35; }
.plat strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.plat span { font-size: 12px; color: var(--ink-3); }
.plat em { margin-left: auto; font-size: 11.5px; font-style: normal; color: var(--ink-3); }
.plat em.badge-ok { color: var(--ok); background: rgba(18,128,92,.08); padding: 2px 8px; border-radius: 999px; }

/* ---------- sections ---------- */
section { position: relative; }
.features, .start, .changelog, .faq { padding: 84px 0; }
.start { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 620px; margin-bottom: 40px; }
.sec-head h2 {
  margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600;
}
.sec-head p { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-2); }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat, .step, .plat { min-width: 0; }
.feat {
  padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feat:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: 16px;
}
.feat h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 14.5px; line-height: 1.68; color: var(--ink-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: relative;
}
.step-no {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.66; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: #eef1f7; color: var(--ink);
  padding: 1.5px 6px; border-radius: 5px;
}

.req {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.req-row {
  display: flex; gap: 20px; padding: 13px 20px; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.req-row:last-child { border-bottom: 0; }
.req-row span { width: 96px; flex: none; color: var(--ink-3); }
.req-row b { font-weight: 500; color: var(--ink); }

/* ---------- changelog ---------- */
.log { border-left: 2px solid var(--line); padding-left: 24px; position: relative; }
.log::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px #fff, 0 0 0 5px #d3ddfb;
}
.log-head { display: flex; align-items: center; gap: 12px; }
.log-head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.log-head time { font-size: 13.5px; color: var(--ink-3); }
.tag-latest {
  font-size: 11.5px; color: var(--brand-dark); background: var(--brand-soft);
  padding: 2px 8px; border-radius: 999px; font-weight: 500;
}
.log ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.log li { margin-bottom: 8px; line-height: 1.66; }
.log li::marker { color: var(--line-2); }

/* ---------- faq ---------- */
details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
details summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0;
  font-size: 15.5px; font-weight: 500; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ""; position: absolute; right: 6px; top: 22px;
  width: 9px; height: 9px;
  border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); top: 26px; }
details p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.72; padding-right: 30px; }

/* ---------- footer ---------- */
.foot { padding: 44px 0 34px; border-top: 1px solid var(--line); background: #fcfdfe; }
.foot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; color: var(--ink-3); }
.foot-links a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.icp { font-size: 13px; transition: color .15s ease; }
.icp:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 14px);
  background: var(--ink); color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; z-index: 100;
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .hero h1 { font-size: 44px; }
  .hero-visual { order: 2; max-width: 520px; width: 100%; }
  .feat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .plat-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 34px; }
  .lead { font-size: 15.5px; }
  .btn-lg { width: 100%; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .features, .start, .changelog, .faq { padding: 60px 0; }
  .sec-head h2 { font-size: 24px; }
  .brand-name { font-size: 15.5px; }
  .ver-pill { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .req-row { flex-direction: column; gap: 4px; }
  .req-row span { width: auto; }
}
