/* Spliceloom — website and documentation styles. Dark, editorial, restrained. No external assets. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-1: #080808;
  --bg-2: #0b0c0d;
  --bg-3: #141618;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #edebe7;
  --text-2: #a4a8ad;
  --text-3: #6b7076;
  --accent: #a8c1d9;
  --accent-2: #6f93b6;
  --accent-soft: rgba(168, 193, 217, 0.1);
  --ok: #8fcfae;
  --warn: #e3c07f;
  --fail: #e48d8d;
  --radius: 14px;
  --radius-sm: 8px;
  --shell: 1240px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* fine grain over everything */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.035;
  z-index: 100;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: rgba(168, 193, 217, 0.28);
}
code,
kbd,
pre,
.mono {
  font-family: var(--mono);
}
code {
  font-size: 0.88em;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
p {
  margin: 0;
}
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}
.narrow {
  max-width: 760px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
}
.btn-solid {
  background: var(--text);
  color: #0a0c0e;
}
.btn-solid:hover {
  background: #fff;
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.05);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
}
.text-link .arrow {
  width: 14px;
  height: 14px;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.text-link:hover .arrow {
  transform: translate(2px, -2px);
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-2);
  font: 500 13px/1.4 var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}
.link-button:hover {
  color: var(--text);
}
.link-button:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* ------------------------------------------------------------------ header */
/* A floating card with a brushed-silver edge: 10px gap + 54px card = the 64px the layout reserves. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  padding-top: 10px;
  pointer-events: none;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 54px;
  width: min(var(--shell), calc(100% - 32px));
  padding: 0 8px 0 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 26, 29, 0.78), rgba(10, 11, 12, 0.82)) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(168, 193, 217, 0.14) 28%, rgba(255, 255, 255, 0.05) 52%, rgba(214, 222, 230, 0.34) 100%) border-box;
  box-shadow:
    0 18px 50px -18px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  pointer-events: auto;
}
/* soft sheen along the top edge */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0 18% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.mark {
  width: 26px;
  height: 26px;
  fill: none;
}
.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.main-nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.main-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.nav-extra {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
/* grid children may shrink below their content (long code lines scroll instead of widening the page) */
.hero-frame > *,
.split > *,
.feature-frame > *,
.doc-layout > *,
.compare > *,
.registry-grid > *,
.dev-grid > *,
.skill-grid > * {
  min-width: 0;
}
.nav-quiet {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.nav-quiet:hover {
  color: var(--text);
}
.search-trigger,
.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: 400 13px/1 var(--sans);
  cursor: pointer;
}
.search-trigger svg,
.search-field svg {
  width: 14px;
  height: 14px;
}
.search-trigger:hover,
.search-field:hover {
  border-color: var(--line-3);
  color: var(--text);
}
kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-3);
  text-align: center;
}
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}
.menu-toggle span:first-child {
  top: 15px;
}
.menu-toggle span:last-child {
  top: 21px;
}
.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ------------------------------------------------------------------ sections */
.section {
  padding: 112px 0;
  position: relative;
}
.section-rule {
  border-top: 1px solid var(--line);
}
.section-panel {
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.section-head {
  margin-bottom: 64px;
  max-width: 820px;
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .kicker::before {
  display: none;
}
.section-lead {
  margin-top: 24px;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.65;
}
.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
}
.split-head .section-lead {
  margin-top: 0;
  font-size: 16px;
}
.more {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
}
.note {
  color: var(--text-3);
  font-size: 14px;
  margin-top: 20px;
}
.note a {
  color: var(--text-2);
}
.display {
  font-size: clamp(44px, 7vw, 88px);
  margin-bottom: 24px;
}
.lead {
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}


/* ------------------------------------------------------------------ split + terminal */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.split-copy h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  margin-bottom: 22px;
}
.split-copy > p:not(.kicker):not(.note) {
  color: var(--text-2);
  font-size: 17px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0c0d0e, #080808);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.lights {
  display: flex;
  gap: 7px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.terminal-title {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 auto;
}
.terminal-replay {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--text-3);
  border-radius: 999px;
  font: 500 11px/1 var(--mono);
  padding: 6px 10px;
  cursor: pointer;
  visibility: hidden;
}
.js .terminal-replay {
  visibility: visible;
}
.terminal-replay:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.terminal-body {
  margin: 0;
  padding: 22px 22px 26px;
  min-height: 520px;
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--text-2);
}
.terminal-body code {
  font-size: inherit;
}
.t-line {
  display: block;
  white-space: pre;
}
.t-prompt {
  color: var(--accent);
  user-select: none;
}
.t-cmd {
  color: var(--text);
}
.t-cmd + .caret,
.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  vertical-align: -2px;
  background: var(--text);
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.tl-ok {
  color: var(--ok);
}
.tl-dim {
  color: var(--text-3);
}
.tl-strong {
  color: var(--text);
  font-weight: 600;
}
.terminal .t-path {
  color: #7fb4e8;
  user-select: none;
}
.terminal .t-prompt {
  color: #28c840;
}
.terminal .t-live,
.terminal .t-ok {
  color: #3fd16b;
}
.terminal .tl-name {
  color: var(--text);
  font-weight: 600;
}
.terminal .tk {
  color: var(--text-3);
}
.terminal .tj-k {
  color: #8cc4ff;
}
.terminal .tj-s {
  color: #f1c27d;
}
.terminal .tj-n {
  color: #c9a3ff;
}
.terminal strong {
  color: var(--text);
  font-weight: 600;
}
.t-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.t-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  font: 500 12px/1 var(--mono);
  padding: 8px 10px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.t-tab:hover {
  color: var(--text);
}
.t-tab.is-active {
  color: var(--text);
  border-bottom-color: #28c840;
}
.t-scene {
  display: block;
}
.t-scene + .t-scene {
  margin-top: 18px;
}
.js .t-scene:not(.is-active) {
  display: none;
}
.js .t-scene + .t-scene {
  margin-top: 0;
}
.terminal .t-up {
  color: #3fd16b;
}
.terminal .t-down {
  color: #ff6b6b;
}
.terminal .t-warn {
  color: #febc2e;
}
.terminal-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-caption {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-3);
}
.cmd-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cmd-list li {
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-1);
}
.split-cli {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.section-cli .terminal {
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 80px -30px rgba(127, 180, 232, 0.18);
}
.section-cli .terminal-body {
  min-height: 600px;
}
.tl-cmd:not(:first-child) {
  margin-top: 10px;
}
.js .terminal[data-ready] .t-line.is-hidden {
  display: none;
}


/* ------------------------------------------------------------------ skills */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.skill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s var(--ease);
}
.skill:hover {
  border-color: var(--line-2);
}
.skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.skill-head h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.skill-head a {
  text-decoration: none;
}
.skill-head a:hover {
  color: var(--accent);
}
.skill-version {
  font-size: 12px;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  border-radius: 999px;
}
.skill-version.updated {
  color: var(--accent);
  border-color: rgba(168, 193, 217, 0.4);
}
.skill-desc {
  color: var(--text-2);
  font-size: 14.5px;
}
.skill-facts {
  margin: 0;
  display: grid;
  gap: 10px;
}
.skill-facts > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
}
.skill-facts dt {
  font: 500 11px/24px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.skill-facts dd {
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips code,
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font: 400 12px/1 var(--mono);
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.chip-ok {
  color: var(--ok);
  border-color: rgba(143, 207, 174, 0.25);
}
.chip-warn {
  color: var(--warn);
  border-color: rgba(227, 192, 127, 0.25);
}
.chip-cap {
  color: var(--accent);
  border-color: rgba(168, 193, 217, 0.25);
}
.hash {
  font-size: 12px;
  color: var(--text-3);
}
.skill-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.verify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--mono);
  color: var(--text-2);
}
.verify .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}
.verify-ok {
  color: var(--ok);
}
.verify-ok .dot {
  background: var(--ok);
}
.verify-fail,
.verify-fail .dot {
  color: var(--fail);
}
.verify-fail .dot {
  background: var(--fail);
}
.verify-result {
  flex-basis: 100%;
  font: 400 12px/1.5 var(--mono);
  color: var(--text-3);
}
.verify-result:empty {
  display: none;
}
.verify-result.ok {
  color: var(--ok);
}
.verify-result.fail {
  color: var(--fail);
}
.data-status {
  color: var(--text-3);
}


