:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-2: #0c0f16;
  --panel: #10131b;
  --panel-2: #151924;
  --line: #232838;
  --line-2: #30374a;
  --ink: #f3f1ec;
  --ink-soft: #dce0e8;
  --muted: #9aa0ad;
  --faint: #6f7786;
  --accent: #8d88ff;
  --accent-soft: #c8c5ff;
  --accent-panel: #171633;
  --green: #57d39a;
  --amber: #e0b756;
  --red: #e0413b;
  --blue: #76a8ff;
  --max: 1180px;
  --radius: 8px;
  --font-sans: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(35, 40, 56, 0.9);
  background: rgba(11, 13, 18, 0.86);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(var(--max), calc(100vw - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 20px;
}

.brand-name span {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.nav-actions {
  gap: 12px;
  margin-left: 0;
}

.nav-link:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.btn:hover {
  border-color: #464f69;
  background: #111622;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #090b11;
}

.btn.primary:hover {
  background: var(--accent-soft);
  color: #090b11;
}

.section {
  border-top: 1px solid #171c28;
}

.section.alt {
  background: var(--bg-2);
}

.wrap {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  padding: 78px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 1px solid #2a2752;
  border-radius: 999px;
  background: #15142a;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(46px, 6.3vw, 78px);
  line-height: 0.96;
  font-weight: 650;
}

.hero h1 {
  max-width: 760px;
}

.accent {
  color: var(--accent-soft);
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.code-card,
.receipt-card,
.panel,
.asset-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.code-card {
  overflow: hidden;
  box-shadow: 0 40px 80px -48px #000;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid #1c2130;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.file-name {
  margin-left: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #cdd2dd;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}

.kw {
  color: #c98aff;
}

.str {
  color: #9ee493;
}

.cm {
  color: #697184;
}

.ok {
  color: var(--green);
}

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

.section-pad {
  padding: 78px 0;
}

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

.kicker {
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.06;
  font-weight: 650;
}

.section-copy {
  max-width: 740px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.panel {
  padding: 24px;
}

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

.panel p,
.panel li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.panel p {
  margin: 0;
}

.icon-box {
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #2a2752;
  border-radius: var(--radius);
  background: #15142a;
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-weight: 700;
}

.graph-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 22px;
  align-items: stretch;
}

.asset-frame {
  overflow: hidden;
  background: #080a0f;
}

.asset-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.toggle {
  cursor: pointer;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #111520;
  color: var(--ink-soft);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
}

.toggle.active {
  border-color: var(--accent);
  background: var(--accent-panel);
  color: var(--accent-soft);
}

.receipt-card {
  padding: 22px;
}

.receipt-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.receipt-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  color: #cdd2dd;
  font-family: var(--font-mono);
  font-size: 13px;
}

.receipt-row span:first-child {
  color: var(--faint);
}

.receipt-foot {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #1c2130;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

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

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-num {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.list-clean {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  padding: 9px 0;
  border-top: 1px solid #1c2130;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111520, #15142a);
}

.cta-band p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid #171c28;
  padding: 34px 0;
  color: var(--faint);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

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

.docs-hero {
  padding: 56px 0 38px;
}

.docs-section {
  background: var(--bg-2);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0 76px;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10131b;
  padding: 16px;
}

.docs-sidebar-title {
  margin-bottom: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-nav-list {
  display: grid;
  gap: 4px;
}

.docs-nav-link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
  padding: 9px 10px;
}

.docs-nav-link:hover {
  background: #151924;
  color: var(--ink);
}

.docs-nav-link.active {
  background: var(--accent-panel);
  color: var(--accent-soft);
}

.docs-content {
  min-width: 0;
  max-width: 900px;
  color: var(--ink-soft);
}

.docs-content h1 {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.04;
  font-weight: 650;
}

.docs-content h2 {
  max-width: 820px;
  margin: 48px 0 16px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.14;
}

.docs-content h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.22;
}

.docs-content h4 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 16px;
}

.docs-content p,
.docs-content li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.docs-content p {
  margin: 0 0 18px;
}

.docs-content ul,
.docs-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.docs-content li + li {
  margin-top: 8px;
}

.docs-content a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docs-content strong {
  color: var(--ink);
}

.docs-content code {
  border: 1px solid #263045;
  border-radius: 5px;
  background: #0d111a;
  color: #e4e7ee;
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.12em 0.35em;
}

.docs-content pre {
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090c12;
  box-shadow: none;
}

.docs-content pre code {
  display: block;
  min-width: max-content;
  border: 0;
  background: transparent;
  color: #d9deea;
  padding: 0;
  white-space: pre;
}

.docs-content blockquote {
  margin: 24px 0;
  border-left: 3px solid var(--accent);
  background: #10131b;
  padding: 16px 18px;
}

.docs-content blockquote p:last-child {
  margin-bottom: 0;
}

.docs-content table {
  display: block;
  width: 100%;
  margin: 22px 0 30px;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 14px;
}

.docs-content th,
.docs-content td {
  min-width: 120px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  background: #151924;
  color: var(--ink);
  font-weight: 700;
}

.docs-content td {
  background: #0e1118;
}

.docs-content hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.mobile-menu {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .hero-grid,
  .graph-section,
  .grid-2,
  .grid-3,
  .pillars,
  .steps,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    gap: 22px;
    padding-top: 24px;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 30px;
  }

  .nav-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 4px;
    margin-left: 0;
  }

  .nav-actions {
    order: 4;
    width: 100%;
    display: flex;
    gap: 10px;
    margin-left: 0;
  }

  .mobile-menu {
    display: none;
    margin-left: auto;
  }

  .mobile-panel {
    border-top: 1px solid var(--line);
    background: #0d1017;
  }

  .mobile-panel .wrap {
    display: grid;
    gap: 10px;
    padding: 14px 0;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap,
  .nav-inner {
    width: min(var(--max), calc(100vw - 28px));
  }

  .hero {
    padding: 52px 0 56px;
  }

  .section-pad {
    padding: 56px 0;
  }

  .docs-hero {
    padding: 42px 0 28px;
  }

  .docs-nav-list {
    grid-template-columns: 1fr;
  }

  .docs-content h1 {
    font-size: 36px;
  }

  .docs-content p,
  .docs-content li {
    font-size: 15px;
  }

  h1 {
    font-size: 44px;
  }

  .brand-name span {
    display: none;
  }

  pre {
    font-size: 12px;
    padding: 18px;
  }
}
