:root {
  /* NOAH DEV CLI banner gradient (banner.ts) */
  --g1: #e9d5ff; /* light purple */
  --g2: #c4b5fd; /* soft violet */
  --g3: #7dd3fc; /* light sky blue */
  --g4: #38bdf8; /* blue */
  --g5: #1d4ed8; /* deep blue */
  --brand-gradient: linear-gradient(
    135deg,
    var(--g1) 0%,
    var(--g2) 28%,
    var(--g3) 52%,
    var(--g4) 76%,
    var(--g5) 100%
  );
  --brand-gradient-vert: linear-gradient(
    180deg,
    var(--g1) 0%,
    var(--g2) 25%,
    var(--g3) 50%,
    var(--g4) 75%,
    var(--g5) 100%
  );
  --logo-gradient: linear-gradient(
    90deg,
    var(--g1) 0%,
    var(--g2) 28%,
    var(--g3) 52%,
    var(--g4) 76%,
    var(--g5) 100%
  );

  /* Logo-aligned dark surface */
  --ink: #ece8f5;
  --ink-soft: #c8c4d8;
  --muted: #8f8aa3;
  --paper: #121212;
  --paper-2: #0a0a0c;
  --surface: #18181b;
  --line: rgba(196, 181, 253, 0.16);
  --accent: #7dd3fc;
  --accent-deep: #c4b5fd;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Syne", "Source Sans 3", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  color-scheme: dark;
  scroll-padding-top: 5.5rem;
}

