:root {
  --bg: #070d18;
  --bg-soft: #0d1626;
  --card: #111c2f;
  --card-soft: #16233a;
  --stroke: #22314d;
  --text: #e8eefc;
  --sub: #93a4c3;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 50% -220px, rgba(59, 130, 246, 0.22), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 24, 0.75);
  border-bottom: 1px solid rgba(34, 49, 77, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.3px; }

.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav .links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--sub); }

.nav .links a:hover { color: var(--text); }

.nav .cta {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.hero { padding: 84px 0 40px; text-align: center; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--sub);
  font-size: clamp(15px, 2vw, 18px);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary { background: linear-gradient(120deg, #2f6fe8, #3b82f6); color: #fff; box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25); }

.btn.ghost { background: rgba(17, 28, 47, 0.8); border-color: var(--stroke); color: var(--text); }

.btn.disabled { opacity: 0.55; pointer-events: none; }

.btn small { font-weight: 400; color: rgba(255, 255, 255, 0.7); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

.chips span {
  font-size: 13px;
  color: var(--sub);
  border: 1px solid var(--stroke);
  background: rgba(17, 28, 47, 0.6);
  padding: 6px 13px;
  border-radius: 999px;
}

section { padding: 54px 0; }

.section-head { text-align: center; margin-bottom: 34px; }

.section-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 34px); }

.section-head p { margin: 0; color: var(--sub); }

.grid { display: grid; gap: 16px; }

.grid.three { grid-template-columns: repeat(3, 1fr); }

.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(22, 35, 58, 0.85), rgba(17, 28, 47, 0.85));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin: 12px 0 8px; font-size: 18px; }

.card p { margin: 0; color: var(--sub); font-size: 14.5px; }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.14);
  color: var(--accent-2);
  font-size: 20px;
}

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }

.shots figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.shots img { width: 100%; display: block; }

.shots figcaption { padding: 10px 14px; font-size: 13px; color: var(--sub); border-top: 1px solid var(--stroke); }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(22, 35, 58, 0.9), rgba(17, 28, 47, 0.9));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.dl .os { font-size: 13px; color: var(--accent-2); letter-spacing: 0.4px; }

.dl h3 { margin: 0; font-size: 20px; }

.dl .meta { font-size: 13px; color: var(--sub); }

.dl .btn { margin-top: auto; justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--ok);
  width: fit-content;
}

.badge.pending { background: rgba(148, 163, 184, 0.12); color: var(--sub); }

.steps { counter-reset: step; display: grid; gap: 14px; }

.step { display: flex; gap: 14px; align-items: flex-start; }

.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
}

.step div { color: var(--sub); font-size: 14.5px; }

.step strong { color: var(--text); display: block; margin-bottom: 2px; }

pre.code, code.inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

pre.code {
  background: #0a1220;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  color: #c7d6f2;
}

.note {
  border-left: 3px solid var(--accent);
  background: rgba(59, 130, 246, 0.08);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  color: var(--sub);
  font-size: 14px;
}

.diagram {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: rgba(10, 18, 32, 0.7);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.diagram .row { display: flex; gap: 12px; flex-wrap: wrap; }

.diagram .box {
  flex: 1 1 180px;
  border: 1px solid var(--stroke);
  background: rgba(22, 35, 58, 0.7);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.diagram .box strong { display: block; color: var(--accent-2); margin-bottom: 4px; font-size: 13px; }

.diagram .arrow { text-align: center; color: var(--sub); font-size: 20px; }

table.checks { width: 100%; border-collapse: collapse; font-size: 14px; }

table.checks th, table.checks td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }

table.checks th { color: var(--sub); font-weight: 600; }

table.checks td { color: var(--text); }

.hash { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--sub); word-break: break-all; }

footer {
  margin-top: 50px;
  border-top: 1px solid var(--stroke);
  padding: 30px 0 46px;
  color: var(--sub);
  font-size: 13px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .grid.three, .dl-grid, .shots { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .nav .links { display: none; }
}