:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(10, 14, 24, 0.88);
  --panel-strong: rgba(8, 11, 19, 0.96);
  --panel-soft: rgba(18, 22, 38, 0.72);
  --ink: #f5f7ff;
  --muted: #aab3c8;
  --faint: #727d98;
  --cyan: #41e9f5;
  --cyan-soft: rgba(65, 233, 245, 0.16);
  --violet: #9b6cff;
  --violet-soft: rgba(155, 108, 255, 0.16);
  --red: #ff4c72;
  --gold: #ffcb66;
  --green: #58e5a1;
  --line: rgba(119, 225, 255, 0.18);
  --line-strong: rgba(119, 225, 255, 0.42);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  --radius: 18px;
  --radius-sm: 10px;
  --content: 1180px;
  --sidebar: 260px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 8%, rgba(83, 55, 179, 0.18), transparent 34rem),
    radial-gradient(circle at 26% 26%, rgba(30, 202, 218, 0.1), transparent 30rem),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--red));
  box-shadow: 0 0 14px rgba(65, 233, 245, 0.8);
  pointer-events: none;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 9, 0.14) 0, rgba(2, 4, 9, 0.92) 72%, var(--bg) 100%),
    url("./images/itemweaver-hero.webp") center top / cover no-repeat;
  content: "";
  opacity: 0.42;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(97, 229, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 229, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a5f8ff;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(20px) saturate(135%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  width: min(100% - 32px, 1460px);
  min-height: 70px;
  margin: auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(111, 239, 255, 0.48);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(62, 237, 244, 0.28), transparent 46%),
    linear-gradient(315deg, rgba(148, 91, 255, 0.32), transparent 48%),
    #0b1120;
  box-shadow: inset 0 0 18px rgba(67, 224, 255, 0.12), 0 0 22px rgba(74, 226, 255, 0.12);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  content: "";
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  border-color: var(--red);
  background: rgba(255, 76, 114, 0.3);
  animation: brand-core 3.2s ease-in-out infinite;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar-spacer {
  flex: 1;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.top-link:hover {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--ink);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 14, 25, 0.78);
}

.language-switch button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.language-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(65, 233, 245, 0.24), rgba(155, 108, 255, 0.24));
  box-shadow: inset 0 0 0 1px rgba(113, 235, 255, 0.24);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, 0.96) 0%, rgba(3, 6, 12, 0.76) 34%, rgba(3, 6, 12, 0.15) 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%),
    url("./images/itemweaver-hero.webp") center / cover no-repeat;
  content: "";
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(1.035);
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero::after {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(65, 233, 245, 0.18);
  background: radial-gradient(circle, rgba(65, 233, 245, 0.13), transparent 66%);
  content: "";
  filter: blur(1px);
  transform: rotate(45deg);
  animation: hero-diamond 9s ease-in-out infinite;
}

.weave-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 23%, rgba(65, 233, 245, 0.06) 23.15%, transparent 23.3%),
    linear-gradient(64deg, transparent 67%, rgba(155, 108, 255, 0.06) 67.15%, transparent 67.3%);
  mask-image: linear-gradient(90deg, transparent 4%, black 43%, black 94%, transparent);
  pointer-events: none;
}

.weave-node {
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  width: 5px;
  height: 5px;
  border: 1px solid rgba(111, 244, 255, 0.9);
  background: rgba(65, 233, 245, 0.34);
  box-shadow: 0 0 10px rgba(65, 233, 245, 0.85), 0 0 24px rgba(65, 233, 245, 0.35);
  opacity: 0.3;
  transform: rotate(45deg);
  animation: weave-pulse 4.6s var(--node-delay) ease-in-out infinite;
}

.weave-node::after {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1px;
  height: clamp(70px, 12vw, 180px);
  background: linear-gradient(rgba(65, 233, 245, 0.38), transparent);
  content: "";
  transform: rotate(-45deg);
  transform-origin: top;
}

.weave-node.is-core {
  width: 9px;
  height: 9px;
  border-color: rgba(197, 164, 255, 0.92);
  background: rgba(155, 108, 255, 0.44);
  box-shadow: 0 0 14px rgba(155, 108, 255, 0.86), 0 0 34px rgba(155, 108, 255, 0.38);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100% - 40px, var(--content));
  min-height: 630px;
  margin: auto;
  padding: 80px 0 96px;
}

.hero-signal {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(360px, 32vw);
  padding: 14px 16px;
  border: 1px solid rgba(102, 226, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(7, 12, 22, 0.8), rgba(24, 13, 43, 0.66));
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.32), inset 0 0 24px rgba(65, 233, 245, 0.035);
  backdrop-filter: blur(14px);
}