[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(900px 480px at 10% -10%, rgba(233, 213, 255, 0.18), transparent 55%),
    radial-gradient(1000px 520px at 92% -5%, rgba(56, 189, 248, 0.14), transparent 52%),
    radial-gradient(780px 420px at 70% 40%, rgba(29, 78, 216, 0.16), transparent 55%),
    radial-gradient(640px 380px at 18% 70%, rgba(196, 181, 253, 0.08), transparent 58%),
    linear-gradient(165deg, #16161a 0%, var(--paper) 40%, var(--paper-2) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 88%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(233, 213, 255, 0.1), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.09), transparent 30%);
  opacity: 1;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(196, 181, 253, 0.12);
  color: var(--g1);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

main {
  padding-top: 4.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-mark img {
  display: block;
  height: 40px;
  width: auto;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(125, 211, 252, 0.35);
  color: var(--g3);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

html.nav-open .nav-toggle-bars {
  background: transparent;
}

html.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

html.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  line-height: 1;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
  line-height: 1;
  min-height: 40px;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

.nav-links a[aria-current="page"] {
  color: var(--accent-deep);
  font-weight: 600;
}

.btn-kofi {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn-kofi img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 10px;
}

.btn-kofi:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(255, 94, 91, 0.28);
  background: transparent;
  color: inherit;
}

/* Lenis + fixed header offset for in-page anchors */
html.lenis,
html.lenis body {
  height: auto;
}

.nav-links .btn-kofi {
  margin-left: 0.15rem;
  min-height: 40px;
}

.nav-links .btn-kofi:hover {
  color: inherit;
}

.footer-links .btn-kofi img {
  height: 48px;
}

.footer-links .btn-kofi:hover {
  color: inherit;
}

.kofi-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  max-width: 11.5rem;
  transition: transform 0.15s var(--ease), color 0.15s var(--ease);
}

.kofi-support img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

.kofi-support:hover {
  color: var(--g1);
  transform: translateY(-2px);
}

/* Doc pages */
.page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
  animation: rise 0.7s var(--ease) both;
}

.page-hero .eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero .lede {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

.doc-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .doc-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.doc-toc {
  font-size: 0.9rem;
}

.doc-toc h2 {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.doc-toc a {
  text-decoration: none;
  color: var(--ink-soft);
}

.doc-toc a:hover {
  color: var(--accent-deep);
}

.catalog-toc {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-toc-search {
  display: grid;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.doc-toc-search-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.doc-toc-search-input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.doc-toc-search-input::placeholder {
  color: var(--muted);
}

.doc-toc-search-input:hover {
  border-color: rgba(196, 181, 253, 0.35);
}

.doc-toc-search-input:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.18);
}

.doc-toc-search-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.doc-toc-search-hint.is-empty {
  color: #f0a8a8;
}

.doc-block.is-catalog-hidden {
  display: none;
}

.catalog-item.is-filtered-out {
  display: none;
}

@media (min-width: 900px) {
  .doc-toc {
    position: sticky;
    top: 5.5rem;
  }

  .catalog-toc {
    max-height: calc(100vh - 6.5rem);
  }

  .doc-toc-search {
    margin-top: auto;
  }
}

.doc-content {
  display: grid;
  gap: 2.75rem;
  min-width: 0;
}

.doc-block h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.doc-block > p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}

.doc-block > p:last-child {
  margin-bottom: 0;
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 0.85rem 0.75rem 0.85rem 0;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.doc-table thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-top: none;
}

.doc-table tbody tr:first-child th,
.doc-table tbody tr:first-child td {
  border-top: none;
}

.doc-table code {
  background: transparent;
  padding: 0;
  color: var(--g3);
  font-weight: 500;
}

.muted,
.doc-table .muted {
  color: var(--muted);
}

.tree {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow-x: auto;
  white-space: pre;
  box-shadow:
    0 1px 0 rgba(233, 213, 255, 0.06) inset,
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.tree .dim {
  color: var(--muted);
}

.tree .hi {
  color: var(--g3);
}

.kbd-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
}

.install-snippet {
  margin: 1.25rem 0 0;
  max-width: 42rem;
}

.terminal.install-snippet {
  /* Beat .terminal { margin: 0 auto … } so doc snippets keep top spacing */
  margin: 1.25rem 0 0;
}

.section-head .more {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.section-head .more:hover {
  text-decoration: underline;
}

.doc-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.doc-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: min(100%, 16rem);
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.doc-pager-link:hover {
  color: var(--g3);
}

.doc-pager-link .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-pager-link .title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.doc-pager-link:hover .title {
  color: var(--g3);
}

.doc-pager-link.prev {
  align-items: flex-start;
  text-align: left;
  margin-right: auto;
}

.doc-pager-link.next {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.doc-pager-link.prev .title::before {
  content: "← ";
}

.doc-pager-link.next .title::after {
  content: " →";
}

.release-callout {
  padding: 1.35rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(233, 213, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(233, 213, 255, 0.1), rgba(56, 189, 248, 0.06)),
    rgba(18, 18, 18, 0.85);
}

.release-callout-label {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g2);
}

.release-callout h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.release-callout p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42rem;
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.release-meta h2 {
  margin: 0;
}

.release-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g3);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 999px;
  padding: 0.2em 0.55em;
}

.release-tag--public {
  color: var(--g1);
  border-color: rgba(233, 213, 255, 0.45);
  background: rgba(233, 213, 255, 0.1);
}

.release-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.release-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.release-links {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.release-links a {
  color: var(--g3);
  text-decoration: none;
}

.release-links a:hover {
  text-decoration: underline;
}

.releases-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.releases-status.is-error {
  color: #fca5a5;
}

.releases-feed {
  display: grid;
  gap: 2.75rem;
}

.catalog-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.catalog-item {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-item:hover,
.catalog-item:focus-visible {
  background: rgba(196, 181, 253, 0.06);
  outline: none;
}

.catalog-item code {
  background: transparent;
  padding: 0;
  color: var(--g3);
  font-weight: 500;
}

.catalog-item .summary {
  color: var(--ink-soft);
  margin: 0;
}

.catalog-item .cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g2);
  white-space: nowrap;
}

.catalog-item:hover .cta {
  color: var(--g1);
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.38em 0.55em;
  border-radius: 4px;
  border: none;
  white-space: nowrap;
}

.stack-badge--git {
  color: #fdba74;
  background: rgba(154, 52, 18, 0.55);
}

.stack-badge--docs {
  color: #c4b5fd;
  background: rgba(91, 33, 182, 0.5);
}

.stack-badge--react {
  color: #67e8f9;
  background: rgba(14, 116, 144, 0.55);
}

.stack-badge--laravel {
  color: #fda4af;
  background: rgba(159, 18, 57, 0.55);
}

.stack-badge--nestjs {
  color: #fecdd3;
  background: rgba(136, 19, 55, 0.55);
}

.stack-badge--nodejs {
  color: #86efac;
  background: rgba(22, 101, 52, 0.55);
}

.stack-badge--nextjs {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.6);
}

.stack-badge--nuxt {
  color: #6ee7b7;
  background: rgba(6, 95, 70, 0.55);
}

.stack-badge--multi {
  color: #d8b4fe;
  background: rgba(107, 33, 168, 0.5);
}

.stack-badge--default {
  color: #cbd5e1;
  background: rgba(71, 85, 105, 0.55);
}

.asset-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(85vh, 40rem);
  padding: 0;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 14px;
  background: #121214;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity 0.28s var(--ease),
    transform 0.32s var(--ease),
    overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

