:root {
  --bg-deep: #0b0519;
  --bg-card: rgba(25, 13, 52, 0.88);
  --bg-card-soft: rgba(18, 9, 39, 0.92);
  --border: rgba(147, 51, 234, 0.28);
  --border-gold: rgba(251, 191, 36, 0.48);
  --purple: #9333ea;
  --purple-light: #c084fc;
  --gold: #fbbf24;
  --amber: #f59e0b;
  --green: #22c55e;
  --blue: #38bdf8;
  --red: #ef4444;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 12% 8%, rgba(147, 51, 234, 0.24), transparent 44%),
              radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.14), transparent 38%),
              linear-gradient(180deg, #100726 0%, #090414 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
}

.docs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 5, 25, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.docs-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.docs-brand:hover {
  text-decoration: none;
}

.docs-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #9333ea);
  border: 1.5px solid rgba(251, 191, 36, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.docs-brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.docs-brand-sub {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.docs-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.nav-pill:hover {
  border-color: var(--gold);
  color: #fff;
  text-decoration: none;
}

.nav-pill.active {
  background: rgba(147, 51, 234, 0.28);
  border-color: var(--gold);
  color: var(--gold);
}

.nav-pill.cta {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.docs-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(49, 18, 105, 0.92), rgba(20, 10, 44, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.hero-card h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #fff;
}

.hero-lead {
  font-size: 15.5px;
  color: var(--text-sub);
  max-width: 78ch;
  margin-bottom: 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.pill-badge.green {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.4);
}

.pill-badge.gold {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
}

.pill-badge.blue {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
}

.pill-badge.red {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.trust-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 13.5px;
  color: var(--text-sub);
}

.toc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 22px;
}

.toc-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 10px;
}

.toc-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  text-decoration: none;
}

.doc-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.doc-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.doc-section p.lead {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.clause-list {
  display: grid;
  gap: 12px;
}

.clause-item {
  background: rgba(11, 5, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.clause-item h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.clause-item p {
  font-size: 13.5px;
  color: var(--text-sub);
}

.callout-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}

.callout-box.gold {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}

.callout-box strong {
  display: block;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 3px;
}

.callout-box p {
  font-size: 13px;
  color: var(--text-sub);
}

.alloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.alloc-card {
  background: rgba(11, 5, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.alloc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.alloc-pct {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
}

.alloc-amt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 10px 0 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9333ea, #fbbf24);
}

.milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(11, 5, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.milestone-icon.done {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.milestone-icon.pending {
  background: rgba(251, 191, 36, 0.16);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.docs-footer {
  margin-top: 32px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.docs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .hero-card,
  .doc-section {
    padding: 18px;
  }
  .docs-nav-inner {
    padding: 12px 14px;
  }
}
