@font-face {
  font-family: "VCROSD";
  src: url("fonts/vcr-osd-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090908;
  --bg-2: #141313;
  --surface: rgba(28, 27, 25, 0.88);
  --surface-strong: rgba(36, 35, 32, 0.96);
  --border: rgba(255, 124, 18, 0.26);
  --text: #f7f0e6;
  --muted: #c8bdb0;
  --muted-2: #958d84;
  --accent: #ff7418;
  --accent-red: #ff4d1f;
  --accent-soft: #ffb05c;
  --line: rgba(255, 255, 255, 0.075);
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.4);
  --content: min(1160px, calc(100vw - 32px));
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display: "VCROSD", "Avenir Next Condensed", "Franklin Gothic Medium", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(255, 116, 24, 0.13), transparent 32%),
    linear-gradient(180deg, #0b0a09 0%, #151313 45%, #080808 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.36) 100%);
  background-size: 100% 4px, auto;
  mix-blend-mode: screen;
  opacity: 0.4;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

code,
pre {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

code:not(pre code) {
  padding: 0.16rem 0.36rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #ffd2a0;
  background: rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: var(--content);
  margin: 0 auto;
  padding: 0.35rem 0;
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 104px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 8, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(128px, 15vw, 168px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.87rem;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 116, 24, 0.15);
}

.nav-link-github {
  color: #fff7ef;
  background: rgba(255, 255, 255, 0.075);
}

.nav-toggle {
  display: none;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(760px, 76vh);
  margin-top: -66px;
  padding: 9rem max(16px, calc((100vw - 1160px) / 2)) 3.3rem;
  overflow: hidden;
  background: #080808;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.98) 0%, rgba(5, 5, 5, 0.76) 44%, rgba(5, 5, 5, 0.25) 100%),
    linear-gradient(0deg, rgba(9, 9, 8, 1) 0%, rgba(9, 9, 8, 0.24) 34%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
}

.hero-copy {
  width: min(690px, 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  color: #fff8ef;
  font-size: clamp(4rem, 13vw, 8.75rem);
  text-shadow: 2px 0 rgba(255, 77, 31, 0.48), -2px 0 rgba(0, 180, 255, 0.26);
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 660px;
  margin: 1rem 0 0;
  color: #f3dfc9;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  color: #160d06;
  font-weight: 850;
  background: linear-gradient(180deg, #ffae58, #ff7118);
  box-shadow: 0 14px 30px rgba(255, 113, 24, 0.24);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero-facts,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-facts {
  margin-top: 1.45rem;
}

.hero-facts span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 116, 24, 0.22);
  border-radius: 999px;
  color: #ffcf9a;
  background: rgba(255, 116, 24, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 2rem;
}

.section-head p {
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.info-card,
.module-card,
.image-card,
.doc-card,
.download-card,
.latest-release-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(39, 36, 33, 0.92), rgba(19, 18, 17, 0.94));
  box-shadow: var(--shadow);
}

.info-card,
.image-card,
.doc-card,
.download-card {
  padding: 1.1rem;
}

.module-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
}

.module-card img {
  width: min(180px, 72%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  align-self: center;
  margin: 0.2rem auto 1rem;
}

.module-card h3,
.info-card h3,
.image-card h3,
.doc-card h3 {
  margin-bottom: 0.55rem;
}

.module-card p,
.info-card p,
.image-card p,
.doc-card p,
.download-card p {
  margin: 0 0 1rem;
}

.latest-release-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(760px, 100%);
  margin-top: 1.25rem;
  padding: 1rem;
  background:
    linear-gradient(100deg, rgba(255, 116, 24, 0.18), rgba(255, 116, 24, 0.05) 48%, rgba(255, 255, 255, 0.04)),
    rgba(12, 12, 11, 0.9);
}

.latest-release-panel div {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.latest-release-panel strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  line-height: 1;
}

.latest-release-panel span {
  color: var(--muted);
}

.release-label {
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  gap: 1.1rem;
}

.download-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0.75rem 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 116, 24, 0.65), transparent);
}

.download-card .chip-row {
  margin-top: 0.85rem;
}

.download-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.download-meta div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
}

.download-meta dt {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-meta dd {
  min-width: 0;
  margin: 0;
  color: #ffe1bd;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.download-card .release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}

.download-card .release-actions .button {
  flex: 1 1 150px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.split-copy {
  min-width: 0;
}

.image-panel {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-panel figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.flow-strip div {
  min-height: 94px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.flow-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.flow-strip span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.command-box {
  margin-top: 1rem;
  border: 1px solid rgba(255, 116, 24, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: #080808;
  box-shadow: var(--shadow);
}

.command-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.command-head button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  cursor: pointer;
}

.command-box pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #ffd8aa;
  white-space: pre-wrap;
}

.wiki-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.article {
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.article h1,
.article h2,
.article h3 {
  margin-top: 1.7rem;
}

.article h1:first-child,
.article h2:first-child,
.article h3:first-child {
  margin-top: 0;
}

.article a {
  color: #ffbd7a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article li {
  margin: 0.45rem 0;
  color: var(--muted);
  line-height: 1.55;
}

.article blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 116, 24, 0.08);
}

.doc-nav {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 0.5rem;
}

.doc-nav a {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.doc-nav a.is-active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 116, 24, 0.12);
}

.site-footer {
  width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.site-footer a {
  color: #ffbd7a;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

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

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.8rem;
  }

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

  .nav-link {
    justify-content: flex-start;
  }

  .grid-2,
  .grid-3,
  .module-grid,
  .download-grid,
  .split-section,
  .wiki-body,
  .flow-strip {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
    order: -1;
  }

  .latest-release-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 690px;
    padding-top: 8.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .article {
    padding: 1.1rem;
  }

  .module-card img {
    width: min(170px, 62%);
  }
}