.asset-dialog[open] {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}

.asset-dialog[open].is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.asset-dialog.is-closing {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.asset-dialog::backdrop {
  background: rgba(6, 6, 8, 0);
  backdrop-filter: blur(0);
  transition:
    background 0.28s var(--ease),
    backdrop-filter 0.28s var(--ease),
    overlay 0.28s allow-discrete,
    display 0.28s allow-discrete;
}

.asset-dialog[open].is-open::backdrop {
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(6px);
}

.asset-dialog.is-closing::backdrop {
  background: rgba(6, 6, 8, 0);
  backdrop-filter: blur(0);
}

.asset-dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 40rem);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease) 0.04s, transform 0.34s var(--ease) 0.04s;
}

.asset-dialog[open].is-open .asset-dialog-inner {
  opacity: 1;
  transform: translateY(0);
}

.asset-dialog.is-closing .asset-dialog-inner {
  opacity: 0;
  transform: translateY(6px);
  transition-duration: 0.2s;
}

.asset-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid var(--line);
}

.asset-dialog-kind {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.asset-dialog-head h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--g3);
  font-weight: 500;
}

.asset-dialog-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.asset-dialog-close:hover {
  color: var(--ink);
}

.asset-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.15rem 1.35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink-soft);
  -webkit-overflow-scrolling: touch;
}

.asset-dialog-body p {
  margin: 0 0 0.9rem;
}

.asset-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  align-items: center;
}

.asset-dialog-meta .meta-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2em 0.55em;
}

.asset-dialog-body h3 {
  margin: 1.1rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
}

.asset-dialog-body ul {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.asset-dialog-body li {
  margin: 0.35rem 0;
}

.asset-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.asset-dialog-foot .btn-ghost {
  margin-right: auto;
}

.asset-dialog-foot .btn-ghost,
.asset-dialog-foot .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  margin: 0;
  box-sizing: border-box;
  border-radius: 8px;
  line-height: 1;
  vertical-align: middle;
}

.asset-dialog-foot .btn-ghost {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.asset-dialog-foot .btn-ghost:hover {
  color: var(--g3);
  border-color: rgba(125, 211, 252, 0.35);
}

.asset-dialog-foot .btn-primary {
  padding: 0.7rem 1rem;
}

.asset-dialog-foot .btn-primary .cmd {
  font-size: 0.8rem;
}

html.modal-open,
html.modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.modal-open body {
  touch-action: none;
}

html.modal-open .asset-dialog,
html.modal-open .asset-dialog * {
  touch-action: pan-y;
}

/* react-toastify–style colored toasts (top-right)
   Uses popover so it shares the top layer with <dialog showModal()> —
   plain z-index cannot paint above the modal top layer. */
.toast-container,
.toast-container:popover-open {
  position: fixed;
  inset: auto;
  top: 1rem;
  right: 1rem;
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 6px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.21, 1.02, 0.73, 1), opacity 0.25s ease;
}

.toast.is-in {
  opacity: 1;
  transform: translateX(0);
}

.toast.is-out {
  opacity: 0;
  transform: translateX(110%);
}

.toast--success {
  background: #07bc0c;
}

.toast--error {
  background: #e74c3c;
}

.toast--info {
  background: #3498db;
}

.toast--warning {
  background: #f1c40f;
  color: #1a1a1a;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.1rem;
}

.toast-close:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .catalog-item {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
  }

  .catalog-item code {
    grid-column: 1;
  }

  .catalog-item .stack-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .catalog-item .summary {
    grid-column: 1 / -1;
  }

  .catalog-item .cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.release-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
}

.release-list li {
  margin: 0.4rem 0;
}

.release-list code {
  color: var(--g3);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 4.25rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  align-items: center;
  gap: 2.75rem;
}

.hero-copy {
  max-width: 32rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta > .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g3);
  box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.55);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

.brand {
  margin: 0 0 1.1rem;
  line-height: 0;
  animation: brand-in 1.1s var(--ease) both;
}

.brand img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tagline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 0.65rem;
  color: var(--ink);
  max-width: 16ch;
}

.lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-note {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent-deep);
  padding-left: 0.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.cta-row.center {
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #0b1220;
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary .cmd {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  color: #0b1220;
}

.btn-primary .btn-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  border-left: 1px solid rgba(11, 18, 32, 0.2);
  padding-left: 0.75rem;
  color: #0b1220;
}

.btn-primary.copied .btn-label {
  opacity: 1;
  color: var(--g5);
}

