:root {
  --bg: #0b0e14;
  --bg-soft: #11161f;
  --panel: #161c27;
  --panel-2: #1c2433;
  --line: #232c3b;
  --text: #e7ecf3;
  --muted: #93a0b4;
  --accent: #ff5a3c;
  --accent-2: #ffb648;
  --accent-glow: rgba(255, 90, 60, 0.35);
  --radius: 16px;
  --maxw: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.brand__mark { font-size: 22px; }
.brand__name b { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
}
.nav__cta:hover { border-color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 80px;
}
.hero__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.12;
  margin: 0 0 22px;
  font-weight: 800;
}
.hero__title .hl { color: var(--accent); }
.hero__sub {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  margin-top: 56px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 26px;
  min-width: 150px;
}
.stat b { display: block; font-size: 22px; color: var(--accent-2); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff7a4d);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 90, 60, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 90, 60, 0.4); }
.btn--ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- SECTIONS ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 20px; }
.section--alt { max-width: none; background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { text-align: center; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; }
.section__head p { color: var(--muted); margin: 0; }

/* ---------- CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon { font-size: 32px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card code, .security code, .dl-card code {
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--accent-2);
  word-break: break-all;
}

/* ---------- SECURITY ---------- */
.security { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}
.steps li b { color: var(--text); }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 16px; top: 16px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}
.security__panel {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 60, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(255, 90, 60, 0.3);
}
.security__note { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- DOWNLOAD ---------- */
.download { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.dl-card__icon { font-size: 40px; margin-bottom: 12px; }
.dl-card h3 { margin: 0 0 6px; font-size: 21px; }
.dl-card__ver { color: var(--accent-2); font-size: 14px; margin: 0 0 18px; min-height: 20px; }
.dl-card__hint { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.changelog {
  text-align: left;
  margin: 16px 0 0;
  padding: 14px 16px 14px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.changelog li { margin: 4px 0; }
.download__admin {
  text-align: center;
  color: var(--muted);
  margin-top: 36px;
  font-size: 14px;
}
.download__admin a { color: var(--accent-2); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy { color: var(--muted); font-size: 13px; margin: 0; }
.footer__links { display: flex; gap: 18px; font-size: 14px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .cards, .download { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
}
