:root {
  color-scheme: dark;
  --ink: #10120f;
  --ink-soft: #181a16;
  --paper: #f3efe4;
  --muted: #c9c3b3;
  --line: rgba(243, 239, 228, 0.18);
  --green: #8df77f;
  --yellow: #ffcf4a;
  --cyan: #53d9e6;
  --coral: #f26d5b;
  --shadow: rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  min-width: 320px;
  overflow-x: hidden;
}

main {
  position: relative;
  background: var(--ink);
}

a {
  color: inherit;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.48), #10120f 82%),
    #10120f;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(243, 239, 228, 0.045) 0,
      rgba(243, 239, 228, 0.045) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: soft-light;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(16, 18, 15, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.site-footer nav,
.hero-actions,
.inline-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  min-width: max-content;
}

.brand img {
  width: 144px;
  height: auto;
  border-radius: 6px;
}

.site-header nav,
.site-footer nav {
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a,
.site-footer nav a,
.text-link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--paper);
  border-bottom-color: currentColor;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.header-action {
  color: var(--green);
  background: rgba(141, 247, 127, 0.08);
}

.button.primary {
  color: #12120e;
  background: var(--green);
  border-color: var(--green);
}

.button.secondary {
  color: var(--paper);
  background: rgba(243, 239, 228, 0.08);
}

.button[aria-disabled="true"] {
  color: var(--muted);
  pointer-events: none;
  background: rgba(243, 239, 228, 0.06);
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(70px, 12vh, 132px) clamp(18px, 6vw, 88px) 8vh;
  background: var(--ink);
}

.hero-copy {
  max-width: 810px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 0.94;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-logo-title img {
  display: block;
  width: min(560px, 100%);
  height: auto;
  border-radius: 8px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--paper);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions,
.inline-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Hero social proof strip ─── */
.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s, color 0.12s;
}
.proof-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.proof-sep {
  color: rgba(201, 195, 179, 0.35);
  font-size: 1rem;
  line-height: 1;
}
.proof-item {
  color: var(--muted);
}

/* ─── Footer GitHub link ─── */
.footer-gh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
  width: max-content;
  transition: color 0.12s;
}
.footer-gh:hover {
  color: var(--green);
}

.hero-panel,
.update-card,
.catalog-card,
.creator-steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 22, 0.82);
  box-shadow: 0 18px 50px var(--shadow);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.hero-panel div {
  padding: 18px;
  background: rgba(243, 239, 228, 0.055);
}

.panel-label,
.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 1.12rem;
}