.btn-primary.linkish {
  justify-content: center;
  color: #0b1220;
}

.btn-secondary {
  background: transparent;
  color: var(--g3);
  box-shadow: inset 0 0 0 1.5px transparent;
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-ghost {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--g3);
}

.hero-visual {
  margin: 0;
  width: 100%;
  animation: fade-in 1s var(--ease) 0.2s both;
}

.hero-terminal {
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(56, 189, 248, 0.06);
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #141416;
  border-bottom: 1px solid rgba(196, 181, 253, 0.1);
}

.hero-terminal-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-terminal-bar .dot.red {
  background: #ff5f57;
}

.hero-terminal-bar .dot.yellow {
  background: #febc2e;
}

.hero-terminal-bar .dot.green {
  background: #28c840;
}

.hero-terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2rem;
}

.hero-terminal-screen {
  background: #0a0a0c;
  line-height: 0;
}

.hero-terminal-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 560px);
  object-fit: contain;
  object-position: center top;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.flow li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.flow li:last-child {
  border-bottom: 1px solid var(--line);
}

.step {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 0.3rem;
  font-weight: 500;
}

.flow h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.flow p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.ide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ide-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.ide-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.ide-list .ide-name {
  font-weight: 600;
}

.ide-list code {
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.ide-list .primary .ide-name {
  font-family: var(--display);
  font-size: 1.15rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ide-list .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.skill-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.skill-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.skill-list code {
  background: transparent;
  color: var(--g3);
  padding: 0;
  font-weight: 500;
}

.skill-list span {
  color: var(--muted);
}

.cta-band {
  text-align: center;
}

.cta-band .section-head {
  margin-left: auto;
  margin-right: auto;
}

.terminal {
  text-align: left;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 0;
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(233, 213, 255, 0.08) inset,
    0 18px 40px rgba(0, 0, 0, 0.45);
  animation: rise 0.8s var(--ease) both;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, #1a1a1e 0%, #141416 100%);
  border-bottom: 1px solid rgba(196, 181, 253, 0.14);
}

.terminal-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.terminal-chrome .dot.red {
  background: #ff5f57;
}

.terminal-chrome .dot.yellow {
  background: #febc2e;
}

.terminal-chrome .dot.green {
  background: #28c840;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-right: 2.2rem;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.terminal-body {
  margin: 0;
  padding: 1.15rem 1.25rem 1.3rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
  background:
    radial-gradient(520px 180px at 0% 0%, rgba(233, 213, 255, 0.07), transparent 55%),
    radial-gradient(480px 160px at 100% 0%, rgba(56, 189, 248, 0.06), transparent 50%),
    var(--paper);
  color: var(--ink-soft);
  white-space: normal;
}

.terminal-body code {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.terminal .line {
  display: block;
  margin: 0;
  padding: 0;
  text-indent: 0;
  white-space: nowrap;
}

.terminal .prompt {
  color: var(--g2);
  margin-right: 0.35rem;
  font-weight: 500;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.terminal .cmd {
  color: var(--g3);
}

.terminal .arg {
  color: var(--g1);
}

.terminal .flag {
  color: var(--g4);
}

.terminal .string {
  color: #a5b4fc;
}

.terminal .dim {
  color: var(--muted);
  opacity: 0.85;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-brand .brand {
  margin: 0 0 0.5rem;
  line-height: 0;
}

.footer-brand .brand img {
  display: block;
  height: 36px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-brand a {
  color: var(--accent-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--accent-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.04em;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, 0.45);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(125, 211, 252, 0);
    opacity: 0.85;
  }
}

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(16rem, 0.85fr) 1.15fr;
    align-items: center;
    gap: 3.5rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .hero-terminal-screen img {
    max-height: min(64vh, 620px);
  }

  .flow {
    gap: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
  }

  html.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links .btn-kofi {
    margin: 0.85rem 0 0;
    min-height: auto;
    align-self: flex-start;
  }

  .nav-links .btn-kofi img {
    height: 40px;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1rem 2.5rem;
    gap: 1.75rem;
  }

  .footer-brand .brand img {
    height: 32px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    width: 100%;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .kofi-support {
    align-self: center;
    width: min(11.5rem, 100%);
    max-width: 11.5rem;
    margin-inline: auto;
  }

  .kofi-support img {
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .btn-primary .cmd {
    font-size: 0.8rem;
  }

  .skill-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .ide-list li {
    grid-template-columns: 1fr auto;
  }

  .ide-list .tag {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}