.signal-label {
  display: block;
  margin-bottom: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.signal-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.signal-flow span {
  color: #dce8f5;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
}

.signal-flow i {
  position: relative;
  display: block;
  height: 1px;
  overflow: visible;
  background: rgba(107, 225, 246, 0.18);
}

.signal-flow i::after {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  content: "";
  animation: signal-travel 2.4s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 22px;
  gap: 9px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  content: "";
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.62);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff 12%, #7ff5fb 52%, #b99aff 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d8deec;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(8, 13, 23, 0.76);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--cyan);
  background: rgba(21, 38, 53, 0.9);
  color: #fff;
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(70, 239, 248, 0.72);
  background: linear-gradient(135deg, rgba(44, 204, 215, 0.32), rgba(111, 61, 218, 0.42));
  box-shadow: 0 14px 38px rgba(38, 189, 209, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 34px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.hero-meta li {
  padding: 6px 10px;
  border: 1px solid rgba(138, 151, 181, 0.22);
  border-radius: 999px;
  background: rgba(6, 9, 16, 0.66);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  width: min(100% - 40px, 1460px);
  margin: 0 auto;
  gap: 44px;
}

.sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 116px);
  margin-top: 34px;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 18, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-wrap::before {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--faint);
  content: "⌕";
  font-size: 20px;
  transform: translateY(-54%);
}

.search {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 18, 31, 0.86);
  color: var(--ink);
}

.search::placeholder {
  color: var(--faint);
}

.nav-heading {
  margin: 18px 9px 7px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.docs-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 36px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.docs-nav a span:first-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.docs-nav a:hover,
.docs-nav a.is-active {
  background: linear-gradient(90deg, var(--cyan-soft), transparent);
  color: var(--ink);
}

.docs-nav a.is-active span:first-child {
  color: var(--cyan);
}

.docs {
  min-width: 0;
  max-width: 980px;
  padding: 34px 0 100px;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0 0 28px;
  padding: 18px 20px;
  gap: 14px;
  border: 1px solid rgba(255, 203, 102, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(54, 38, 12, 0.38);
}

.notice strong {
  color: var(--gold);
}

.notice p {
  margin: 1px 0 0;
  color: #dbcfb3;
  font-size: 14px;
}

.doc-section {
  position: relative;
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(17, 23, 38, 0.92), rgba(7, 10, 18, 0.9)),
    var(--panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  scroll-margin-top: 84px;
}

.doc-section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), transparent 78%);
  content: "";
  opacity: 0.66;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-section h2,
.doc-section h3,
.doc-section h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
  text-wrap: balance;
}