.callout {
  margin-top: 26px !important;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(168, 193, 217, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text) !important;
  font-size: 15.5px !important;
}
.callout strong {
  font-weight: 600;
}
.fact-list {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fact-list > div {
  background: #090a0b;
  padding: 14px 16px;
}
.fact-list dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.fact-list dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.why-grid,
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sec-grid {
  grid-template-columns: repeat(4, 1fr);
}
.why-grid article,
.sec-grid article {
  background: var(--bg);
  padding: 30px 28px;
}
.section-panel .sec-grid article {
  background: var(--bg-1);
}
.why-grid h3,
.sec-grid h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.why-grid p,
.sec-grid p {
  color: var(--text-2);
  font-size: 14.5px;
}
.limits {
  margin-top: 24px;
  border: 1px solid rgba(227, 192, 127, 0.22);
  border-radius: var(--radius);
  padding: 28px 30px;
  background: rgba(227, 192, 127, 0.03);
}
.limits h3 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 14px;
}
.limits ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text-2);
  display: grid;
  gap: 8px;
}


/* ------------------------------------------------------------------ developers */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.dev-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-1);
}
.dev-grid header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.dev-grid h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.dev-grid header span {
  font-size: 12px;
  color: var(--text-3);
}
.dev-grid p {
  color: var(--text-2);
  font-size: 14.5px;
}
.dev-grid pre {
  flex: 1;
}

/* code blocks (landing + docs) */
pre.code {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #0a0a0b;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
pre.code code {
  font-size: inherit;
}
.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-3);
  font: 500 11px/1 var(--mono);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
pre.code:hover .copy-button,
.copy-button:focus-visible {
  opacity: 1;
}
.copy-button:hover {
  color: var(--text);
}


/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: 132px;
  padding: 88px 0 48px;
  background: #030303;
  border-top: 1px solid var(--line);
}
.doc .site-footer {
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--text-3);
  max-width: 300px;
  font-size: 14.5px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-cols h2 {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
}
.footer-cols a:hover {
  color: var(--text);
}
.footer-meta {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  color: var(--text-3);
  font-size: 13px;
}
.footer-meta p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-meta .footer-notice {
  max-width: 820px;
  padding: 10px 14px;
  border: 1px solid rgba(168, 193, 217, 0.22);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text-2);
}

