/* codeviewer.21no.de: same tokens and type as the app. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0e14;
  --bg-2: #10141c;
  --card: #141924;
  --line: rgba(160, 180, 220, 0.1);
  --line-2: rgba(160, 180, 220, 0.18);
  --fg: #d6dbe5;
  --fg-strong: #f3f6fb;
  --muted: #8b94a5;
  --faint: #5a6375;
  --accent: #7aa2ff;
  --accent-2: #b38cff;
  --ok: #8fd18a;
  --git-mod: #e2b860;
  --git-add: #7ccf8a;
  --git-del: #f2788c;
  --git-conflict: #e58cf0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(160, 180, 220, 0.08);
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fa;
    --bg-2: #ffffff;
    --card: #ffffff;
    --line: rgba(30, 40, 70, 0.09);
    --line-2: rgba(30, 40, 70, 0.16);
    --fg: #2a303c;
    --fg-strong: #0f1420;
    --muted: #5f6878;
    --faint: #9aa2b1;
    --accent: #3b6cf6;
    --accent-2: #8b5cf6;
    --ok: #1a7f37;
    --git-mod: #a36a00;
    --git-add: #1a7f37;
    --git-del: #cf222e;
    --git-conflict: #a31eaf;
    --shadow: 0 30px 80px rgba(20, 30, 60, 0.18), 0 0 0 1px rgba(30, 40, 70, 0.08);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16.5px/1.6 "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}
kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--card);
}
svg {
  width: 1em;
  height: 1em;
  flex: none;
}
main,
.nav,
.foot {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 88px 0 0;
}
h1,
h2,
h3 {
  color: var(--fg-strong);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
}
.sub {
  max-width: 640px;
  margin: 14px auto 40px;
  text-align: center;
  color: var(--muted);
}
.muted {
  color: var(--faint);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: none;
  padding: 0 max(24px, calc((100% - 1112px) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--fg-strong);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.nav nav a {
  color: var(--muted);
}
.nav nav a:hover {
  color: var(--fg-strong);
  text-decoration: none;
}
.gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* hero */
.hero {
  padding-top: 84px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border-radius: 99px;
  font: 600 12px var(--mono);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 680px;
  margin: 26px auto 0;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--muted);
}
.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn svg {
  width: 19px;
  height: 19px;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(100deg, #5b86f5, #9a6ef5);
  box-shadow: 0 10px 30px color-mix(in srgb, #6b7ff5 40%, transparent);
}
.btn.primary small {
  font-weight: 500;
  opacity: 0.8;
  margin-left: 2px;
}
.btn.ghost {
  color: var(--fg-strong);
  border: 1px solid var(--line-2);
  background: var(--card);
}
.fine {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--faint);
}
.fine a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.shot {
  margin: 56px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img,
.shot-sm {
  display: block;
  width: 100%;
  height: auto;
}

/* features */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 26px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.card h3 {
  font-size: 17px;
  margin: 14px 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.ficon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.security .card h3 {
  margin-top: 0;
}

/* split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.split h2 {
  text-align: left;
}
.split p {
  color: var(--muted);
}
.shot-sm {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.ticks {
  padding: 0;
  list-style: none;
  color: var(--fg);
  font-size: 15px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  margin: 10px 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.ticks b {
  font-family: var(--mono);
}
.gM { color: var(--git-mod); }
.gA, .gU { color: var(--git-add); }
.gD { color: var(--git-del); }
.gC { color: var(--git-conflict); }

/* downloads */
.dl {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14.5px;
}
.dl th {
  padding: 12px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.dl td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.dl tr:last-child td {
  border-bottom: 0;
}
.plat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.plat svg {
  width: 22px;
  height: 22px;
  color: var(--fg-strong);
}
.plat span,
.file {
  display: flex;
  flex-direction: column;
}
.plat small,
.file small {
  color: var(--faint);
  font-size: 12.5px;
}
.file a {
  font-family: var(--mono);
  font-size: 13.5px;
  word-break: break-all;
}
.sha,
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.sha:hover,
.copy:hover {
  color: var(--fg-strong);
  border-color: var(--line-2);
}
.sha code {
  font-size: 12.5px;
}
.copied {
  color: var(--ok) !important;
  border-color: color-mix(in srgb, var(--ok) 50%, transparent) !important;
}
.more {
  margin-top: 16px;
}
.more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14.5px;
  padding: 6px 0;
}
.more .dl {
  margin-top: 10px;
}
.download .fine {
  text-align: center;
}

/* verify */
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 26px;
}
.tabs button {
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font: 600 14px "Space Grotesk", sans-serif;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  color: var(--fg-strong);
  background: var(--card);
  border-color: var(--line-2);
}
.steps {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 30px 56px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 600 14px "Space Grotesk", sans-serif;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 36px;
  bottom: 4px;
  width: 1px;
  background: var(--line-2);
}
.steps > li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.steps p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 15px;
}
.note {
  font-size: 14px !important;
}
.cmd {
  position: relative;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.cmd pre {
  margin: 0;
  padding: 14px 56px 14px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13.5px/1.7 var(--mono);
  color: var(--fg-strong);
}
.cmd .c {
  color: var(--faint);
}
.cmd .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 7px;
}
.verify .more {
  max-width: 820px;
  margin: 10px auto 0;
}
.verify .more .cmd {
  margin-top: 10px;
}

/* footer */
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 110px;
  padding-top: 26px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
.foot div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 860px) {
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .nav nav a:not(.gh) {
    display: none;
  }
  .dl th:nth-child(3),
  .dl td.hash {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