.band {
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.intro-band {
  background: var(--paper);
  color: var(--ink);
}

.intro-band .eyebrow {
  color: #3c7d28;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0;
}

.intro-grid,
.split-grid,
.creator-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro-grid p,
.split-grid p {
  margin: 0;
  color: rgba(16, 18, 15, 0.78);
  font-size: 1.06rem;
  line-height: 1.7;
}

.split-band {
  background: #17140f;
}

.split-grid p {
  color: var(--muted);
  margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.text-link {
  color: var(--yellow);
  font-weight: 800;
  white-space: nowrap;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 18px;
}

.catalog-card.featured {
  border-color: rgba(141, 247, 127, 0.48);
}

.status-row,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #10120f;
  background: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.available {
  background: var(--green);
}

.status-pill.coming-soon {
  background: var(--coral);
}

.catalog-card p {
  color: var(--muted);
  line-height: 1.62;
}

.catalog-card .description {
  flex: 1;
}

.card-meta {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.download-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.update-card {
  padding: 20px;
  min-height: 330px;
}

.update-card h3 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.05;
  margin-top: 0;
}

.update-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
  line-height: 1.5;
}

.update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

.creator-band {
  background: var(--ink-soft);
}

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

.creator-steps article {
  min-height: 180px;
  padding: 18px;
}

.creator-steps span {
  color: var(--cyan);
  font-weight: 900;
}

.creator-steps p {
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #0d0f0c;
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.footer-logo {
  width: 160px;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .hero,
  .intro-grid,
  .split-grid,
  .creator-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
  }

  .hero-panel {
    align-self: stretch;
  }

  .creator-steps {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ─── Mobile nav ─── */
@media (max-width: 720px) {
  .site-header {
    flex-wrap: nowrap;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(12, 14, 11, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    z-index: 100;
    padding: 8px 0;
  }

  .site-header nav.nav-open {
    display: flex;
  }

  .site-header nav a {
    padding: 12px clamp(18px, 4vw, 56px);
    font-size: 1rem;
    border-bottom: none;
    width: 100%;
  }

  .site-header nav a:hover {
    background: rgba(141, 247, 127, 0.06);
    color: var(--paper);
  }

  .header-action {
    display: none;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .inline-actions,
  .download-row {
    width: 100%;
  }

  .hero-actions .button,
  .inline-actions .button {
    flex: 1 1 100%;
  }

  .catalog-card,
  .update-card,
  .creator-steps article {
    padding: 16px;
  }

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

  .studio-cta-bar {
    flex-direction: column;
    text-align: center;
  }

  .pkg-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .changelog-filters {
    gap: 6px;
  }
}

/* ─── Active nav indicator ─── */
.site-header nav a[aria-current="page"] {
  color: var(--paper);
  border-bottom: 1px solid var(--green);
}

/* ─── Mobile nav toggle ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(243, 239, 228, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Inner page hero ─── */
.page-hero {
  padding: clamp(48px, 8vh, 88px) clamp(18px, 6vw, 88px) clamp(28px, 4vh, 44px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem) !important;
  line-height: 1.05 !important;
  margin: 8px 0 16px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 820px;
}
.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
}

/* ─── Ecosystem grid (index) ─── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.eco-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 22, 0.82);
  text-decoration: none;
  color: var(--paper);
  transition: border-color 0.14s, background 0.14s;
}
.eco-card:hover {
  border-color: rgba(141, 247, 127, 0.44);
  background: rgba(24, 26, 22, 0.97);
}
.eco-card-icon {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}
.eco-card h3 {
  margin: 0 0 8px;
  font-size: 1.0rem;
  font-weight: 900;
}
.eco-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}
.eco-link {
  display: block;
  margin-top: 16px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Inline code ─── */
code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  background: rgba(141, 247, 127, 0.08);
  border: 1px solid rgba(141, 247, 127, 0.16);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.87em;
  color: var(--green);
}

/* ─── Code block ─── */
pre.code-block {
  background: rgba(8, 10, 8, 0.97);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  overflow-x: auto;
  color: var(--paper);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 18px 0;
  tab-size: 2;
}
.code-label {
  display: inline-block;
  padding: 3px 10px;
  background: var(--line);
  border-radius: 4px 4px 0 0;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: -1px;
}

/* ─── Doc table ─── */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 18px 0;
}
.doc-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.doc-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(243, 239, 228, 0.055);
  color: var(--paper);
  line-height: 1.5;
  vertical-align: top;
}
.doc-table td code {
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan);
  font-size: 0.86em;
}
.doc-table tr:last-child td {
  border-bottom: none;
}

/* ─── Documentation layout ─── */
.docs-wrap {
  display: grid;
  grid-template-columns: 216px 1fr;
  align-items: start;
  background: var(--ink);
  position: relative;
}
.docs-sidebar {
  position: sticky;
  top: 57px;
  height: calc(100vh - 57px);
  overflow-y: auto;
  padding: 28px 0 28px 0;
  border-right: 1px solid var(--line);
  background: var(--ink);
}
.docs-nav-label {
  display: block;
  padding: 14px 20px 6px 20px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(201, 195, 179, 0.5);
}
.docs-nav-label:first-child {
  padding-top: 0;
}
.docs-nav a {
  display: block;
  padding: 6px 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s, padding 0.12s;
}
.docs-nav a:hover,
.docs-nav a.active {
  color: var(--paper);
  border-left-color: var(--green);
  padding-left: 28px;
}
.docs-main {
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 64px);
}
.doc-section {
  padding-bottom: clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 6vw, 64px);
  max-width: 820px;
}
.doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.doc-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}
.doc-section h3 {
  font-size: 1.02rem;
  color: var(--cyan);
  font-weight: 900;
  margin: 28px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc-section p {
  color: var(--muted);
  line-height: 1.72;
  margin: 10px 0;
}
.doc-section ul,
.doc-section ol {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
  margin: 10px 0;
}
.doc-section li {
  margin-bottom: 4px;
}
.doc-section strong {
  color: var(--paper);
}

/* ─── Packages page ─── */
.pkg-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
  margin-bottom: 48px;
}
.pkg-quick {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(24, 26, 22, 0.8);
  text-decoration: none;
  transition: border-color 0.12s;
}
.pkg-quick:hover {
  border-color: var(--cyan);
}
.pkg-quick h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--cyan);
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-weight: 700;
}
.pkg-quick p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.pkg-section {
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 820px;
}
.pkg-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.pkg-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pkg-name {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--green);
  margin: 0;
  font-weight: 900;
}
.pkg-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(83, 217, 230, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(83, 217, 230, 0.22);
}
.pkg-desc {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}
.pkg-section h3 {
  margin: 26px 0 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 900;
}
.pkg-section p {
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
}
.pkg-section ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
}