.footer-notice .token-ca {
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-notice .copy-inline {
  margin-left: 6px;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ------------------------------------------------------------------ reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
/* Phones: content is simply there — no fade-in gaps while scrolling. */
@media (max-width: 820px) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------------ docs */
.doc-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 210px;
  gap: 56px;
  align-items: start;
  max-width: 1400px;
}
.doc-sidebar {
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 28px 4px 48px 0;
  scrollbar-width: thin;
}
.search-field {
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px;
  margin-bottom: 26px;
}
.search-field span {
  flex: 1;
  text-align: left;
}
.nav-group {
  margin-bottom: 26px;
}
.nav-group h2 {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px 10px;
}
.nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  border-left: 1px solid transparent;
}
.nav-group a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.nav-group a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}
.doc-main {
  padding: 32px 0 96px;
  min-width: 0;
}
.doc-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.sidebar-toggle {
  display: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.breadcrumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.breadcrumbs [aria-current] {
  color: var(--text-2);
}
.doc-toc {
  position: sticky;
  top: 64px;
  padding: 36px 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.doc-toc h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.doc-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}
.doc-toc a:hover,
.doc-toc a.active {
  color: var(--text);
  border-left-color: var(--accent);
}
.prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: #d6d3cd;
}
.prose h1 {
  font-size: clamp(34px, 4vw, 46px);
  margin: 0 0 22px;
  color: var(--text);
  letter-spacing: -0.035em;
}
.prose h2 {
  font-size: 26px;
  margin: 56px 0 16px;
  padding-top: 8px;
  color: var(--text);
}
.prose h3 {
  font-size: 19px;
  margin: 36px 0 12px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.prose h4 {
  font-size: 16px;
  margin: 28px 0 10px;
  color: var(--text);
}
.prose h1 .anchor,
.prose h2 .anchor,
.prose h3 .anchor,
.prose h4 .anchor {
  float: left;
  margin-left: -22px;
  padding-right: 6px;
  color: var(--text-3);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
}
.prose h2:hover .anchor,
.prose h3:hover .anchor,
.prose h4:hover .anchor {
  opacity: 1;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose .table-wrap {
  margin: 0 0 20px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose li::marker {
  color: var(--text-3);
}
.prose a {
  color: var(--text);
  text-decoration-color: rgba(168, 193, 217, 0.45);
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85em;
  word-break: break-word;
}
.prose blockquote {
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(168, 193, 217, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose th {
  background: var(--bg-1);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.link-text {
  color: var(--text);
}
.pager {
  max-width: 760px;
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pager a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.pager a:hover {
  border-color: var(--line-3);
}
.pager span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pager strong {
  font-weight: 500;
}
.pager-next {
  text-align: right;
}
.skill-meta {
  max-width: 760px;
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
}
.skill-meta dl {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.skill-meta dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}
.skill-meta dt {
  font: 500 11px/22px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.skill-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  word-break: break-all;
}

/* search dialog */
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 4, 5, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
}
.search-dialog[hidden] {
  display: none;
}
.search-panel {
  width: 100%;
  max-width: 640px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.search-input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 400 16px var(--sans);
  outline: none;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 52vh;
  overflow-y: auto;
}
.search-results:empty {
  display: none;
}
.search-results a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.search-results a[aria-selected="true"],
.search-results a:hover {
  background: var(--accent-soft);
}
.search-results .r-title {
  font-weight: 500;
  font-size: 14.5px;
}
.search-results .r-meta {
  font: 400 11.5px var(--mono);
  color: var(--text-3);
}
.search-results .r-empty {
  padding: 16px 12px;
  color: var(--text-3);
  font-size: 14px;
}
.search-hint {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ landing: header over the hero */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

/* ------------------------------------------------------------------ hero: full-bleed video */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* the poster is the fallback: no JS, reduced motion, Save-Data, or before the video plays */
  background: var(--bg) url("media/hero-poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
}
.hero-video.is-playing {
  opacity: 1;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 62% 38%, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.5) 58%, rgba(5, 5, 5, 0.94) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.6) 42%, rgba(5, 5, 5, 0.3) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.25) 26%, rgba(5, 5, 5, 0.4) 64%, var(--bg) 100%);
}
.hero-inner {
  padding-top: 160px;
  padding-bottom: 72px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-eyebrow span {
  color: var(--text-3);
  margin: 0 6px;
}
.hero h1 {
  margin: 28px 0 30px;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 15ch;
}
.hero-lead {
  max-width: 580px;
  color: var(--text-2);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.6;
}
.hero .cta-row {
  margin-top: 40px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-inner > *,
.hero-meta {
  animation: rise 1.4s var(--ease) both;
}
.hero-inner > :nth-child(2) {
  animation-delay: 0.12s;
}
.hero-inner > :nth-child(3) {
  animation-delay: 0.24s;
}
.hero-inner > :nth-child(4) {
  animation-delay: 0.36s;
}
.hero-meta {
  animation-delay: 0.6s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 36px;
}
.cta-row.center {
  justify-content: center;
}

/* ------------------------------------------------------------------ what is spliceloom */
.statement h2 {
  font-size: clamp(36px, 5vw, 66px);
  max-width: 17ch;
}
.statement-body {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.statement-body .section-lead {
  margin-top: 0;
}
.terms {
  margin: 0;
}
.terms > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.terms > div:last-child {
  border-bottom: 1px solid var(--line);
}
.terms dt {
  font-weight: 500;
}
.terms dd {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ------------------------------------------------------------------ how it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 24px;
}
.steps li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--text-3);
}
.steps li:last-child::before {
  background: var(--accent);
  border-color: var(--accent);
}
.steps .step {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.steps h3 {
  font-size: 19px;
}
.steps p {
  color: var(--text-2);
  font-size: 14.5px;
  flex: 1;
}
.steps code {
  font-size: 12px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ skills */
.skill-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.subhead {
  margin: 64px 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ capability layer */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  background: var(--bg);
  padding: 32px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap h3 {
  font-size: 21px;
}
.cap p {
  color: var(--text-2);
  font-size: 14.5px;
}
.cap .cap-list {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.cap .cap-providers {
  font-size: 13px;
  color: var(--text-3);
}
.cap-providers .mono {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}
.p-name {
  color: var(--text-2);
}

/* ------------------------------------------------------------------ robinhood chain */
.rh {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}
.rh-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 24px;
}
.rh-copy > p:not(.kicker):not(.note):not(.more):not(.callout) {
  color: var(--text-2);
  font-size: 17px;
}
.rh .fact-list {
  margin: 0;
}

/* ------------------------------------------------------------------ security, developers */
.sec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dev-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ------------------------------------------------------------------ final cta */
.cta {
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 100% at 50% 0%, rgba(168, 193, 217, 0.07), transparent 70%);
}
.cta-inner {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta h2 {
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.045em;
}
.cta .cta-row {
  margin-top: 40px;
}
.cta .code-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 64px 14px 20px;
  font-size: 15px;
  max-width: 100%;
  text-align: left;
}
.home .site-footer {
  margin-top: 0;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-layout {
    grid-template-columns: 236px minmax(0, 1fr);
  }
  .doc-toc {
    display: none;
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
  }
}
@media (max-width: 980px) {
  /* Mobile menu: an opaque full-screen sheet under the header card; the page behind is locked. */
  .header-inner {
    /* backdrop-filter would make the card the containing block of the fixed sheet */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background:
      linear-gradient(180deg, rgba(24, 26, 29, 0.94), rgba(10, 11, 12, 0.96)) padding-box,
      linear-gradient(120deg, rgba(255, 255, 255, 0.42), rgba(168, 193, 217, 0.14) 28%, rgba(255, 255, 255, 0.05) 52%, rgba(214, 222, 230, 0.34) 100%) border-box;
  }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 84px 20px calc(28px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 60% at 50% 0%, rgba(168, 193, 217, 0.08), transparent 60%), var(--bg);
  }
  .main-nav a {
    padding: 16px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    background: none;
    box-shadow: none;
    color: var(--accent);
  }
  .menu-open .main-nav {
    display: flex;
    animation: sheet-in 0.28s var(--ease);
  }
  .menu-open {
    overflow: hidden;
  }
  .nav-extra {
    display: flex;
    gap: 10px;
    margin-top: 28px;
  }
  .main-nav .nav-extra a {
    flex: 1;
    justify-content: center;
    border-bottom: 0;
    padding: 14px 16px;
    font-size: 15px;
    letter-spacing: 0;
  }
  .main-nav .nav-extra .btn-ghost {
    color: var(--text);
    border: 1px solid var(--line-2);
    border-radius: 999px;
  }
  .main-nav .nav-extra .btn-solid {
    color: #0a0a0a;
    border-radius: 999px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-quiet,
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .split,
  .split-head,
  .statement-body,
  .rh,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .split,
  .split-head,
  .statement-body,
  .rh {
    gap: 40px;
  }
  .skill-grid-3,
  .cap-grid,
  .sec-grid,
  .dev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .doc-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    max-height: none;
    z-index: 60;
    background: var(--bg-1);
    border-right: 1px solid var(--line);
    padding: 22px 18px 40px;
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease);
  }
  .sidebar-open .doc-sidebar {
    transform: none;
  }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 0 16px;
  }
  .section {
    padding: 88px 0;
  }
  .header-actions .btn-sm {
    display: none;
  }
  .hero-inner {
    padding-top: 128px;
    padding-bottom: 48px;
  }
  .hero h1 {
    margin: 22px 0 22px;
  }
  .hero h1 br {
    display: none;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.5) 30%, rgba(5, 5, 5, 0.78) 62%, var(--bg) 100%),
      radial-gradient(120% 80% at 50% 30%, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.6) 100%);
  }
  .hero-meta {
    flex-direction: column;
    font-size: 10.5px;
  }
  .steps,
  .skill-grid,
  .skill-grid-3,
  .cap-grid,
  .sec-grid,
  .dev-grid,
  .fact-list,
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    gap: 36px;
  }
  .terms > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .header-inner {
    width: calc(100% - 24px);
    padding: 0 6px 0 14px;
  }
  /* One fixed height for every scene: switching scenes never moves the page. Wide rows scroll
     inside the terminal, never the page. */
  .terminal-body,
  .section-cli .terminal-body {
    height: 440px;
    min-height: 0;
    font-size: 10.5px;
    line-height: 1.7;
    padding: 14px;
    overflow: auto;
    overscroll-behavior-x: contain;
  }
  .t-tabs {
    justify-content: space-between;
    gap: 0;
    padding: 4px 6px 0;
  }
  .t-tab {
    padding: 8px 5px 9px;
    font-size: 10.5px;
  }
  /* commands wrap; tables keep their columns and scroll inside the terminal */
  .t-line.tl-cmd {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .terminal-title {
    font-size: 11px;
  }
  .skill-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-video {
    display: none;
  }
}

