:root {
  color-scheme: dark;
  --bg: #070d18;
  --bg-soft: #0b1220;
  --surface: #101a2a;
  --surface-2: #141e2e;
  --surface-3: #19253a;
  --ink: #e8ecf4;
  --muted: #8892a8;
  --muted-2: #aeb7c8;
  --line: rgba(151, 170, 202, 0.16);
  --line-strong: rgba(151, 170, 202, 0.28);
  --cyan: #00d4ff;
  --cyan-soft: #8beaff;
  --violet: #7b61ff;
  --green: #3ddc97;
  --amber: #f2bd4c;
  --red: #ff7070;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  --radius-sm: 10px;
  --sans: Inter, "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -4%, rgba(0, 212, 255, 0.12), transparent 29rem),
    radial-gradient(circle at 95% 16%, rgba(123, 97, 255, 0.11), transparent 34rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  color: #071018;
  background: var(--cyan-soft);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: #06111b;
  background: var(--cyan);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell,
.nav-shell,
.shell-wide {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.shell-wide {
  width: min(1460px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.72rem;
  width: max-content;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-link img,
.footer-brand img {
  border-radius: 9px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.12);
}

.brand-link span span {
  color: var(--cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 26, 42, 0.68);
}

.main-nav a {
  padding: 0.46rem 0.88rem;
  color: var(--muted-2);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: var(--surface-3);
}

.version-chip {
  justify-self: end;
  padding: 0.42rem 0.7rem;
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 7px;
  background: rgba(0, 212, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  min-height: min(780px, calc(100vh - 72px));
  padding-block: 6rem;
  gap: 4rem;
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--cyan-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(61, 220, 151, 0.11), 0 0 18px rgba(61, 220, 151, 0.55);
}

.hero h1,
.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 850;
  letter-spacing: -0.072em;
  line-height: 0.93;
}

.hero h1 span,
.page-hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, var(--cyan), #6bbaff 45%, #9a87ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lede {
  max-width: 58ch;
  margin: 1.8rem 0 0;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #041219;
  background: linear-gradient(135deg, var(--cyan), #5ee1ff);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.17);
}

.button-primary:hover {
  box-shadow: 0 14px 36px rgba(0, 212, 255, 0.26);
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(20, 30, 46, 0.74);
}

.button-quiet:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: var(--surface-2);
}

.hero-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 212, 255, 0.12);
  transform: rotate(30deg);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.hero-visual::after {
  width: 430px;
  border-color: rgba(123, 97, 255, 0.1);
}

.hero-mark {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 42px;
  background: rgba(16, 26, 42, 0.75);
  box-shadow: 0 0 90px rgba(0, 212, 255, 0.14), var(--shadow);
  transform: translateY(-62px) rotate(-2deg);
  backdrop-filter: blur(12px);
}

.hero-mark img {
  border-radius: 30px;
}

.orbit {
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  border: 1px dashed rgba(139, 234, 255, 0.12);
  border-radius: 50%;
}

.orbit-two {
  width: 480px;
  border-color: rgba(123, 97, 255, 0.1);
}

.terminal-card {
  position: absolute;
  right: 0;
  bottom: 14px;
  z-index: 4;
  width: min(390px, 90%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(6, 13, 23, 0.95);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 40px;
  padding: 0 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.terminal-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.terminal-top span:first-child { background: var(--red); }
.terminal-top span:nth-child(2) { background: var(--amber); }
.terminal-top span:nth-child(3) { background: var(--green); }
.terminal-top b { margin-left: auto; font-weight: 500; }

.terminal-card pre {
  margin: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.terminal-card i {
  color: var(--cyan);
  font-style: normal;
}

.terminal-card strong {
  color: var(--green);
  font-weight: 700;
}

.metrics-band {
  border-block: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.72);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics-grid article {
  display: flex;
  min-height: 128px;
  padding: 1.5rem;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.metrics-grid article:first-child { border-left: 1px solid var(--line); }
.metrics-grid strong { font-size: 1.75rem; letter-spacing: -0.045em; }
.metrics-grid span { color: var(--muted); font-size: 0.77rem; }

.section {
  padding-block: 7rem;
}

.section-heading {
  margin-bottom: 2.25rem;
}

.section-heading h2,
.trust-copy h2,
.release-callout h2,
.policy-columns h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: end;
  gap: 3rem;
}

.split-heading > p {
  max-width: 55ch;
  margin: 0 0 0.15rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.feature-card {
  position: relative;
  min-height: 290px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 30, 46, 0.9), rgba(11, 18, 32, 0.78));
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card::after {
  position: absolute;
  right: -60px;
  bottom: -84px;
  width: 180px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(0, 212, 255, 0.1);
  transform: rotate(30deg);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.38);
  background: linear-gradient(145deg, rgba(25, 37, 58, 0.98), rgba(11, 18, 32, 0.88));
  transform: translateY(-4px);
}

.feature-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 3.5rem 0 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-link {
  position: absolute;
  bottom: 1.35rem;
  color: var(--cyan-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.trust-section {
  padding-top: 1rem;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: clamp(1.5rem, 5vw, 4rem);
  gap: 4rem;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(123, 97, 255, 0.13), transparent 20rem),
    linear-gradient(145deg, rgba(16, 26, 42, 0.98), rgba(7, 13, 24, 0.9));
  box-shadow: var(--shadow);
}

.trust-copy p:not(.kicker) {
  max-width: 56ch;
  margin: 1.5rem 0;
  color: var(--muted-2);
}

.text-link {
  color: var(--cyan-soft);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.trust-checks {
  display: grid;
  gap: 0.65rem;
}

.trust-checks > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 30, 46, 0.64);
}

.trust-checks > div > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #061710;
  border-radius: 50%;
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.trust-checks p { margin: 0; }
.trust-checks strong { display: block; font-size: 0.88rem; }
.trust-checks small { display: block; margin-top: 0.2rem; color: var(--muted); line-height: 1.5; }

.release-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

.release-callout p:not(.kicker) {
  max-width: 65ch;
  margin: 1rem 0 0;
  color: var(--muted-2);
}

.release-callout p strong {
  color: var(--red);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #060b14;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 112px;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.footer-grid p { margin: 0; }
.footer-grid nav { display: flex; justify-content: flex-end; gap: 1rem; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { color: var(--cyan-soft); }

/* Shared page layouts */
.page-main {
  padding-block: 5rem 7rem;
}

.page-hero {
  padding: 4rem 0 5rem;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero > p:last-child,
.compact-hero > p:last-child {
  max-width: 66ch;
  margin: 1.6rem 0 0;
  color: var(--muted-2);
  font-size: 1.05rem;
}

.compact-hero {
  padding-bottom: 3rem;
}

.compact-hero h1 {
  max-width: none;
}

/* Repository explorer */
.repo-main {
  min-height: calc(100vh - 184px);
  padding-block: 2.5rem 4rem;
}

.repo-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.repo-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.repo-heading p,
.repo-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.repo-heading p { color: var(--muted); }
.repo-heading h1 { color: var(--cyan-soft); }

.repo-badges,
.overview-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.62rem;
  color: var(--muted-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(16, 26, 42, 0.7);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.status-readonly {
  color: var(--green);
  border-color: rgba(61, 220, 151, 0.25);
  background: rgba(61, 220, 151, 0.07);
}

.status-readonly i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-danger {
  color: var(--red);
  border-color: rgba(255, 112, 112, 0.28);
  background: rgba(255, 112, 112, 0.07);
}

.repo-summary {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 54px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 26, 42, 0.62);
  color: var(--muted);
  font-size: 0.72rem;
}

.repo-summary strong { color: var(--ink); font-family: var(--mono); }
.repo-policy { margin-left: auto; color: var(--cyan-soft); }

.repo-toolbar {
  display: flex;
  align-items: center;
  margin: 0.8rem 0;
  gap: 0.65rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(10, 17, 29, 0.9);
}

.search-box > span {
  padding-left: 0.9rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 0.65rem;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.82rem;
}

.search-box:focus-within {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.search-box kbd {
  position: absolute;
  right: 0.65rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 23px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.tree-toggle,
#tree-close {
  display: none;
}

.search-results {
  position: absolute;
  z-index: 35;
  width: min(760px, calc(100% - 2.5rem));
  max-height: 420px;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(9, 16, 28, 0.98);
  box-shadow: var(--shadow);
}

.search-results a,
.search-empty {
  display: block;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--surface-2);
}

.search-results strong {
  display: block;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results span {
  display: block;
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 16, 28, 0.9);
}

.repo-sidebar {
  overflow: auto;
  padding: 0.9rem 0.65rem 1rem;
  border-right: 1px solid var(--line);
  background: rgba(16, 26, 42, 0.56);
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 0 0.55rem 0.5rem;
  color: var(--muted-2);
  font-size: 0.72rem;
}

#tree-close {
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 1.3rem;
}

.tree-nav ul {
  margin: 0;
  padding-left: 0.8rem;
  list-style: none;
}

.tree-nav > ul {
  padding-left: 0;
}

.tree-nav details > summary,
.tree-file {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.45rem;
  overflow: hidden;
  gap: 0.42rem;
  color: var(--muted-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.67rem;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-nav details > summary {
  cursor: pointer;
  list-style: none;
}

.tree-nav details > summary::-webkit-details-marker { display: none; }
.tree-nav details > summary::before { content: "›"; color: var(--muted); font-family: var(--sans); font-size: 1rem; transition: transform 120ms ease; }
.tree-nav details[open] > summary::before { transform: rotate(90deg); }
.tree-file::before { content: "·"; color: var(--cyan); font-size: 1rem; }
.tree-file:hover,
.tree-file.active,
.tree-nav summary:hover { color: var(--ink); background: var(--surface-3); }

.repo-content {
  min-width: 0;
  padding: 1rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 0.7rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.breadcrumbs a {
  color: var(--muted-2);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--cyan-soft); }
.breadcrumbs span { padding: 0 0.45rem; color: var(--muted); }
.breadcrumbs strong { color: var(--ink); }

.directory-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 100px;
  align-items: center;
  min-height: 45px;
  padding: 0 0.85rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.73rem;
}

.directory-row:last-child { border-bottom: 0; }
.directory-row:hover { background: rgba(25, 37, 58, 0.66); }
.directory-row a { display: flex; align-items: center; min-width: 0; gap: 0.6rem; text-decoration: none; }
.directory-row a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-row > span { color: var(--muted); text-align: right; }
.entry-icon { display: grid; place-items: center; width: 26px; height: 26px; color: var(--cyan-soft); border-radius: 6px; background: rgba(0, 212, 255, 0.07); font-family: var(--mono); font-size: 0.7rem; }
.entry-icon.file-icon { color: var(--violet); background: rgba(123, 97, 255, 0.08); }

.directory-readme {
  margin-top: 0.8rem;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 26, 42, 0.52);
}

.directory-readme h2 { margin: 0 0 1rem; font-size: 0.86rem; }
.directory-readme pre { margin: 0; overflow: auto; color: var(--muted-2); font: 0.75rem/1.75 var(--mono); white-space: pre-wrap; }

.file-view {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080f1b;
}

.file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.65rem 0.9rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.file-header > div { min-width: 0; }
.file-header strong { display: block; overflow: hidden; font-family: var(--mono); font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.file-header span:not(.language-pill) { display: block; color: var(--muted); font-size: 0.66rem; }
.language-pill { padding: 0.28rem 0.52rem; color: var(--cyan-soft); border: 1px solid rgba(0, 212, 255, 0.18); border-radius: 999px; background: rgba(0, 212, 255, 0.06); font-family: var(--mono); font-size: 0.62rem; }

.code-scroll {
  max-height: 68vh;
  overflow: auto;
  overscroll-behavior: contain;
}

.code-lines {
  min-width: max-content;
  margin: 0;
  padding: 0.85rem 0 1rem 4.4rem;
  counter-reset: line;
  background: #080f1b;
  font: 0.74rem/1.65 var(--mono);
}

.code-lines li {
  min-height: 1.65em;
  padding: 0 1.2rem 0 0.85rem;
  color: #cbd5e7;
  white-space: pre;
}

.code-lines li::marker {
  color: #4e5d72;
  font-variant-numeric: tabular-nums;
}

.code-lines li:hover { background: rgba(0, 212, 255, 0.035); }

.empty-state,
.noscript {
  padding: 4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state strong { display: block; color: var(--ink); font-size: 1.15rem; }
.empty-state a { color: var(--cyan-soft); }
.compact-footer .footer-grid { min-height: 84px; }

/* Release page */
.release-overview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  gap: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(20, 30, 46, 0.92), rgba(10, 17, 29, 0.8));
}

.release-ring {
  display: grid;
  place-items: center;
  width: 164px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 62%, var(--surface-3) 62% 100%);
  box-shadow: 0 0 45px rgba(0, 212, 255, 0.12);
}

.release-ring.q-0 { background: conic-gradient(var(--cyan) 0 0%, var(--surface-3) 0 100%); }
.release-ring.q-1 { background: conic-gradient(var(--cyan) 0 8%, var(--surface-3) 8% 100%); }
.release-ring.q-2 { background: conic-gradient(var(--cyan) 0 15%, var(--surface-3) 15% 100%); }
.release-ring.q-3 { background: conic-gradient(var(--cyan) 0 23%, var(--surface-3) 23% 100%); }
.release-ring.q-4 { background: conic-gradient(var(--cyan) 0 31%, var(--surface-3) 31% 100%); }
.release-ring.q-5 { background: conic-gradient(var(--cyan) 0 38%, var(--surface-3) 38% 100%); }
.release-ring.q-6 { background: conic-gradient(var(--cyan) 0 46%, var(--surface-3) 46% 100%); }
.release-ring.q-7 { background: conic-gradient(var(--cyan) 0 54%, var(--surface-3) 54% 100%); }
.release-ring.q-8 { background: conic-gradient(var(--cyan) 0 62%, var(--surface-3) 62% 100%); }
.release-ring.q-9 { background: conic-gradient(var(--cyan) 0 69%, var(--surface-3) 69% 100%); }
.release-ring.q-10 { background: conic-gradient(var(--cyan) 0 77%, var(--surface-3) 77% 100%); }
.release-ring.q-11 { background: conic-gradient(var(--cyan) 0 85%, var(--surface-3) 85% 100%); }
.release-ring.q-12 { background: conic-gradient(var(--cyan) 0 92%, var(--surface-3) 92% 100%); }
.release-ring.q-13 { background: conic-gradient(var(--cyan) 0 100%, var(--surface-3) 100% 100%); }

.release-ring::before {
  grid-area: 1 / 1;
  width: 132px;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--surface);
}

.release-ring div {
  z-index: 1;
  display: flex;
  align-items: baseline;
}

.release-ring strong { font-size: 2.7rem; letter-spacing: -0.07em; }
.release-ring span { color: var(--muted); font-size: 0.9rem; }
.release-overview-copy h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.05em; line-height: 1.08; }
.release-overview-copy > p:not(.kicker) { max-width: 65ch; margin: 1rem 0; color: var(--muted-2); }
.release-overview-copy .overview-tags { justify-content: flex-start; }

.release-section { padding-bottom: 3rem; }
.edition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }

.edition-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 104px;
  padding: 1rem 1.15rem;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(16, 26, 42, 0.62);
}

.edition-state {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #061710;
  border-radius: 10px;
  background: var(--green);
  font-weight: 900;
}

.edition-card.pending .edition-state { color: #1d1504; background: var(--amber); }
.edition-card h3 { margin: 0; font-size: 0.9rem; }
.edition-card p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.edition-card > span:last-child { color: var(--green); font-family: var(--mono); font-size: 0.63rem; font-weight: 800; }
.edition-card.pending > span:last-child { color: var(--amber); }

.gate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.gate-grid article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 1.1rem; gap: 0.9rem; border: 1px solid rgba(61, 220, 151, 0.18); border-radius: 13px; background: rgba(61, 220, 151, 0.045); }
.gate-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #061710; border-radius: 50%; background: var(--green); font-weight: 900; }
.gate-grid h3,
.gate-grid strong { margin: 0; font-size: 0.85rem; }
.gate-grid p { margin: 0.18rem 0 0; color: var(--muted); font-size: 0.7rem; }
.gate-grid b { color: var(--green); font: 0.65rem var(--mono); }
.gate-grid .gate-pending { border-color: rgba(242, 189, 76, 0.18); background: rgba(242, 189, 76, 0.045); }
.gate-pending .gate-icon { color: #1d1504; background: var(--amber); }
.gate-grid .gate-pending b { color: var(--amber); }

.integrity-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 3rem;
  border-top: 1px solid var(--line);
}

.integrity-note h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.055em; line-height: 1; }
.integrity-note > p { margin: 0; color: var(--muted-2); }