/* ─── Changelog page ─── */
.changelog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.12s;
  font-family: inherit;
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}
.cl-entry {
  padding-bottom: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 44px);
  max-width: 820px;
}
.cl-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.cl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ver-badge {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--green);
}
.ver-date {
  color: var(--muted);
  font-size: 0.84rem;
}
.ver-tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ver-tag.os   { background: rgba(141,247,127,0.12); color: var(--green); border: 1px solid rgba(141,247,127,0.22); }
.ver-tag.studio { background: rgba(83,217,230,0.12); color: var(--cyan); border: 1px solid rgba(83,217,230,0.22); }
.ver-tag.pages  { background: rgba(255,207,74,0.12); color: var(--yellow); border: 1px solid rgba(255,207,74,0.22); }
.cl-entry h3 {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}
.change-group {
  margin-bottom: 16px;
}
.change-group h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-weight: 900;
}
.change-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}
.change-items li {
  padding-left: 16px;
  position: relative;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.91rem;
}
.change-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 1px;
}
.change-items strong {
  color: var(--paper);
}
.change-items code {
  font-size: 0.83em;
  color: var(--yellow);
  background: rgba(255,207,74,0.08);
  border-color: rgba(255,207,74,0.16);
}

/* ─── Studio page ─── */
.studio-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.feature-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 22, 0.82);
}
.feature-icon {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.0rem;
  font-weight: 900;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 28px;
  counter-reset: steps;
}
.step-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 22, 0.62);
  counter-increment: steps;
}
.step-item::before {
  content: "0" counter(steps);
  display: block;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.86rem;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.step-item h4 {
  margin: 0 0 7px;
  font-size: 0.97rem;
}
.step-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.tool-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(24, 26, 22, 0.8);
}
.tool-name {
  display: block;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  color: var(--green);
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 5px;
}
.tool-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ─── Install / download section ─── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.install-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 26, 22, 0.92);
  transition: border-color 0.14s;
}
.install-card:hover {
  border-color: rgba(141, 247, 127, 0.32);
}
.install-card-num {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.install-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  font-weight: 900;
}
.install-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.install-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.install-steps li {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}
.install-steps li::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(83, 217, 230, 0.12);
  border: 1px solid rgba(83, 217, 230, 0.22);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  margin-top: 1px;
}
.install-steps strong {
  color: var(--paper);
}
.studio-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid rgba(83, 217, 230, 0.25);
  border-radius: 8px;
  background: rgba(83, 217, 230, 0.05);
}
.studio-cta-bar p {
  margin: 0;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.4;
}
.studio-cta-bar p span {
  color: var(--cyan);
}
.platform-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(141, 247, 127, 0.1);
  border: 1px solid rgba(141, 247, 127, 0.2);
  border-radius: 4px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ─── Responsive: inner pages ─── */
@media (max-width: 640px) {
  .docs-wrap {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .docs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .docs-nav a {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-left: none;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.78rem;
  }
  .docs-nav a:hover,
  .docs-nav a.active {
    padding-left: 12px;
    border-color: var(--green);
    background: rgba(141, 247, 127, 0.08);
  }
  .docs-nav-label {
    display: none;
  }
  .install-grid {
    grid-template-columns: 1fr;
  }
}
