/* luminexchess.com: one stylesheet, no external fonts or frameworks. */

:root {
  --bg: #040a17;
  --bg-raise: #081229;
  --panel: rgba(17, 29, 63, 0.5);
  --panel-strong: rgba(22, 37, 80, 0.72);
  --border: rgba(134, 160, 255, 0.14);
  --border-strong: rgba(134, 160, 255, 0.3);
  --text: #e8eeff;
  --muted: #a3afd3;
  --faint: #8592b8;
  --cyan: #6ee7f9;
  --violet: #a78bfa;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet));
  --glow-cyan: rgba(110, 231, 249, 0.35);
  --glow-violet: rgba(167, 139, 250, 0.3);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient light behind the whole page, matching the logo's backdrop. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 680px at 78% -12%, rgba(30, 86, 160, 0.42), transparent 62%),
    radial-gradient(820px 560px at -6% 38%, rgba(124, 92, 230, 0.13), transparent 62%),
    linear-gradient(180deg, #071630 0%, #040a17 42%, #02050d 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #a5f3fc; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: 0.9em; color: #cfe9ff; background: rgba(110, 231, 249, 0.08); padding: 0.12em 0.4em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--panel-strong); color: var(--text); border: 1px solid var(--border-strong);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 11, 26, 0.78);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; box-shadow: 0 0 18px var(--glow-cyan); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; transition: color 0.2s, background-color 0.2s; }
.site-nav a:hover { color: var(--text); background: rgba(134, 160, 255, 0.08); }
.site-nav .nav-github { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; color: var(--text); border: 1px solid var(--border-strong); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(640px, 72vh); }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); padding: 7px 14px; border-radius: 999px;
  background: rgba(110, 231, 249, 0.07); border: 1px solid rgba(110, 231, 249, 0.22);
}
.eyebrow span { margin-inline: 0.3em; }
.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(3.6rem, 10vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(100deg, #b4f6ff 0%, var(--cyan) 30%, var(--violet) 78%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(110, 231, 249, 0.22));
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #06101f; background: linear-gradient(95deg, #7deaf8, #a594f9); box-shadow: 0 8px 30px -8px var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { color: #06101f; box-shadow: 0 10px 38px -6px var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--text); background: rgba(134, 160, 255, 0.06); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: rgba(167, 139, 250, 0.6); background: rgba(134, 160, 255, 0.1); }
.hero-note { font-size: 0.92rem; color: var(--faint); }

.hero-art { position: relative; justify-self: center; width: min(100%, 540px); }
.hero-art::before {
  content: ""; position: absolute; inset: 14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 249, 0.2), rgba(167, 139, 250, 0.12) 45%, transparent 70%);
  filter: blur(30px);
}
.hero-art img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: clamp(24px, 4vw, 40px) 0 0; padding: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--border); border: 1px solid var(--border);
}
.stat { margin: 0; padding: 22px 24px; background: rgba(7, 15, 36, 0.86); }
.stat dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat dd { margin: 0; }
.stat-value {
  display: inline-block; margin-top: 6px;
  font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 750; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-unit { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat-note { font-size: 0.88rem; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.fn-ref { margin-left: 2px; font-weight: 700; }

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(12, 22, 52, 0.45) 18%, rgba(12, 22, 52, 0.45) 82%, transparent); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 760; letter-spacing: -0.035em; }
.section-lede { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 26px 26px 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 34, 74, 0.55), rgba(9, 17, 40, 0.55));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(110, 231, 249, 0.35); box-shadow: 0 18px 50px -24px var(--glow-cyan); }
.card h3 { font-size: 1.2rem; font-weight: 680; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  color: var(--cyan);
  background: radial-gradient(circle at 30% 25%, rgba(110, 231, 249, 0.22), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(110, 231, 249, 0.28);
  box-shadow: 0 0 22px -6px var(--glow-cyan);
}
.card-icon .icon { width: 22px; height: 22px; }

/* ---------- network diagram ---------- */

.net { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; position: relative; }
.net::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, rgba(110, 231, 249, 0.1), rgba(110, 231, 249, 0.6), rgba(167, 139, 250, 0.6), rgba(167, 139, 250, 0.1));
}
.net::after {
  content: ""; position: absolute; top: calc(50% - 4px); left: 4%; width: 10px; height: 10px; border-radius: 50%; z-index: 0;
  background: #e0fbff; box-shadow: 0 0 14px 4px var(--glow-cyan);
  animation: pulse-run 4.5s linear infinite;
}
@keyframes pulse-run { 0% { left: 4%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 95%; opacity: 0; } }
.net-layer { position: relative; z-index: 1; }
.net-btn {
  width: 100%; height: 100%; min-height: 128px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 14px;
  text-align: center; font: inherit; color: var(--text);
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #10204a, #08112a);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.net-btn:hover { border-color: rgba(110, 231, 249, 0.55); transform: translateY(-2px); }
.net-btn[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 14px 40px -12px var(--glow-cyan); }
.net-size { font-family: var(--mono); font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 700; color: #dff9ff; letter-spacing: -0.02em; }
.net-name { font-size: 0.85rem; color: var(--muted); }
.net-layer[data-layer="0"] .net-size, .net-layer[data-layer="1"] .net-size { color: var(--cyan); }
.net-layer[data-layer="5"] .net-size { color: var(--violet); }
.net-text { display: none; }
.no-js .net-text { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.net-detail {
  min-height: 3.6em; margin: 22px 0 0; padding: 18px 22px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(8, 16, 38, 0.7); color: var(--muted);
}
.no-js .net-detail { display: none; }
.net-detail strong { color: var(--text); font-weight: 650; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(48px, 6vw, 72px); }
.split-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.split-text p { color: var(--muted); }
.split-text p + p { margin-top: 12px; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 28px;
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: linear-gradient(140deg, rgba(110, 231, 249, 0.1), rgba(167, 139, 250, 0.1));
  color: var(--text); transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.link-card:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(110, 231, 249, 0.5); box-shadow: 0 16px 44px -20px var(--glow-cyan); }
.link-card .icon { position: absolute; top: 24px; right: 24px; color: var(--cyan); }
.link-card-label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.link-card-title { font-family: var(--mono); font-size: 1.05rem; font-weight: 650; overflow-wrap: anywhere; }
.link-card-meta { font-size: 0.92rem; color: var(--muted); }

/* ---------- testing ---------- */

.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.pipeline::before { /* from the centre of the first step number to the centre of the last */
  content: ""; position: absolute; top: 22px; left: 23px; right: calc(25% - 36.5px); height: 2px; z-index: 0;
  background: linear-gradient(90deg, rgba(110, 231, 249, 0.55), rgba(167, 139, 250, 0.55));
}
.pipeline li { position: relative; z-index: 1; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-weight: 750; color: #06101f; background: var(--grad);
  box-shadow: 0 0 0 6px var(--bg), 0 0 26px -2px var(--glow-cyan);
}
.pipeline h3 { font-size: 1.12rem; font-weight: 680; margin: 18px 0 8px; }
.pipeline p { color: var(--muted); font-size: 0.96rem; }

.sprt {
  margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 28, 64, 0.55), rgba(8, 15, 36, 0.55));
}
.sprt figcaption { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.sprt-title { font-size: 1.25rem; font-weight: 700; }
.sprt-sub { color: var(--muted); font-size: 0.95rem; }
.sprt-chart { --label-w: 38%; --value-w: 116px; display: grid; gap: 14px; }
.sprt-axis {
  position: relative; height: 18px; margin-left: calc(var(--label-w) + 16px); margin-right: calc(var(--value-w) + 16px);
  font-family: var(--mono); font-size: 0.75rem; color: var(--faint);
}
.sprt-axis span { position: absolute; transform: translateX(-50%); left: var(--x, 0%); }
.sprt-row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) var(--value-w); gap: 16px; align-items: center; }
.sprt-label { color: var(--text); font-weight: 560; font-size: 0.98rem; line-height: 1.35; }
.sprt-label span { display: block; color: var(--faint); font-weight: 500; font-size: 0.84rem; margin-top: 2px; }
.sprt-label:hover { color: var(--cyan); }
.sprt-track {
  position: relative; height: 34px; border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(134, 160, 255, 0.06), rgba(134, 160, 255, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(134, 160, 255, 0.08) calc(25% - 1px) 25%);
}
.sprt-track::before { /* the zero line */
  content: ""; position: absolute; top: -4px; bottom: -4px; left: var(--zero, 12.5%); width: 2px;
  background: rgba(232, 238, 255, 0.35); border-radius: 2px;
}
.sprt-bar, .sprt-dot { position: absolute; top: 50%; opacity: 0; transition: opacity 0.6s ease, width 0.9s cubic-bezier(.2, .8, .2, 1); }
.sprt-bar { left: var(--lo, 0%); width: 0; height: 10px; margin-top: -5px; border-radius: 6px; background: var(--grad); box-shadow: 0 0 16px -2px var(--glow-cyan); }
.sprt-dot { left: var(--pt, 0%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #f1fdff; box-shadow: 0 0 0 3px rgba(4, 10, 23, 0.9), 0 0 18px 3px var(--glow-cyan); }
.sprt-chart.is-ready .sprt-bar { opacity: 1; width: var(--w, 0%); }
.sprt-chart.is-ready .sprt-dot { opacity: 1; transition-delay: 0.5s; }
.sprt-value { font-family: var(--mono); font-weight: 650; font-size: 0.98rem; color: #dff9ff; text-align: right; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; }
.text-link .icon { transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- download ---------- */

.release-meta a { margin-left: 6px; font-weight: 600; }
.downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px 22px 22px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 34, 74, 0.6), rgba(9, 17, 40, 0.6));
  color: var(--text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.dl:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(110, 231, 249, 0.45); box-shadow: 0 18px 46px -22px var(--glow-cyan); }
.dl-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; color: var(--cyan); background: rgba(110, 231, 249, 0.1); border: 1px solid rgba(110, 231, 249, 0.25); }
.dl-icon .icon { width: 21px; height: 21px; }
.dl-os { font-size: 1.2rem; font-weight: 700; }
.dl-variant { color: var(--muted); font-size: 0.92rem; }
.dl-file { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); overflow-wrap: anywhere; }
.dl-size { color: var(--muted); white-space: nowrap; }
.dl-net { background: linear-gradient(160deg, rgba(167, 139, 250, 0.14), rgba(9, 17, 40, 0.6)); }
.dl-net .dl-icon { color: var(--violet); background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); }
.dl.is-recommended { border-color: rgba(110, 231, 249, 0.65); box-shadow: 0 0 0 1px rgba(110, 231, 249, 0.35), 0 20px 50px -22px var(--glow-cyan); }
.dl.is-recommended::after {
  content: "Your system"; position: absolute; top: 18px; right: 18px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #06101f; background: var(--grad); padding: 4px 10px; border-radius: 999px;
}
.dl-more { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(40px, 5vw, 56px); }
.howto-step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(8, 16, 38, 0.55); }
.howto-step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.howto-step > p { color: var(--muted); font-size: 0.98rem; }
.code { position: relative; margin-top: 18px; }
.code pre {
  margin: 0; padding: 18px 56px 18px 20px; overflow-x: auto;
  white-space: pre-wrap; overflow-wrap: anywhere;   /* wrap long commands; copying keeps them whole */
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #030816; font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; color: #d6e2ff;
}
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.copy {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  color: var(--muted); background: rgba(134, 160, 255, 0.08); border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.copy:hover { color: var(--text); border-color: var(--border-strong); }
.copy.is-done { color: var(--cyan); border-color: rgba(110, 231, 249, 0.5); }
.copy .icon { width: 17px; height: 17px; }
.no-js .copy { display: none; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 36px; background: rgba(3, 7, 17, 0.6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: start; }
.footer-brand { display: flex; gap: 16px; max-width: 560px; }
.footer-brand img { border-radius: 11px; box-shadow: 0 0 18px var(--glow-cyan); }
.footer-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand p:not(.footer-name) { color: var(--muted); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.footer-links a { color: var(--muted); font-weight: 550; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.85rem; }
.footer-base p:first-child { max-width: 760px; }

/* ---------- 404 ---------- */

.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px var(--gutter); text-align: center; }
.notfound img { width: 220px; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
.notfound .kicker { margin: 0; }
.notfound h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 760; letter-spacing: -0.03em; }
.notfound .section-lede { margin-top: 0; max-width: 30em; }
.notfound .btn { margin-top: 12px; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .net::before, .net::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(var(--header-h) - 4px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
    background: rgba(6, 13, 31, 0.97); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 12px 14px; }
  .site-nav .nav-github { margin-left: 0; justify-content: center; margin-top: 6px; }
  .no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; border: 0; background: none; box-shadow: none; padding: 0; }
  .no-js .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-art { order: -1; width: min(72%, 360px); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .pipeline::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sprt-chart { --label-w: 100%; }
  .sprt-axis { display: none; }
  .sprt-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "track value"; gap: 8px 14px; }
  .sprt-label { grid-area: label; }
  .sprt-track { grid-area: track; }
  .sprt-value { grid-area: value; font-size: 0.85rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.06em; padding: 6px 12px; }
  .cards, .downloads { grid-template-columns: 1fr; }
  .net { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
