:root {
  --bg: #0c1016;
  --bg-alt: #131a23;
  --bg-card: #18212c;
  --text: #eef3f8;
  --muted: #93a4b8;
  --accent: #4d9aff;
  --accent-hover: #74b1ff;
  --accent-dim: rgba(77, 154, 255, 0.14);
  --border: #2a3748;
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 16, 22, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.logo:hover { color: var(--text); }

.logo__img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: contain;
}

.logo__text {
  letter-spacing: -0.02em;
}

.nav { display: none; gap: 1.25rem; }
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.nav--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
  }
  .logo { margin-right: 0; }
  .header__inner .nav { flex: 1; justify-content: center; }
}

.header__cta { flex-shrink: 0; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(77, 154, 255, 0.45);
}
.btn--outline:hover {
  background: var(--accent-dim);
  color: var(--text);
  border-color: var(--accent);
}
.btn--sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; margin-top: 0.75rem; }

/* hero */
.hero {
  padding: 3.25rem 0 2.75rem;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, var(--accent-dim), transparent),
    var(--bg);
}

.hero__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.eyebrow {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.version { color: var(--muted); font-size: 0.9rem; }

.hint {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 40em;
  margin: 0;
}

.hero__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero__card h2 { margin: 0 0 1rem; font-size: 1.05rem; }

.steps { list-style: none; margin: 0; padding: 0; }

.steps li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps li + li { margin-top: 0.65rem; }

.steps span {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 6px;
}

/* sections */
.section { padding: 3rem 0; }

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { margin-bottom: 1.75rem; max-width: 40em; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .section-head__lead { margin-left: auto; margin-right: auto; }

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.section-head__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* features */
.features {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}

.feature strong { display: block; margin-bottom: 0.35rem; font-size: 0.98rem; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* filter */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.filter__btn {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter__btn:hover { color: var(--text); border-color: #3d5066; }
.filter__btn.is-active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

.section-head--tight {
  margin-bottom: 1rem;
}

.section-head--tight h2 {
  margin-bottom: 0;
}

/* command catalog tiles */
.cmd-catalog {
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 560px) {
  .cmd-catalog { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cmd-catalog { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .cmd-catalog { grid-template-columns: repeat(4, 1fr); }
}

.cmd-tile {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cmd-tile:hover {
  border-color: rgba(77, 154, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cmd-tile__main {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.cmd-tile__icon-wrap {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmd-tile__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cmd-tile__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cmd-tile .cmd-tile__more.btn--block {
  width: 100%;
  margin: 0;
  padding: 0.28rem 0.5rem;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.cmd-tile__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.cmd-tile__summary {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* badges & tags */
.tag {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #1e2833;
  color: #b8c5d4;
  font-family: Consolas, "Cascadia Mono", monospace;
}

.tag--set {
  border: 1px dashed #3d4f63;
  color: var(--muted);
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #243040;
  color: var(--muted);
  white-space: nowrap;
}

.badge--paid {
  background: var(--accent-dim);
  color: #9ec5ff;
}

.badge--cat {
  background: #1e2833;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

code {
  background: #1e2833;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: Consolas, "Cascadia Mono", monospace;
}

/* command detail page */
.command-page { padding: 1.5rem 0 3rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.command-hero {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.command-hero__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.command-hero__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.command-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.command-hero__summary {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40em;
}

.command-hero__tags {
  margin: 0 0 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.command-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.command-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .command-layout { grid-template-columns: 1fr 280px; align-items: start; }
}

.command-article h2 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.15rem;
}

.command-article h2:first-child { margin-top: 0; }

.command-article p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.command-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.command-list li + li { margin-top: 0.35rem; }

.media-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
}

.media-slot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.media-slot figcaption {
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d8096;
  border-bottom: 1px solid var(--border);
}

.media-slot__img,
.media-slot__video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-slot__empty {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #5a6d82;
  font-size: 0.88rem;
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.aside-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.aside-card p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.aside-cmd code {
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.related-link:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.related-link img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.command-missing {
  padding: 3rem 0;
  text-align: center;
}

.command-missing h1 { margin-bottom: 0.75rem; }

/* install & license */
.install-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .install-grid { grid-template-columns: 1fr 1fr; }
}

.install-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.install-list li + li { margin-top: 0.5rem; }

.license-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .license-cards { grid-template-columns: 1fr 1fr; }
}

.license-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.license-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.license-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.license-card--accent {
  border-color: rgba(77, 154, 255, 0.35);
  background: linear-gradient(145deg, var(--bg-card), rgba(77, 154, 255, 0.06));
}

/* footer */
.footer {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
