@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/TitilliumWeb-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/TitilliumWeb-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Titillium Web";
  src: url("/assets/fonts/TitilliumWeb-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --chrome: #111112;
  --bg: #070708;
  --surface: rgba(15, 15, 17, 0.78);
  --surface-hover: rgba(26, 26, 29, 0.88);
  --surface-sub: rgba(9, 9, 11, 0.66);
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.22);
  --ink: #fafafa;
  --muted: #8a8a91;
  --r-card: 14px;
  --r-sm: 7px;
  --sans: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 940px;
}

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

html {
  background: var(--chrome);
  height: 100%;
  overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  background: transparent;
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image: url("/assets/img/background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.overlay {
  background-image: url("/assets/img/noise.jpg");
  background-repeat: repeat;
  z-index: 10050;
  pointer-events: none;
  image-rendering: pixelated;
  position: fixed;
  inset: 0;
  opacity: 0.032;
}

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

code {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--surface-sub);
  padding: 0.15em 0.45em;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.site-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: relative;
  flex-shrink: 0;
  z-index: 30;
  background: var(--chrome);
}

.header-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.14s ease, background-color 0.14s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.site-main {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 0;
  width: calc(100% - 14px);
  margin: 0 7px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 24px var(--chrome);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 0 58px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  transition: color 0.14s ease;
}

.back-link:hover { color: var(--ink); }

.page-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.page-title-with-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.page-logo {
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.title-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

.version-text {
  font-size: 0.92rem;
  font-family: var(--mono);
  color: var(--muted);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.release-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.section-label {
  margin: 2.25rem 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dl-card-wide { grid-column: 1 / -1; }

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.14s ease;
}

.dl-card:hover { border-color: var(--line-strong); }

.dl-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dl-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.dl-sub {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover { background: #d8d8dc; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.85rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  background: var(--surface-sub);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.65rem;
}

.cmd-box code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.76rem;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  flex-shrink: 0;
  z-index: 20;
  background: var(--chrome);
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
}
