/* NEXUS website. Monochrome, light and dark; system fonts only (no font downloads). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --card: #ffffff;
  --text: #0a0a0a;
  --muted: #55555c;
  --faint: #8a8a92;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --btn: #0a0a0a;
  --btn-text: #ffffff;
  --pill: #f4f4f5;
  --warn: #9a5b00;
  --warn-soft: #fdf5e1;
  --ok: #15803d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 30px 70px rgba(0, 0, 0, 0.16);
  --radius: 14px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Mono', Consolas, ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b0b0c;
    --bg-soft: #111113;
    --card: #141416;
    --text: #ededed;
    --muted: #a3a3a8;
    --faint: #6f6f75;
    --border: #232327;
    --border-strong: #303036;
    --btn: #ededed;
    --btn-text: #0a0a0a;
    --pill: #18181b;
    --warn: #f2b45c;
    --warn-soft: #2c2213;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
    --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-soft: #111113;
  --card: #141416;
  --text: #ededed;
  --muted: #a3a3a8;
  --faint: #6f6f75;
  --border: #232327;
  --border-strong: #303036;
  --btn: #ededed;
  --btn-text: #0a0a0a;
  --pill: #18181b;
  --warn: #f2b45c;
  --warn-soft: #2c2213;
  --ok: #4ade80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  --shot-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* Things that exist in one theme only (the hero screenshot, the theme switch icon). */
.only-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .only-dark {
    display: block !important;
  }
  :root:not([data-theme='light']) .only-light {
    display: none !important;
  }
}
:root[data-theme='dark'] .only-dark {
  display: block !important;
}
:root[data-theme='dark'] .only-light {
  display: none !important;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--btn);
  color: var(--btn-text);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 50;
}
.skip:focus {
  left: 16px;
}
svg.i {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.24em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  width: 26px;
  height: 26px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover {
  color: var(--text);
}
.nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-btn,
.menu-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.theme-btn:hover,
.menu-btn:hover {
  border-color: var(--border-strong);
}
.menu-btn {
  display: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--text);
}
.btn.primary {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-text);
}
.btn.primary:hover {
  opacity: 0.88;
}
.btn.small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn.disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.pill.warn {
  background: var(--warn-soft);
  border-color: transparent;
  color: var(--warn);
  font-weight: 600;
}
.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero .lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text);
}
.hero .sub {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 17px;
}
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 14px;
}
.hero-shot {
  margin: 52px auto 0;
  max-width: 1100px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.hero-shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shot-shadow);
}

/* "Other platforms" menu */
details.platforms {
  position: relative;
}
details.platforms summary {
  list-style: none;
}
details.platforms summary::-webkit-details-marker {
  display: none;
}
details.platforms[open] summary svg {
  transform: rotate(180deg);
}
.platforms .menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  z-index: 10;
}
.platforms .menu div,
.platforms .menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  text-decoration: none;
}
.platforms .menu a:hover {
  background: var(--pill);
}
.platforms .menu span {
  color: var(--faint);
  font-size: 13px;
}

