:root {
  --canvas: #0a0a0a;
  --canvas-soft: #1a1c20;
  --canvas-card: #191919;
  --canvas-mid: #363a3f;
  --hairline: #212327;
  --ink: #fff;
  --body: #dadbdf;
  --body-mid: #7d8187;
  --green: #00ff85;
  --green-dim: #00ff8599;
  --green-glow: #00ff852e;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--green);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__brand:hover { text-decoration: none; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; }

.nav__links a { color: var(--body); }
.nav__links a:hover { color: var(--ink); }

.nav__gh {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  color: var(--ink) !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav__gh:hover { border-color: var(--green-dim); background: var(--canvas-soft); text-decoration: none; }

/* ── hero ────────────────────────────────────────────── */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5.5rem 2rem 3rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--body-mid);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--green-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 1.4rem;
}

.hero__title .accent { color: var(--green); }

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  color: var(--body-mid);
  font-size: 1.05rem;
}
.hero__subtitle strong { color: var(--body); font-weight: 600; }

.hero__cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--green);
  color: #04140c;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn--primary:hover { box-shadow: 0 0 34px var(--green-dim); }

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover { border-color: var(--green-dim); background: var(--canvas-soft); }

.hero__visual {
  width: 100%;
  max-width: 900px;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* ── sections ────────────────────────────────────────── */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.section--sovereignty { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section__title {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  text-align: center;
}

.section__lede {
  text-align: center;
  color: var(--body-mid);
  max-width: 560px;
  margin: 0 auto 2.8rem;
}

.section__note { text-align: center; color: var(--body-mid); font-size: 0.92rem; margin-top: 1.6rem; }

/* ── feature grid ────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.6rem;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--canvas-mid); }

.card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 { color: var(--ink); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.card p { color: var(--body-mid); font-size: 0.9rem; }

/* ── sovereignty ─────────────────────────────────────── */
.codeblock {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.codeblock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--body-mid);
}

.codeblock__dot {
  color: var(--green);
  font-size: 0.72rem;
  border: 1px solid var(--green-dim);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}

.codeblock pre {
  overflow-x: auto;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #d8dbe0;
}

.c-k { color: #a685ff; }
.c-s { color: var(--green); }
.c-c { color: var(--body-mid); }

.copy {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--body-mid);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 6px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy:hover { color: var(--green); border-color: var(--green-dim); }
.copy.copied { color: var(--green); border-color: var(--green-dim); }

.guardlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.guardlist__item {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.6rem;
}

.guardlist__item h3 { color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.guardlist__item p { color: var(--body-mid); font-size: 0.9rem; }

/* ── quickstart tabs ─────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.tab {
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--body-mid);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tab:hover { color: var(--body); }
.tab.is-active {
  color: var(--green);
  border-color: var(--green-dim);
  background: var(--green-glow);
}

.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

/* ── footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 2rem 2.5rem;
}

.footer__inner { max-width: 1000px; margin: 0 auto; text-align: center; }

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.footer__links a { color: var(--body-mid); }
.footer__links a:hover { color: var(--ink); }

.footer__legal { color: var(--body-mid); font-size: 0.8rem; }

@media (max-width: 640px) {
  .nav__links a:not(.nav__gh) { display: none; }
  .hero { padding-top: 3.5rem; }
}
