:root {
  --bg: #000000;
  --box: #000000;
  --border: #1a1a1a;
  --border-hover: #333333;
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #555555;
  --font: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 14px;
}

a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.dim { color: var(--text-dim); }

#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 13px; font-weight: 600;
}
.nav-logo img { width: 22px; height: 22px; }
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 12px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }
.nav-btn {
  padding: 5px 12px; border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); font-family: var(--font);
}
.nav-btn:hover { border-color: #fff; color: #fff; }
.nav-btn-primary { border-color: #444; color: #fff; }

#hero {
  padding: 160px 0 80px;
  text-align: left;
}
.hero-container { display: flex; flex-direction: column; align-items: flex-start; }
.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 72px;
}
.hero-logo {
  width: 120px;
  height: 120px;
  animation: spin 6s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.boot-line {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

#hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.btc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.btc-badge img {
  width: 18px;
  height: 18px;
}
.tag-line { max-width: 640px; margin-bottom: 28px; }
.tag-line a { color: #e8e8e8; }

section { padding: 72px 0; }
section h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.body-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.link-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 24px;
}
.step {
  padding: 18px 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-num { font-size: 10px; color: var(--text-dim); letter-spacing: 0.08em; }
.step-title { font-size: 12px; font-weight: 600; color: var(--text); }
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.backed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.backed-head h2 { margin-bottom: 0; }
.btc-logo { width: 36px; height: 36px; }
.backed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.backed-box {
  padding: 18px 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-wide { max-width: 1100px; }
.gh-viewer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--border);
  min-height: 520px;
  background: #0d1117;
}
.gh-tree {
  border-right: 1px solid var(--border);
  padding: 12px 0;
}
.gh-tree-head {
  padding: 0 14px 10px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.gh-file {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #c9d1d9;
  font-family: var(--font);
  font-size: 12px;
  padding: 7px 14px;
  cursor: pointer;
}
.gh-file:hover { background: #161b22; color: #fff; }
.gh-file.active { background: #161b22; color: #58a6ff; }
.gh-code { display: flex; flex-direction: column; min-width: 0; }
.gh-code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: #c9d1d9;
}
.gh-meta { color: var(--text-dim); margin-left: auto; }
.gh-copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
}
.gh-copy:hover { color: #fff; border-color: #444; }
.gh-code-body {
  overflow: auto;
  max-height: 640px;
  font-size: 12px;
  line-height: 1.55;
}
.gh-line {
  display: flex;
  min-width: max-content;
}
.gh-ln {
  flex: 0 0 52px;
  text-align: right;
  padding: 0 12px 0 10px;
  color: #484f58;
  user-select: none;
}
.gh-lt {
  padding-right: 16px;
  white-space: pre;
  color: #c9d1d9;
}

#footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 16px; }
.footer-status { letter-spacing: 0.06em; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero-logo-wrap { margin-bottom: 40px; }
  .hero-logo { width: 88px; height: 88px; }
  .steps, .backed-row { grid-template-columns: 1fr; }
  .gh-viewer { grid-template-columns: 1fr; }
  .gh-tree { border-right: 0; border-bottom: 1px solid var(--border); }
}
