/* Copyright (c) 2026 Quantum Chain PTE Ltd. All Rights Reserved. */
:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0c0f10;
  --panel-2: #111719;
  --line: #263035;
  --muted: #9ca8ad;
  --white: #f7f7f5;
  --teal: #3d7a8a;
  --teal-bright: #67b4c7;
  --sidebar: 248px;
  --topbar: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 28px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.7 Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--topbar);
  display: grid;
  grid-template-columns: var(--sidebar) 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgb(5 5 5 / 92%);
  backdrop-filter: blur(16px);
}
.brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .17em;
}
.brand b { font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--teal-bright);
  color: var(--teal-bright);
  font-weight: 600;
}
.topbar nav { display: flex; gap: 34px; padding: 0 34px; }
.topbar nav a, .site-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.topbar nav a:hover, .site-link:hover { color: var(--white); }
.site-link { padding: 0 30px; }
.sidebar {
  position: fixed;
  z-index: 10;
  top: var(--topbar);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  padding: 30px 24px 60px;
  border-right: 1px solid var(--line);
  background: #080909;
  overflow-y: auto;
}
.sidebar a {
  display: block;
  padding: 7px 10px;
  margin: 2px 0;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.sidebar a:hover, .sidebar a.active { color: var(--white); border-left-color: var(--teal-bright); background: #101516; }
.side-label { margin: 24px 10px 7px; color: #647176; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.side-label:first-child { margin-top: 0; }
main { margin-left: var(--sidebar); padding-top: var(--topbar); }
section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 100px 70px;
  border-bottom: 1px solid var(--line);
}
.hero { position: relative; max-width: none; min-height: 760px; padding-top: 130px; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 660px;
  height: 660px;
  right: -220px;
  top: 20px;
  border: 1px solid #21434b;
  border-radius: 50%;
  box-shadow: 0 0 0 110px rgb(61 122 138 / 3%), 0 0 0 220px rgb(61 122 138 / 2%);
}
.eyebrow, .kicker { color: var(--teal-bright); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 28px 0; font-size: clamp(56px, 7vw, 100px); line-height: .98; letter-spacing: -.055em; font-weight: 400; }
h1 span { color: var(--teal-bright); }
h2 { max-width: 780px; margin: 16px 0 22px; font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -.035em; font-weight: 400; }
h2 code { font-size: .85em; }
h3 { margin: 52px 0 14px; font-size: 22px; line-height: 1.3; font-weight: 500; }
p { max-width: 800px; color: #c1c9cc; }
.lead { max-width: 760px; margin: 0 0 36px; color: #c7d0d3; font-size: 20px; line-height: 1.6; }
.actions { display: flex; gap: 12px; margin: 32px 0 86px; }
.button { padding: 12px 20px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.button.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.button.primary:hover { background: #4d8f9f; }
.button.secondary:hover { border-color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 880px; border-top: 1px solid var(--line); }
.principles div { padding: 24px 28px 20px 0; }
.principles strong { display: block; font-size: 22px; font-weight: 500; }
.principles span { color: var(--muted); font-size: 13px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: #b9e0e9; }
.code-card { margin: 28px 0; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.code-card.compact { max-width: 520px; }
.code-head { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); color: #7f8d92; font: 11px/1 Inter, Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.copy { border: 1px solid #344046; background: #111719; color: #c7d0d3; padding: 6px 11px; cursor: pointer; font: inherit; letter-spacing: .08em; }
.copy:hover { border-color: var(--teal-bright); color: var(--white); }
pre { margin: 0; padding: 24px; overflow-x: auto; color: #d7e0e3; font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
pre code { color: inherit; }
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: #e5eaec; font-size: 12px; letter-spacing: .04em; }
td { color: #b5c0c4; }
tr:last-child td { border-bottom: 0; }
.break { max-width: 290px; overflow-wrap: anywhere; }
.note { display: grid; grid-template-columns: 170px 1fr; gap: 20px; margin: 34px 0; padding: 22px; border-left: 3px solid var(--teal-bright); background: #0d1416; }
.note b { font-size: 14px; }
.note span { color: #aeb9bd; }
.steps { max-width: 820px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 42px 110px 1fr; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); color: #aeb9bd; }
.steps li::before { content: "0" counter(steps); color: var(--teal-bright); font: 12px "SFMono-Regular", monospace; }
.steps b { color: var(--white); }
.method-grid { display: grid; grid-template-columns: minmax(270px, 1fr) 1fr; border: 1px solid var(--line); background: var(--panel); }
.method-grid > * { padding: 11px 15px; border-bottom: 1px solid var(--line); }
.method-grid span { color: var(--muted); }
.method-list { max-width: 900px; line-height: 2.25; }
.method-list code { display: inline-block; margin: 3px 4px 3px 0; padding: 2px 8px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; }
.checks { max-width: 800px; padding: 0; list-style: none; }
.checks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); color: #bdc7ca; }
.checks li::before { content: "✓"; position: absolute; left: 5px; color: var(--teal-bright); }
footer { margin-left: var(--sidebar); padding: 34px 70px 50px; display: flex; flex-wrap: wrap; gap: 10px 34px; color: #78868b; font-size: 12px; }
footer a { color: #a3b1b6; }

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .topbar { grid-template-columns: 1fr auto; }
  .brand { border-right: 0; }
  .topbar nav, .sidebar { display: none; }
  .site-link { padding-right: 20px; }
  section { padding: 76px 28px; }
  .hero { min-height: auto; padding-top: 96px; }
  .principles { grid-template-columns: 1fr; }
  .principles div { border-bottom: 1px solid var(--line); }
  footer { padding: 30px 28px; }
}

@media (max-width: 580px) {
  .brand { padding: 0 14px; font-size: 11px; }
  .site-link { font-size: 0; }
  .site-link::after { content: "Website ↗"; font-size: 12px; }
  h1 { font-size: 52px; }
  .actions { flex-direction: column; }
  .button { text-align: center; }
  .note { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid code { border-bottom: 0; padding-bottom: 2px; }
  .method-grid span { padding-top: 2px; }
  .steps li { grid-template-columns: 34px 1fr; }
  .steps li b { grid-column: 2; }
  pre { padding: 18px; font-size: 12px; }
}
