:root {
  --bg: #0b1120;
  --bg-alt: #111827;
  --card: #162033;
  --border: #26344d;
  --text: #e5edf8;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-notice {
  background: #172033;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.top-notice-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 8px 20px;
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pill-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.pill-green { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #08101c;
  font-family: var(--font-mono);
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: 0.8rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
.btn-primary { background: #0ea5e9; color: #06131f !important; }
.btn-primary:hover { background: #38bdf8; }
.btn-outline { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }

.hero {
  padding: 54px 0 48px;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 45%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.2;
}
.accent { color: var(--accent); }
.lead { color: #cbd5e1; font-size: 1.04rem; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.trust-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}
.trust-strip li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.terminal-card {
  background: #070d19;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #131d31;
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.terminal-body {
  margin: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  color: #dbeafe;
}
.t-muted { color: #64748b; }
.t-user { color: #38bdf8; font-weight: 700; }
.t-warn { color: #fbbf24; font-weight: 700; }
.t-ok { color: #34d399; font-weight: 700; }

.section { padding: 54px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 24px; max-width: 760px; }
.section-head h2 { margin: 0 0 8px; font-size: 1.65rem; }
.section-head p { margin: 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card-warning { border-color: rgba(239, 68, 68, 0.35); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mt-24 { margin-top: 24px; }

.step-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.code-snippet {
  background: #080f1d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
  margin: 12px 0 0;
  color: #cbd5e1;
}

.precheck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.toggle-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
}
.toggle-item input { margin-top: 4px; accent-color: #0ea5e9; transform: scale(1.15); }

.precheck-result {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1324;
}
.precheck-result.res-ok { border-color: rgba(16, 185, 129, 0.5); }
.precheck-result.res-warn { border-color: rgba(245, 158, 11, 0.5); }
.precheck-result.res-unsup { border-color: rgba(239, 68, 68, 0.5); }
.precheck-result h4 { margin: 0 0 6px; font-size: 1.02rem; }
.precheck-result p { margin: 0; color: #cbd5e1; font-size: 0.94rem; }

.download-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  background: linear-gradient(145deg, #132038, #0f172a);
  border: 1px solid #2b4266;
  border-radius: var(--radius);
  padding: 28px;
}
.download-main h2 { margin: 10px 0 10px; }
.download-main p { color: #cbd5e1; margin: 0 0 20px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.checksum-panel {
  background: #080f1d;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.checksum-label { font-size: 0.82rem; color: var(--muted); margin: 8px 0 4px; }
.checksum-label:first-child { margin-top: 0; }
.sha-code {
  display: block;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #34d399;
  background: #0d1628;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
#copy-hash-btn { margin-top: 10px; }
.copy-feedback { margin-left: 10px; font-size: 0.84rem; color: #34d399; }

.check-list, .cross-list, .link-list { padding-left: 20px; margin: 0; }
.check-list li, .cross-list li, .link-list li { margin-bottom: 10px; color: #cbd5e1; }
.link-list a { color: var(--accent); }
.muted-note { color: var(--muted); font-size: 0.88rem; margin-top: 12px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .hero-grid, .cards-3, .cards-2, .download-box, .precheck-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
}