/* ---------- sections ---------- */
.block {
  padding: 64px 0;
}
.section-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-lead {
  margin: 0 auto 36px;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.card h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--pill);
}
.card .icon svg {
  width: 22px;
  height: 22px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.split.flip > :first-child {
  order: 2;
}
.split h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.split p {
  color: var(--muted);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  margin: 8px 0;
  color: var(--muted);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}
.ticks strong {
  color: var(--text);
}
figure {
  margin: 0;
}
figure.shot button,
.zoomable {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
figure.shot img,
.zoomable img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
figure.shot.narrow {
  max-width: 400px;
  justify-self: center;
}
figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- download area ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dl-grid .card h3 {
  margin-top: 0;
}
.req {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.req li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.req li:first-child {
  border-top: 0;
}
.req li span {
  color: var(--muted);
}
.req li b {
  margin-left: auto;
  font-weight: 500;
  color: var(--faint);
  font-size: 13.5px;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 20px;
  grid-column: 1 / -1;
}
.dl-card .dl-icon {
  width: 56px;
  height: 56px;
  flex: none;
}
.dl-card h3 {
  margin: 0 0 2px !important;
}
.dl-card p {
  margin: 0;
}
.dl-card .btn {
  margin-left: auto;
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
}

/* ---------- inner pages ---------- */
.page-head {
  padding: 56px 0 18px;
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.page-head p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.prose {
  max-width: 780px;
  padding-bottom: 64px;
}
.prose h2 {
  margin: 40px 0 10px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin: 26px 0 6px;
  font-size: 18px;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose strong,
.prose em {
  color: var(--text);
}
.prose code {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pill);
  border: 1px solid var(--border);
  word-break: break-all;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  color: var(--text);
  font-weight: 600;
}
.prose td {
  color: var(--muted);
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.toc a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
}
.callout.warn {
  background: var(--warn-soft);
  border-color: transparent;
}
.callout strong {
  color: var(--text);
}
.limits {
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--bg-soft);
}
.limits h3 {
  margin: 0 0 8px;
}
.limits li {
  color: var(--muted);
  margin: 6px 0;
}
details.faq {
  border-bottom: 1px solid var(--border);
}
details.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: '+';
  color: var(--faint);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
details.faq[open] summary::after {
  content: '\2212';
}
details.faq > div {
  padding: 0 0 14px;
}
details.faq p {
  margin-top: 0;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 14.5px;
}
.foot-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-top .tagline {
  color: var(--faint);
}
.foot-top nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}
.foot-top nav a,
.foot-more a {
  color: var(--muted);
  text-decoration: none;
}
.foot-top nav a:hover,
.foot-more a:hover {
  color: var(--text);
}
.foot-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.foot-more .copy {
  margin-left: auto;
  color: var(--faint);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  cursor: zoom-out;
}
.lightbox img {
  max-height: 90vh;
  width: auto;
  border-radius: 10px;
}
.lightbox .close {
  position: fixed;
  top: 16px;
  right: 16px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .split.flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split.flip > :first-child {
    order: 0;
  }
}
@media (max-width: 760px) {
  .menu-btn {
    display: grid;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 8px;
  }
  .head-actions {
    margin-left: auto;
  }
  .head-actions .cta {
    display: none;
  }
  .grid,
  .gallery,
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .block {
    padding: 44px 0;
  }
  .dl-card {
    flex-wrap: wrap;
  }
  .dl-card .btn {
    margin-left: 0;
    width: 100%;
  }
  .foot-top nav {
    margin-left: 0;
  }
  .foot-more .copy {
    margin-left: 0;
    width: 100%;
  }
  .prose table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- NEXUS Start banner (home) ---------- */
.start-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.start-cta h3 {
  margin-top: 0;
}
.start-cta .btn {
  margin-left: auto;
  flex: none;
}

/* ---------- install steps (download page) ---------- */
details.steps {
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
details.steps summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}
details.steps summary::-webkit-details-marker {
  display: none;
}
details.steps summary::after {
  content: '+';
  margin-left: auto;
  color: var(--faint);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
details.steps[open] summary::after {
  content: '\2212';
}
details.steps ol {
  margin: 0;
  padding: 0 22px 16px 42px;
}
details.steps li {
  margin: 8px 0;
}
@media (max-width: 760px) {
  .start-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .start-cta .btn {
    margin-left: 0;
  }
}

/* ---------- list of every download ---------- */
.dl-files {
  grid-column: 1 / -1;
}
.files {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.files li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.files li:first-child {
  border-top: 0;
}
.f-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.f-head > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.f-head code {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.f-size {
  margin-left: auto;
  color: var(--faint);
  font-size: 14px;
  white-space: nowrap;
}
.f-sum {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}
.f-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 640px) {
  .f-head {
    flex-wrap: wrap;
  }
  .f-head > span:first-child {
    flex-basis: 100%;
  }
  .f-size {
    margin-left: 0;
  }
}

/* download buttons inside each system's install steps */
.step-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}
.step-dl:empty {
  display: none;
}
.req li a {
  color: inherit;
}

/* "your download has started" under the download page heading */
.dl-started {
  margin: 14px auto 0;
  max-width: 560px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--pill);
  font-size: 14.5px;
}
