:root {
  --bg: #0b0f1e;
  --bg-2: #0f1428;
  --card: #141a30;
  --card-2: #182036;
  --line: #232c48;
  --text: #e9edff;
  --muted: #97a0c2;
  --brand: #22d3ee;
  --brand-2: #6366f1;
  --brand-3: #a855f7;
  --ok: #34d399;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(900px 600px at 0% 0%, rgba(34,211,238,.14), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .06s ease, opacity .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #06121a; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.btn-primary:hover { opacity: .92; }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,30,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.brand .logo { width: 30px; height: 30px; }
.brand b { background: linear-gradient(90deg, var(--brand), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.hero h1 { font-size: 54px; line-height: 1.1; margin: 0 0 18px; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .subnote { margin-top: 16px; font-size: 13px; color: var(--muted); }

.mock {
  margin: 56px auto 0; max-width: 860px;
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}
.mock-bar { display: flex; gap: 7px; padding: 4px 6px 14px; }
.mock-bar i { width: 12px; height: 12px; border-radius: 50%; background: #2a3352; display: inline-block; }
.mock-input {
  display: flex; gap: 10px; align-items: center;
  background: #0b1022; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted);
}
.mock-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px;
  background: #10162c; display: flex; flex-direction: column; gap: 2px; min-width: 120px;
}
.chip .q { font-weight: 700; }
.chip .s { font-size: 12px; color: var(--muted); }
.chip.pro { border-color: rgba(168,85,247,.5); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; margin: 0 0 12px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(99,102,241,.14); color: var(--brand); border: 1px solid var(--line);
}
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); position: relative; }
.step .n { font-size: 40px; font-weight: 800; color: transparent; background: linear-gradient(90deg, var(--brand), var(--brand-3)); -webkit-background-clip: text; background-clip: text; }
.step h3 { margin: 6px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
.plan {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 32px; position: relative;
}
.plan.pro { border-color: rgba(99,102,241,.55); box-shadow: 0 20px 60px rgba(99,102,241,.16); }
.plan .tag { position: absolute; top: -12px; right: 24px; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 6px; font-size: 22px; }
.plan .price { font-size: 44px; font-weight: 800; margin: 10px 0 4px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .price-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.plan li .ck { color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
details.qa { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px 20px; }
details.qa summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--brand); font-size: 22px; }
details.qa[open] summary::after { content: "−"; }
details.qa p { margin: 0 0 16px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  text-align: center; border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px;
  background: linear-gradient(180deg, rgba(99,102,241,.12), rgba(34,211,238,.05));
}
.cta-band h2 { font-size: 34px; margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 46px 0 60px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-grid .col h4 { color: var(--text); font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1px; }
.foot-grid .col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.foot-grid .col a:hover { color: var(--text); }
.foot-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.disclaimer { max-width: 640px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 0; }
.legal h1 { font-size: 38px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin-bottom: 30px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #c3cae6; }
.legal a { color: var(--brand); }

/* ---------- Online tool page ---------- */
.tool-hero { padding: 70px 0 90px; text-align: center; }
.tool-hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -1px; }
.tool-hero .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool-hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }

.tool { display: flex; gap: 12px; max-width: 720px; margin: 0 auto; flex-wrap: wrap; }
.tool-input {
  flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px;
  background: #0b1022; border: 1px solid var(--line); border-radius: 14px; padding: 4px 8px 4px 16px; color: var(--muted);
}
.tool-input:focus-within { border-color: var(--brand); }
.tool-input svg { flex-shrink: 0; }
.tool-input input {
  flex: 1; background: transparent; border: 0; outline: 0; color: var(--text);
  font-size: 16px; padding: 14px 0; font-family: inherit;
}
.tool-input #clearBtn {
  display: none; width: 26px; height: 26px; border-radius: 50%; place-items: center;
  border: 0; background: #2a3352; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.tool-input #clearBtn:hover { background: #38436b; }
.tool #goBtn { min-width: 120px; justify-content: center; }

.platform-hint { min-height: 22px; margin: 14px auto 0; font-size: 14px; color: var(--muted); }
.platform-hint.ok { color: var(--ok); }
.platform-hint.warn { color: #fbbf24; }

.result {
  max-width: 720px; margin: 26px auto 0; padding: 30px 26px; text-align: center;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 18px;
}
.result h3 { margin: 0 0 10px; font-size: 20px; }
.result p { color: var(--muted); margin: 0 0 18px; }
.result .gate-ico { font-size: 40px; margin-bottom: 8px; }
.result .gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result.gate { border-color: rgba(99,102,241,.5); }
.result.soon { border-color: rgba(34,211,238,.4); }
.result.err { border-color: #ef4444; }
.result.err p { color: #fca5a5; margin: 0; }

.dl-list { display: grid; gap: 10px; }
.dl-item {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: #10162c; padding: 14px 16px;
  cursor: pointer; color: var(--text); font-family: inherit; transition: border-color .15s ease;
}
.dl-item:hover { border-color: var(--brand); }
.dl-item .dl-q { font-weight: 700; font-size: 15px; }
.dl-item .dl-s { font-size: 12px; color: var(--muted); word-break: break-all; }

.spinner {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tool-note { max-width: 620px; margin: 30px auto 0; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 17px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .tool-hero h1 { font-size: 34px; }
}