/* ------------------------------------------------------------------ what's new */
.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(20, 22, 24, 0.75), rgba(8, 9, 10, 0.75)) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(168, 193, 217, 0.12) 40%, rgba(214, 222, 230, 0.28)) border-box;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: color 0.2s;
}
.news-pill span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #06080a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-pill:hover {
  color: var(--text);
}
.news-pill .arrow {
  width: 13px;
  height: 13px;
}

/* ------------------------------------------------------------------ video */
.video-figure {
  margin: 28px 0;
}
.video-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, 0.32), rgba(168, 193, 217, 0.12) 35%, rgba(255, 255, 255, 0.05) 60%, rgba(214, 222, 230, 0.26)) border-box;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 90px -40px rgba(127, 180, 232, 0.3);
}
.video-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
}
.video-figure figcaption strong {
  color: var(--text-2);
  font-weight: 500;
}
.watch .video-figure {
  margin: 0;
}

/* ------------------------------------------------------------------ why */
.why-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.why-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}
.why-row:first-child {
  border-top: 0;
}
.why-head {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}
.why-k {
  color: var(--accent);
  font-size: 13px;
  padding-top: 2px;
}
.why-no {
  color: var(--text-3);
}
.why-yes {
  color: var(--text);
}
.why-head .why-yes,
.why-head span:last-child {
  color: var(--accent);
}