/* Security page */
.security-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 3rem;
}

.security-hero .eyebrow { grid-column: 1 / -1; }
.security-hero h1 { max-width: 14ch; }
.security-hero > p { align-self: center; max-width: 56ch; margin: 0; color: var(--muted-2); font-size: 1.05rem; }

.security-status {
  grid-column: 1 / -1;
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  justify-self: start;
  padding: 0.85rem 1rem;
  gap: 0.8rem;
  border: 1px solid rgba(61, 220, 151, 0.2);
  border-radius: 12px;
  background: rgba(61, 220, 151, 0.055);
}

.security-status > span { display: grid; place-items: center; width: 34px; height: 34px; color: #061710; border-radius: 50%; background: var(--green); font-weight: 900; }
.security-status strong,
.security-status small { display: block; }
.security-status strong { font-size: 0.84rem; }
.security-status small { color: var(--muted); font-size: 0.67rem; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.flow-grid article {
  position: relative;
  min-height: 210px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 26, 42, 0.62);
}

.flow-grid article:not(:last-child)::after { position: absolute; top: 50%; right: -0.75rem; z-index: 2; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; content: "→"; color: var(--cyan); border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 0.7rem; }
.flow-grid article > span { color: var(--cyan-soft); font: 0.68rem var(--mono); }
.flow-grid h3 { margin: 3.2rem 0 0.55rem; font-size: 1rem; }
.flow-grid p { margin: 0; color: var(--muted); font-size: 0.76rem; }

.protection-section { padding-top: 2rem; }
.protection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.protection-grid article { padding: 1.25rem; border: 1px solid rgba(255, 112, 112, 0.14); border-radius: 13px; background: rgba(255, 112, 112, 0.035); }
.deny-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--red); border: 1px solid rgba(255, 112, 112, 0.22); border-radius: 10px; background: rgba(255, 112, 112, 0.06); font-size: 1.2rem; }
.protection-grid h3 { margin: 2rem 0 0.45rem; font-size: 0.95rem; }
.protection-grid p { margin: 0; color: var(--muted); font-size: 0.75rem; }