.doc-section h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.doc-section h3 {
  margin-top: 30px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.doc-section h4 {
  margin-top: 22px;
  font-size: 17px;
}

.doc-section p,
.doc-section li {
  color: #c1c9da;
}

.doc-section p {
  max-width: 76ch;
  margin: 13px 0 0;
}

.doc-section ul,
.doc-section ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.doc-section li + li {
  margin-top: 7px;
}

.lead-copy {
  color: #dce2ee !important;
  font-size: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  gap: 12px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(129, 151, 190, 0.17);
  border-radius: 12px;
  background: rgba(6, 9, 16, 0.48);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
  border-color: rgba(111, 235, 255, 0.42);
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.card b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card.cyan {
  border-color: rgba(65, 233, 245, 0.28);
}

.card.violet {
  border-color: rgba(155, 108, 255, 0.3);
}

.card.red {
  border-color: rgba(255, 76, 114, 0.28);
}

.steps {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
  counter-reset: guide-step;
}

.steps li {
  position: relative;
  min-height: 54px;
  padding: 13px 15px 13px 62px;
  border: 1px solid rgba(118, 150, 184, 0.18);
  border-radius: 11px;
  background: rgba(7, 10, 17, 0.45);
  counter-increment: guide-step;
}

.steps li::before {
  position: absolute;
  top: 11px;
  left: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(74, 232, 244, 0.38);
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan);
  content: counter(guide-step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
}

.code-block {
  position: relative;
  margin-top: 18px;
  border: 1px solid rgba(114, 141, 183, 0.22);
  border-radius: 12px;
  background: #060912;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.code-block::before {
  display: block;
  height: 34px;
  border-bottom: 1px solid rgba(114, 141, 183, 0.14);
  background:
    radial-gradient(circle at 17px 17px, #ff6685 0 4px, transparent 4.5px),
    radial-gradient(circle at 34px 17px, #ffcb66 0 4px, transparent 4.5px),
    radial-gradient(circle at 51px 17px, #58e5a1 0 4px, transparent 4.5px);
  content: "";
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 18px 20px 20px;
  overflow: auto;
  color: #dce8f5;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}

code {
  padding: 0.12em 0.34em;
  border: 1px solid rgba(111, 225, 245, 0.13);
  border-radius: 5px;
  background: rgba(39, 61, 76, 0.34);
  color: #9cf5fb;
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 7px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(118, 160, 190, 0.22);
  border-radius: 6px;
  background: rgba(19, 27, 42, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.copy-button:hover {
  border-color: var(--cyan);
  color: var(--ink);
}

.table-wrap {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(119, 145, 182, 0.2);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(116, 141, 176, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(25, 33, 50, 0.82);
  color: #edf4ff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #bcc6d8;
}

tr:last-child td {
  border-bottom: 0;
}

.callout {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 4px 10px 10px 4px;
  background: rgba(34, 143, 154, 0.1);
}

.callout.warning {
  border-left-color: var(--gold);
  background: rgba(148, 105, 22, 0.12);
}

.callout.danger {
  border-left-color: var(--red);
  background: rgba(174, 43, 74, 0.11);
}

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

.callout p {
  margin: 4px 0 0;
  font-size: 14px;
}

.command-list {
  display: grid;
  margin-top: 18px;
  gap: 10px;
}

.command {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1fr;
  align-items: start;
  padding: 14px;
  gap: 18px;
  border: 1px solid rgba(116, 145, 182, 0.18);
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.4);
}

.command code {
  width: fit-content;
  color: var(--gold);
}

.command span {
  color: var(--muted);
  font-size: 14px;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
  gap: 12px;
}

.schema-card {
  padding: 17px;
  border: 1px solid rgba(126, 149, 185, 0.18);
  border-radius: 12px;
  background: rgba(6, 9, 15, 0.46);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.schema-card:hover {
  border-color: rgba(155, 108, 255, 0.38);
  background: rgba(16, 13, 30, 0.62);
  transform: translateY(-2px);
}

.schema-card h3 {
  margin: 0;
  font-size: 18px;
}

.schema-card p {
  margin-top: 7px;
  font-size: 14px;
}

.no-results {
  display: none;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 11, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--content));
  min-height: 100px;
  margin: auto;
  gap: 20px;
  color: var(--faint);
  font-size: 13px;
}

.footer-inner strong {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

.reveal-ready .notice,
.reveal-ready .doc-section {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready .notice.is-revealed,
.reveal-ready .doc-section.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

@keyframes brand-core {
  0%, 100% {
    opacity: 0.66;
    transform: rotate(45deg) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: rotate(225deg) scale(1.18);
  }
}

@keyframes hero-diamond {
  0%, 100% {
    opacity: 0.65;
    transform: translateY(0) rotate(45deg) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translateY(-14px) rotate(45deg) scale(1.04);
  }
}

@keyframes weave-pulse {
  0%, 100% {
    opacity: 0.22;
    translate: 0 0;
  }
  50% {
    opacity: 0.9;
    translate: 0 -9px;
  }
}

@keyframes signal-travel {
  0% {
    left: 0;
    opacity: 0;
  }
  18%, 82% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 5px);
    opacity: 0;
  }
}

@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .top-link {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .hero-inner {
    min-height: 590px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 6, 12, 0.93), rgba(3, 6, 12, 0.54)),
      linear-gradient(0deg, var(--bg), transparent 48%),
      url("./images/itemweaver-hero.webp") 60% center / cover no-repeat;
  }

  .hero-signal {
    right: 0;
    bottom: 28px;
    width: min(330px, 44vw);
  }

  .layout {
    display: block;
    width: min(100% - 28px, 760px);
  }

  .sidebar {
    position: fixed;
    z-index: 90;
    top: 76px;
    right: 14px;
    bottom: 14px;
    width: min(360px, calc(100vw - 28px));
    height: auto;
    margin: 0;
    transform: translateX(calc(100% + 30px));
    transition: transform 180ms ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .sidebar {
    transform: none;
  }

  .docs {
    padding-top: 22px;
  }

  .cards,
  .schema-grid {
    grid-template-columns: 1fr;
  }

  .command {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    width: min(100% - 20px, 1460px);
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .language-switch button {
    min-width: 36px;
  }

  .hero-inner {
    width: min(100% - 28px, var(--content));
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(42px, 16vw, 64px);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-signal {
    display: none;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .doc-section {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .doc-section h2 {
    font-size: 30px;
  }

  .notice {
    grid-template-columns: 1fr;
  }

  pre {
    padding-inline: 14px;
    font-size: 12px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