/* ------------------------------------------------------------------ blog */
.article .kicker a {
  color: inherit;
  text-decoration: none;
}
.article .lead {
  margin-bottom: 36px;
}
.post-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.post-list a {
  display: grid;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-2);
}
.post-list strong {
  color: var(--text);
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.post-list time {
  font-size: 12px;
  color: var(--text-3);
}
.post-list a:hover strong {
  color: var(--accent);
}

/* ------------------------------------------------------------------ registry */
.registry-search {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 28px;
  padding: 0 18px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
}
.registry-search span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.registry-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 16px/1 var(--sans);
}
.registry-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.registry-item .skill {
  flex: 1;
}
.install-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.install-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.copy-inline {
  border: 1px solid var(--line-2);
  background: none;
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 12px;
  font: 500 12px/1 var(--sans);
  cursor: pointer;
}
.copy-inline:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.empty-note {
  color: var(--text-3);
}

/* ------------------------------------------------------------------ brand */
.brand-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 10px;
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.brand-tile svg {
  width: 64px;
  height: 64px;
}
.brand-tile.dark {
  background: radial-gradient(70% 90% at 70% 30%, rgba(168, 193, 217, 0.12), transparent 60%), #050505;
  color: #edebe7;
}
.brand-tile.light {
  background: #edebe7;
  color: #0b0c0d;
}
.brand-files {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.brand-files a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.brand-files a:hover {
  border-color: var(--line-3);
  color: var(--text);
}
.brand-files .mono {
  color: var(--accent);
  font-size: 12px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.swatch {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}
.swatch i {
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.swatch strong {
  color: var(--text);
  font-weight: 500;
}
.type-specimen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.type-specimen > div {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.spec-sans,
.spec-mono {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 44px;
  letter-spacing: -0.04em;
}
.spec-mono {
  font-family: var(--mono);
  font-size: 36px;
  letter-spacing: -0.02em;
}
.brand-page .subhead {
  margin-top: 56px;
}

/* ------------------------------------------------------------------ registry health */
.health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.health i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}
.health.is-up i {
  background: #3fd16b;
  box-shadow: 0 0 10px rgba(63, 209, 107, 0.7);
}
.health.is-down i {
  background: #e3c07f;
}

@media (max-width: 820px) {
  .why-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 18px;
  }
  .why-head {
    display: none;
  }
  .why-no::before {
    content: "Without: ";
    color: var(--text-3);
  }
  .why-yes::before {
    content: "With Splice: ";
    color: var(--accent);
  }
  .brand-hero,
  .type-specimen {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-tile {
    height: 180px;
    font-size: 40px;
  }
  .news-pill {
    font-size: 13px;
  }
}

.registry-item[hidden] {
  display: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.swatch-chip {
  display: block;
  width: 100%;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- live pages: /token, /live, /ask */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.live-page .fine {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
}
.live-page .muted {
  color: var(--text-3);
}
.live-page .up {
  color: var(--ok);
}
.live-page .down {
  color: var(--fail);
}
.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(168, 193, 217, 0.22);
  background: var(--accent-soft);
}
.ca-row .mono {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ca-row code {
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.stat-card,
.live-card,
.burn-panel {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 20px 22px;
  min-width: 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-card .mono,
.burn-head .mono,
.tvl-head .mono {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat-card strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stat-card small,
.card-source {
  font: 400 12px/1.4 var(--mono);
  color: var(--text-3);
}
.burn-panel {
  margin-top: 14px;
}
.burn-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.burn-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.burn-head strong {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.burn-pct {
  text-align: right;
}
.burn-pct strong {
  color: #ff9a62;
}
.burn-bar {
  display: block;
  width: 100%;
  height: 14px;
  margin: 18px 0;
}
.burn-bar .track {
  fill: rgba(255, 255, 255, 0.06);
}
.burn-bar .fill {
  fill: #ff8a4c;
}
.burn-addresses,
.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.burn-addresses li,
.source-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.burn-addresses code {
  overflow-wrap: anywhere;
  color: var(--text-2);
}
.source-list .mono {
  font-size: 13px;
  color: var(--text-3);
}
.source-list .status-live,
.source-list .status-cached {
  color: var(--ok);
}
.source-list .status-unavailable,
.source-list .status-error {
  color: var(--warn);
}
.tvl-card {
  margin-bottom: 14px;
}
.tvl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.tvl-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tvl-head strong {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.tvl-changes {
  display: flex;
  gap: 16px;
  font: 400 14px/1 var(--mono);
  color: var(--text-2);
}
.tvl-chart {
  display: block;
  width: 100%;
  height: 220px;
  margin: 18px 0 10px;
}
.tvl-chart .area {
  fill: rgba(168, 193, 217, 0.12);
}
.tvl-chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.live-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.live-card > table,
.tab-panel > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}
.live-card > table th,
.tab-panel > table th {
  text-align: left;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px 10px 0;
}
.live-card > table td,
.tab-panel > table td {
  padding: 9px 8px 9px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.live-card > table td.strong,
.tab-panel > table td.strong {
  color: var(--text);
  font-weight: 500;
}
.live-card .card-source {
  margin: 10px 0 0;
}
.ask-form {
  margin-top: 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 14px 16px;
}
.ask-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px/1.5 var(--sans);
}
.ask-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ask-actions .mono {
  font-size: 12px;
  color: var(--text-3);
}
.ask-actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.ask-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.ask-examples .chip {
  height: auto;
  padding: 7px 10px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.ask-examples .chip:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.ask-result {
  margin-top: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 20px 22px;
}
.ask-calls {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.ask-calls .ok {
  color: var(--ok);
}
.ask-calls .warn {
  color: var(--warn);
}
.ask-answer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.ask-answer th,
.ask-answer td {
  text-align: left;
  padding: 6px 10px 6px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .burn-pct {
    text-align: left;
  }
  .tvl-head strong {
    font-size: 32px;
  }
}
/* ---------------------------------------------------------------- /token */
.token-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.token-title {
  margin-bottom: 0;
}
.token-price {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.token-price strong {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.token-price small {
  font-size: 12px;
  color: var(--text-3);
}
.chip-change {
  font: 500 14px/1 var(--mono);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.chip-change.up {
  color: var(--ok);
  border-color: rgba(143, 207, 174, 0.35);
  background: rgba(143, 207, 174, 0.08);
}
.chip-change.down {
  color: var(--fail);
  border-color: rgba(228, 141, 141, 0.35);
  background: rgba(228, 141, 141, 0.08);
}
.chart-card {
  margin-top: 18px;
}
.chart-head,
.flow-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}
.chart-head .mono:first-child,
.flow-head .mono:first-child {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chart-hover {
  color: var(--text);
}
.chart-wrap {
  position: relative;
}
.token-chart {
  display: block;
  width: 100%;
  height: 300px;
  margin: 14px 0 6px;
  cursor: crosshair;
  touch-action: pan-y;
}
.token-chart .line {
  fill: none;
  stroke-width: 2;
}
.token-chart .line-up {
  stroke: var(--ok);
}
.token-chart .line-down {
  stroke: var(--fail);
}
.token-chart .g-up-0 {
  stop-color: rgba(143, 207, 174, 0.28);
}
.token-chart .g-down-0 {
  stop-color: rgba(228, 141, 141, 0.24);
}
.token-chart .g-end {
  stop-color: rgba(5, 5, 5, 0);
}
.token-chart .cross {
  stroke: var(--line-3);
  stroke-width: 1;
}
.token-chart .dot {
  fill: var(--text);
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.chart-empty[hidden] {
  display: none;
}
.stat-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}
.stat-grid-4 .stat-card strong {
  font-size: 24px;
}
.flow-card {
  margin-top: 14px;
}
.flow-bar {
  display: block;
  width: 100%;
  height: 12px;
  margin: 14px 0 10px;
}
.flow-bar .buy {
  fill: var(--ok);
}
.flow-bar .sell {
  fill: rgba(228, 141, 141, 0.7);
}
.flow-legend {
  display: flex;
  justify-content: space-between;
  font: 400 13px/1 var(--mono);
}
.token-grid {
  margin-top: 14px;
}
.holder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.holder-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.holder-row {
  display: grid;
  grid-template-columns: 22px auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.holder-row .rank {
  color: var(--text-3);
  font-size: 12px;
}
.holder-row code {
  color: var(--text-2);
}
.holder-label {
  color: var(--accent);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.holder-row strong {
  font-variant-numeric: tabular-nums;
}
.holder-bar {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 7px;
}
.holder-bar .track {
  fill: rgba(255, 255, 255, 0.05);
}
.holder-bar .fill {
  fill: var(--accent-2);
}
.holder-bar .fill-label {
  fill: var(--accent);
}
.trades-table td.up,
.trades-table td.down {
  font-weight: 500;
}
@media (max-width: 860px) {
  .stat-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .token-price {
    justify-items: start;
  }
}
@media (max-width: 520px) {
  .token-chart {
    height: 220px;
  }
  .trades-table th:nth-child(3),
  .trades-table td:nth-child(3) {
    display: none;
  }
}
/* token page: candlestick chart and live indicators */
.tv-chart {
  width: 100%;
  height: 380px;
  margin: 12px 0 6px;
}
.tf-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.tf {
  border: 0;
  background: none;
  color: var(--text-3);
  font: 500 12px/1 var(--mono);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.tf[aria-pressed="true"] {
  background: var(--bg-3);
  color: var(--text);
}
.chart-head {
  align-items: center;
}
.chart-ohlc {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: var(--text-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}
.live-dot.on {
  color: var(--ok);
}
.live-dot.on::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(143, 207, 174, 0.6);
  animation: live-pulse 1.6s infinite;
}
.live-card h2 .live-dot {
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(143, 207, 174, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 207, 174, 0);
  }
}
.token-price strong.tick-up {
  animation: tick-up 1.2s var(--ease);
}
.token-price strong.tick-down {
  animation: tick-down 1.2s var(--ease);
}
@keyframes tick-up {
  0% {
    color: var(--ok);
  }
}
@keyframes tick-down {
  0% {
    color: var(--fail);
  }
}
.trades-table tr.flash-up td {
  animation: flash-up 2.4s var(--ease);
}
.trades-table tr.flash-down td {
  animation: flash-down 2.4s var(--ease);
}
@keyframes flash-up {
  0% {
    background: rgba(143, 207, 174, 0.18);
  }
}
@keyframes flash-down {
  0% {
    background: rgba(228, 141, 141, 0.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot.on::before,
  .token-price strong.tick-up,
  .token-price strong.tick-down,
  .trades-table tr.flash-up td,
  .trades-table tr.flash-down td {
    animation: none;
  }
}
@media (max-width: 520px) {
  .tv-chart {
    height: 280px;
  }
  .chart-ohlc {
    display: none;
  }
}
/* token page: trading-terminal layout */
.token-terminal {
  padding-top: 112px;
}
.shell.wide {
  max-width: 1480px;
}
.term-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 34px;
  padding: 18px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
}
.term-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.term-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text);
}
.term-mark .mark {
  width: 30px;
  height: 30px;
}
.term-id h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.term-id h1 small {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-3);
}
.term-ca {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
}
.term-ca code {
  color: var(--text-2);
}
.term-ca a {
  color: var(--text-2);
}
.term-mc span,
.kv span {
  display: block;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.term-mc strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.term-mc strong.tick-up {
  animation: tick-up 1.2s var(--ease);
}
.term-mc strong.tick-down {
  animation: tick-down 1.2s var(--ease);
}
.term-kvs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}
.kv strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.term-head > .live-dot {
  margin-left: auto;
}
.term-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.term-main,
.term-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.token-terminal .chart-card {
  margin-top: 0;
}
.token-terminal .tv-chart {
  height: 460px;
}
.token-terminal .chart-head {
  gap: 10px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: -6px 0 6px;
}
.tab {
  border: 0;
  background: none;
  color: var(--text-3);
  font: 500 14px/1 var(--sans);
  padding: 12px 12px 13px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab-panel[hidden] {
  display: none;
}
.tabs-card .trades-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}
.win-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.win {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  color: var(--text-3);
  font: 400 12px/1 var(--mono);
}
.win strong {
  font: 600 13px/1 var(--mono);
  color: var(--text-2);
}
.win strong.up {
  color: var(--ok);
}
.win strong.down {
  color: var(--fail);
}
.win[aria-selected="true"] {
  border-color: var(--line-3);
  background: var(--bg-3);
  color: var(--text);
}
.win-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
  text-align: center;
}
.win-stats span {
  display: block;
  font: 400 11px/1 var(--mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.win-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.term-side .flow-bar {
  height: 8px;
  margin: 14px 0 4px;
}
.side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.side-stat span {
  display: block;
  font: 400 11px/1 var(--mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.side-stat strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.side-stat small {
  display: block;
  margin-top: 4px;
  font: 400 11px/1.35 var(--mono);
  color: var(--text-3);
}
.contract-card {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.contract-card .mono {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contract-card code {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--text);
}
.contract-card .fine {
  margin: 0;
}
.sources-card summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sources-card .source-list li {
  font-size: 12px;
}
@media (max-width: 1100px) {
  .term-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .token-terminal .tv-chart {
    height: 320px;
  }
  .term-head > .live-dot {
    margin-left: 0;
  }
  .term-mc strong {
    font-size: 28px;
  }
  .tabs-card .trades-table th:nth-child(3),
  .tabs-card .trades-table td:nth-child(3),
  .tabs-card .trades-table th:nth-child(6),
  .tabs-card .trades-table td:nth-child(6) {
    display: none;
  }
  .chart-head .tf {
    padding: 6px 8px;
  }
}
.tab-panel > table td.up,
.live-card > table td.up {
  color: var(--ok);
}
.tab-panel > table td.down,
.live-card > table td.down {
  color: var(--fail);
}

/* token chart: GMGN-style legend and height */
.chart-legend {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 3;
  pointer-events: none;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  max-width: calc(100% - 90px);
  text-overflow: ellipsis;
}
.chart-legend strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}
.chart-legend b {
  font-weight: 500;
}
.chart-legend b.up {
  color: #2ebd85;
}
.chart-legend b.down {
  color: #f6465d;
}
.tf-log {
  margin-left: auto;
  border: 1px solid var(--line-2);
}
.token-terminal .tv-chart {
  height: 540px;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .token-terminal .tv-chart {
    height: 360px;
  }
  .chart-legend {
    font-size: 10px;
  }
}
/* token page: transparency card */
.transparency-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.transparency-card h2 .mono {
  font-size: 11px;
  font-weight: 400;
}
.tp-dev {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.tp-dev strong {
  font-size: 16px;
  color: var(--text);
}
.tp-dev strong.up {
  color: var(--ok);
}
.tp-addr {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.tp-bar {
  display: block;
  width: 100%;
  height: 10px;
  margin: 16px 0 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}
.tp-curve {
  fill: var(--accent-2);
  background: var(--accent-2);
}
.tp-holders {
  fill: var(--ok);
  background: var(--ok);
}
.tp-burn {
  fill: #ff8a4c;
  background: #ff8a4c;
}
.tp-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.tp-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.tp-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.tp-legend strong {
  font-variant-numeric: tabular-nums;
}
.transparency-card .fine {
  margin: 12px 0 0;
  font-size: 12px;
}
/* ---------------------------------------------------------------- tool pages, holder access, embed */
.footer-cols {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.chip-danger {
  color: var(--fail);
  border-color: rgba(228, 141, 141, 0.35);
}
.live-card td .chips {
  flex-wrap: wrap;
}
.live-card td:has(.chips) {
  white-space: normal;
}
.live-card[data-table="odds"] > table td,
.live-card[data-table="filings"] > table td {
  white-space: normal;
  vertical-align: top;
}
.bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 18px;
}
.bot-grid .live-card {
  margin: 0;
}
.bot-grid .live-card > table td {
  white-space: normal;
  vertical-align: top;
}
.bot-grid .live-card > table td.mono {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
}
.bot-grid .live-card:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 820px) {
  .bot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.live-card[data-table="agents"] > table td {
  white-space: normal;
  vertical-align: top;
}
.live-card[data-table="agents"] > table td:first-child {
  overflow-wrap: anywhere;
}
.live-card[data-table="agents"] > table td:nth-child(2) {
  color: var(--text-2);
}
.live-card[data-table="agents"] > table th:nth-child(1) {
  width: 24%;
}
.live-card[data-table="agents"] > table th:nth-child(2) {
  width: 40%;
}
.live-page .subhead {
  margin: 56px 0 14px;
}
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 820px) {
  .agent-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.agent-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.agent-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.agent-card h3 {
  margin: 0;
  font-size: 17px;
}
.agent-card p {
  margin: 0;
}
.agent-facts {
  font-size: 12px;
  color: var(--text-3);
}
.agent-card .code {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-card summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
}
.agent-instructions {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font: 13px/1.6 var(--sans, inherit);
  color: var(--text-2);
}
.agent-card h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.agent-title {
  font-size: clamp(28px, 4.4vw, 46px);
  overflow-wrap: anywhere;
}
.install-row code.agent-run {
  white-space: pre-wrap;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.agent-skills {
  display: grid;
  gap: 10px;
}
.agent-skill {
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.agent-skill p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.agent-instructions-full {
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.agent-examples {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
  line-height: 1.7;
}
.signup-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.signup-box p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
}
.signup-box [hidden] {
  display: none;
}
.signup-box > div {
  display: grid;
  gap: 12px;
}
.signup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.signup-box .install-row code {
  overflow-wrap: anywhere;
}
.signup-box [data-signup-status]:empty {
  display: none;
}
.signup-box [data-signup-status] {
  font-size: 13px;
  color: var(--ember, #ff8a4c);
}
.agents-steps {
  margin-top: 22px;
}
.agents-steps .cap .code {
  margin-top: 12px;
}
.fine + .live-card {
  margin-top: 28px;
}
.pick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 12px;
}
.screener-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-bottom: 18px;
}
.screener-filters .registry-search {
  margin: 0;
  flex: 0 1 320px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.lookup-form {
  display: flex;
  gap: 10px;
  margin: 26px 0 18px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-1);
}
.lookup-form input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 15px/1 var(--mono);
}
.holder-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
}
.holder-box .mono {
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}
.holder-box .mono.up {
  color: var(--ok);
}
.explain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 18px;
}
.ask-result > .chips {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.explain-fns {
  margin-top: 14px;
}
.explain-fns summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.explain-fns ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  font-size: 12px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.widget-preview {
  margin: 26px 0;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  display: grid;
  place-items: center;
}
.widget-preview iframe {
  border: 0;
  max-width: 100%;
}
.embed-body {
  margin: 0;
  background: transparent;
  min-height: 0;
}
.embed-card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: 18px 20px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg-1);
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
}
.embed-top {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}
.embed-mark .mark {
  width: 20px;
  height: 20px;
  display: block;
}
.embed-top .live-dot {
  margin-left: auto;
}
.embed-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.embed-price strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.embed-spark {
  display: block;
  width: 100%;
  height: 60px;
  margin: 10px 0 8px;
}
.embed-spark .spark {
  fill: none;
  stroke-width: 2;
}
.embed-spark .spark.up {
  stroke: var(--ok);
}
.embed-spark .spark.down {
  stroke: var(--fail);
}
.embed-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.embed-stats b {
  color: var(--text);
  font-weight: 600;
}
.embed-foot {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 640px) {
  .lookup-form {
    flex-direction: column;
    border-radius: var(--radius);
  }
  .lookup-form input {
    height: 44px;
  }
  .explain-fns ul {
    columns: 1;
  }
}