.policy-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.policy-columns article { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 26, 42, 0.62); }
.policy-columns h2 { font-size: 2rem; }
.policy-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.policy-list li { position: relative; padding: 0.65rem 0 0.65rem 1.65rem; color: var(--muted-2); border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.policy-list li:last-child { border-bottom: 0; }
.policy-list li::before { position: absolute; left: 0; color: var(--green); content: "✓"; font-weight: 900; }
.deny-list li::before { color: var(--red); content: "×"; }

.public-code-note { display: grid; grid-template-columns: 180px 1fr; margin-top: 1rem; padding: 1.2rem 1.4rem; gap: 1.5rem; border: 1px solid rgba(242, 189, 76, 0.18); border-radius: 12px; background: rgba(242, 189, 76, 0.045); }
.public-code-note strong { color: var(--amber); font-size: 0.8rem; }
.public-code-note p { margin: 0; color: var(--muted-2); font-size: 0.78rem; }

.error-page { display: grid; place-items: center; }
.error-page main { width: min(620px, calc(100% - 2rem)); text-align: center; }
.error-page img { border-radius: 20px; }
.error-page h1 { margin: 0; font-size: clamp(2.3rem, 7vw, 4.5rem); letter-spacing: -0.06em; line-height: 1; }
.error-page p:not(.kicker) { margin: 1.2rem auto 1.8rem; color: var(--muted); }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-block: 5rem; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-visual { min-height: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid,
  .protection-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid article:nth-child(2)::after { display: none; }
  .repo-layout { grid-template-columns: 235px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .shell,
  .nav-shell,
  .shell-wide { width: min(100% - 1.25rem, 1180px); }
  .nav-shell { grid-template-columns: 1fr auto; min-height: 64px; }
  .brand-link img { width: 34px; height: 34px; }
  .main-nav { position: fixed; right: 0.65rem; bottom: 0.65rem; left: 0.65rem; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0.35rem; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
  .main-nav a { padding-inline: 0.35rem; text-align: center; }
  .version-chip { font-size: 0.64rem; }
  .hero { min-height: auto; padding-block: 4rem 2rem; gap: 1rem; }
  .hero h1,
  .page-hero h1 { font-size: clamp(2.8rem, 16vw, 4.8rem); }
  .hero-visual { min-height: 410px; transform: scale(0.9); }
  .terminal-card { right: 50%; width: min(390px, 100%); transform: translateX(50%) rotate(1deg); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid article:nth-child(odd) { border-left: 1px solid var(--line); }
  .metrics-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding-block: 4.5rem; }
  .split-heading,
  .trust-panel,
  .release-callout,
  .integrity-note,
  .security-hero,
  .policy-columns { grid-template-columns: 1fr; gap: 1.6rem; }
  .security-hero .eyebrow,
  .security-status { grid-column: auto; }
  .feature-grid,
  .edition-grid,
  .gate-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .trust-panel { padding: 1.25rem; }
  .release-callout .button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; min-height: 150px; padding-block: 1.5rem 5.8rem; gap: 0.6rem; }
  .footer-grid nav { justify-content: flex-start; }
  .page-main { padding-block: 2.5rem 5rem; }
  .page-hero { padding-block: 2rem 3rem; }
  .release-overview { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .release-overview-copy .overview-tags { justify-content: center; }
  .flow-grid,
  .protection-grid { grid-template-columns: 1fr; }
  .flow-grid article:not(:last-child)::after { top: auto; right: 50%; bottom: -0.75rem; transform: translateX(50%) rotate(90deg); }
  .flow-grid article:nth-child(2)::after { display: grid; }
  .public-code-note { grid-template-columns: 1fr; gap: 0.4rem; }
  .repo-heading { align-items: start; flex-direction: column; gap: 0.7rem; }
  .repo-badges { justify-content: flex-start; }
  .repo-summary { flex-wrap: wrap; }
  .repo-policy { width: 100%; margin-left: 0; }
  .tree-toggle { display: inline-flex; flex: 0 0 auto; }
  .repo-layout { display: block; overflow: visible; }
  .repo-sidebar { position: fixed; inset: 0 15% 0 0; z-index: 80; display: none; border-right: 1px solid var(--line-strong); background: #0a111d; box-shadow: 30px 0 90px rgba(0, 0, 0, 0.55); }
  .repo-sidebar.open { display: block; }
  #tree-close { display: grid; place-items: center; cursor: pointer; }
  .repo-content { padding: 0.7rem; }
  .directory-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .directory-row > span:nth-child(2) { display: none; }
  .code-scroll { max-height: 72vh; }
  .code-lines { padding-left: 3.7rem; font-size: 0.68rem; }
}

@media (max-width: 460px) {
  .brand-link > span { display: none; }
  .main-nav a { font-size: 0.72rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .metrics-grid article { min-height: 108px; padding: 1rem; }
  .metrics-grid strong { font-size: 1.42rem; }
  .hero-visual { margin-inline: -1rem; transform: scale(0.82); }
  .repo-toolbar { align-items: stretch; flex-direction: column; }
  .tree-toggle { width: 100%; }
  .directory-row { grid-template-columns: 1fr; padding-block: 0.55rem; gap: 0.1rem; }
  .directory-row > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header,
  .site-footer,
  .repo-toolbar,
  .repo-sidebar { display: none !important; }
  body { color: #111827; background: #fff; }
  body::before { display: none; }
  .repo-layout { display: block; border-color: #d1d5db; }
  .repo-content { padding: 0; }
  .file-view,
  .code-lines { color: #111827; background: #fff; }
  .code-scroll { max-height: none; overflow: visible; }
}
