:root {
  --bg: #070a0b;
  --bg-2: #090d0e;
  --panel: #0c1214;
  --panel-2: #10181a;
  --line: #1e2628;
  --line-2: #2a3234;
  --green: #c5ff3d;
  --green-2: #9bc42a;
  --green-dim: rgba(197, 255, 61, .12);
  --text: #f1f0e8;
  --muted: #9aa0a2;
  --dim: #6a7072;
  --faint: #424a4c;
  --orange: #e8833a;
  --red: #d94a3d;
  --gold: #d8a84e;
  --blue: #64ade8;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Microsoft YaHei", monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--green); color: #070a0b; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 255, 61, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 255, 61, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 72% 18%, rgba(197, 255, 61, .09), transparent 70%),
    radial-gradient(520px 300px at 12% 42%, rgba(100, 173, 232, .05), transparent 70%);
}

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

/* ── header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 10, 11, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(30, 38, 40, .85);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #0a0d08;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 900;
  border-radius: 3px;
  box-shadow: 0 0 22px rgba(197, 255, 61, .22);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 13.5px; transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.nav .nav-login {
  color: var(--green);
  border: 1px solid var(--line-2);
  padding: 8px 18px;
  border-radius: 3px;
  transition: border-color .2s ease, background .2s ease;
}
.nav .nav-login:hover { border-color: var(--green); background: var(--green-dim); }

/* ── hero ── */
.hero { padding: 96px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(197, 255, 61, .1);
}
.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}
.hero h1 span { color: var(--green); }
.lede { max-width: 560px; color: var(--muted); font-size: 16.5px; line-height: 1.75; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #0a0d08; border-color: var(--green); }
.btn-primary:hover { background: #d6ff6b; border-color: #d6ff6b; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-large { height: 52px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.qq-inline { color: var(--green); font-family: var(--mono); }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-family: var(--mono); font-size: 24px; color: var(--green); font-weight: 700; line-height: 1.1; }
.stats span { font-size: 11px; color: var(--dim); }

/* ── preview panel ── */
.hero-visual { position: relative; }
.preview-glow {
  position: absolute;
  inset: 12% 8% 8%;
  background: radial-gradient(circle, rgba(197, 255, 61, .16), transparent 68%);
  filter: blur(46px);
  z-index: -1;
}
.preview {
  position: relative;
  background: linear-gradient(180deg, #0b1112, #090d0e 60%);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 15px 16px 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(197, 255, 61, .04) inset;
  font-size: 12px;
}
.preview::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .7;
}
.pv-header { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pv-brand { display: flex; align-items: baseline; gap: 7px; }
.pv-brand span { font-size: 13.5px; font-weight: 800; color: var(--green); letter-spacing: .02em; }
.pv-brand small { font-size: 8px; color: var(--dim); font-family: var(--mono); }
.pv-lic { font-size: 8px; color: var(--muted); margin-left: 4px; }
.pv-btns { margin-left: auto; display: flex; gap: 4px; }
.pv-btns span { font-size: 8px; color: var(--dim); border: 1px solid var(--line-2); padding: 3px 6px; border-radius: 2px; background: #111819; }
.pv-qq { display: flex; align-items: center; gap: 8px; color: var(--orange); font-size: 8px; margin: 8px 0 9px; }
.pv-copy { font-size: 7px; color: var(--muted); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 2px; }
.pv-hero { display: flex; align-items: center; gap: 9px; }
.pv-avatar { width: 44px; height: 44px; object-fit: cover; border: 1px solid rgba(197, 255, 61, .55); border-radius: 2px; background: #10181a; }
.pv-meta { min-width: 0; flex: 1; }
.pv-name { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-tag { display: inline-block; vertical-align: 1px; margin-left: 5px; padding: 1px 5px; border: 1px solid var(--green); border-radius: 2px; color: var(--green); font-size: 7.5px; font-weight: 600; }
.pv-sub { font-size: 8px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-wr { margin-left: auto; text-align: right; font-family: var(--mono); color: var(--green); font-size: 23px; font-weight: 800; line-height: 1; white-space: nowrap; }
.pv-wr span { font-size: 12px; }
.pv-wr small { display: block; font-family: var(--sans); font-size: 7px; color: var(--dim); font-weight: 400; margin-top: 3px; }
.pv-flows { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.pv-flows span { font-size: 8px; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 2px; background: #0c1214; }
.pv-flows .on { color: var(--green); border-color: var(--green); background: var(--green-dim); }
.pv-note { font-size: 8px; color: var(--faint); margin: 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-label { display: flex; align-items: center; justify-content: space-between; font-size: 8px; color: var(--dim); margin: 7px 0 4px; }
.pv-muted { color: var(--faint); font-size: 7px; }
.pv-odds { color: var(--orange); font-family: var(--mono); font-size: 8px; }
.pv-starter { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--text); }
.pv-starter img { width: 30px; height: 30px; object-fit: cover; border: 1px solid var(--line-2); border-radius: 2px; background: #10181a; }
.pv-items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.pv-item { text-align: center; min-width: 0; }
.pv-item img { width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--line-2); border-radius: 2px; background: #10181a; display: block; margin: 0 auto; }
.pv-item.core img { border-color: var(--green); }
.pv-item b { display: block; font-size: 7px; font-weight: 500; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-item i { display: block; font-family: var(--mono); font-size: 7px; font-style: normal; color: var(--dim); }
.pv-item.core i { color: var(--green); }
.pv-cards { display: grid; gap: 3px; }
.pv-card { position: relative; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 2px; padding: 5px 6px; background: rgba(12, 18, 20, .65); }
.pv-card.first { border-left: 2px solid var(--green); }
.pv-card > i { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(216, 168, 78, .06); }
.pv-card .r-gold { color: var(--gold); }
.pv-card div { min-width: 0; }
.pv-card b { display: block; font-size: 9px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-card small { display: block; font-size: 7px; color: var(--gold); }
.pv-card em { margin-left: auto; font-style: normal; font-size: 8px; font-weight: 700; }
.pv-card strong { width: 38px; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.pv-card.first strong { color: var(--green); }
.act-keep { color: var(--green); }
.act-reroll { color: var(--orange); }
.pv-first { position: absolute; right: 47px; bottom: 3px; font-size: 6.5px; color: var(--green); }
.pv-hint { font-size: 8px; color: var(--faint); margin-top: 8px; }
.img-missing { opacity: 0; }

/* ── sections ── */
.section { padding: 88px 0; border-top: 1px solid rgba(30, 38, 40, .65); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2 { margin: 16px 0 12px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.03em; font-weight: 800; }
.section-head h2 span { color: var(--green); }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature {
  background: linear-gradient(180deg, rgba(16, 24, 26, .75), rgba(10, 15, 16, .6));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 22px 26px;
  min-height: 190px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fno { font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: .1em; }
.feature h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 750; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ── account ── */
.account { background: rgba(12, 18, 20, .35); }
.account-grid { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: start; }
.account-copy h2 { margin: 16px 0 14px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.03em; }
.account-copy h2 span { color: var(--green); }
.account-copy p { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 540px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--green); border-radius: 1px; box-shadow: 0 0 0 3px rgba(197, 255, 61, .1); }
.checks code { font-family: var(--mono); font-size: 11.5px; color: var(--green); }

.auth-card {
  background: linear-gradient(180deg, #0d1416, #0a0f10);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
.client-hint {
  border: 1px solid rgba(197,255,61,.35);
  background: rgba(197,255,61,.07);
  color: var(--green);
  border-radius: 4px;
  padding: 9px 12px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
}
.client-hint strong { color: var(--text); }
.auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 0 0 11px; font-size: 14px; font-weight: 700; transition: color .2s ease, border-color .2s ease; }
.auth-tabs button.on { color: var(--green); border-color: var(--green); }
form label { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; margin-bottom: 14px; }
form input {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  background: #080d0e;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
form input::placeholder { color: var(--faint); }
form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(197, 255, 61, .08); }
#registerFields[hidden] { display: none; }
.code-row { display: flex; gap: 8px; margin-top: 6px; }
.code-row input { flex: 1; min-width: 0; margin-top: 0; }
.code-row .btn { flex: 0 0 auto; height: 44px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
#registerFields .fine { margin: -4px 0 14px; }
.form-msg { min-height: 18px; margin: 10px 0 0; color: var(--red); font-size: 12px; line-height: 1.5; }
.form-msg.ok { color: var(--green); }
.user-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.label { display: block; color: var(--dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.user-top strong { font-size: 20px; font-weight: 800; }
.license { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: rgba(197, 255, 61, .035); border-radius: 3px; padding: 15px 16px; margin-bottom: 18px; }
.license strong { display: block; font-size: 17px; font-weight: 800; color: var(--text); }
.license small { display: block; color: var(--dim); font-size: 10px; margin-top: 3px; }
.license-kind { border: 1px solid var(--green); color: var(--green); padding: 4px 8px; border-radius: 2px; font-size: 10px; white-space: nowrap; }
.fine { color: var(--faint); font-size: 10.5px; line-height: 1.6; margin: 14px 0 0; }

/* ── download ── */
.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(420px 180px at 85% 50%, rgba(197, 255, 61, .08), transparent 70%),
    linear-gradient(180deg, #0d1416, #090d0e);
  border-radius: 4px;
  padding: 44px 46px;
}
.download-copy h2 { margin: 14px 0 10px; font-size: 34px; letter-spacing: -.03em; }
.download-copy p { color: var(--muted); margin: 0; }
.download-copy .checks { margin-top: 20px; }
.download-action { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
#downloadMeta { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.download-meta { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ── plans ── */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan {
  border: 1px solid var(--line);
  background: rgba(12, 18, 20, .55);
  border-radius: 4px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s ease, background .2s ease;
}
.plan:hover { border-color: var(--line-2); }
.plan.featured { border-color: var(--green); background: rgba(197, 255, 61, .05); }
.plan span { color: var(--muted); font-size: 12px; }
.plan strong { font-family: var(--mono); font-size: 30px; color: var(--green); font-weight: 700; line-height: 1.25; }
.plan small { color: var(--dim); font-size: 10px; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 36px; margin-top: 8px; }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-inner p { margin: 0; color: var(--dim); font-size: 12px; }
.footer-inner .fine { margin-left: auto; color: var(--faint); font-size: 10.5px; }
#healthText { color: var(--faint); }

/* ── responsive ── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .account-grid { grid-template-columns: 1fr; gap: 36px; }
  .auth-card { max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card { grid-template-columns: 1fr; gap: 28px; }
  .download-action { align-items: flex-start; text-align: left; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .header-inner { height: 62px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-login) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .lede { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .section { padding: 62px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .preview { font-size: 11px; padding: 12px; }
  .pv-wr { font-size: 19px; }
  .pv-items { gap: 3px; }
  .pv-item img { width: 30px; height: 30px; }
  .pv-item b { font-size: 6.5px; }
  .download-card { padding: 28px 22px; }
  .download-copy h2 { font-size: 28px; }
  .plans { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner .fine { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
