.nexus-release-pending {
  margin-block: auto 0;
  padding-block-start: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}

.nexus-page {
  padding-block: clamp(28px, 5vw, 64px);
  --nexus-blue: #9ac7ff;
  --nexus-ink: #0d2035;
  --nexus-surface: #151f2e;
}

.nexus-symbols {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
}

.nexus-icon {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nexus-page .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid #536784;
  border-radius: 7px;
  background: #182839;
  color: #eff4fb;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 1px 0 #ffffff0e inset;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.nexus-page .button:not(.primary):hover {
  border-color: #a3c6f5;
  background: #263a51;
}

.nexus-page .button.primary {
  border-color: #a7cbff;
  background: var(--nexus-blue);
  color: var(--nexus-ink);
}

.nexus-page .button.primary:hover {
  background: #c3dfff;
}

.nexus-page :is(a, button):focus-visible {
  outline: 2px solid #bbd7ff;
  outline-offset: 3px;
}

.nexus-intro {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid #3c526b;
  border-radius: 16px;
  background: linear-gradient(145deg, #101b2b 20%, #1b2e46 78%, #1b3348);
}

.nexus-intro-copy, .nexus-preview, .nexus-section > *, .nexus-evidence-grid > * {
  min-width: 0;
}

.nexus-intro h1 {
  margin-block: 8px 12px;
  font-size: clamp(54px, 7.5vw, 96px);
  line-height: 1;
}

.nexus-intro .lead {
  margin-block: 0 22px;
}

.nexus-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nexus-version {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--nexus-blue);
  font-size: 14px;
  margin: 0;
}

.nexus-preview {
  margin: 0;
}

.nexus-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px #070d19a6;
}

.nexus-preview figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1dceb;
  font-size: 14px;
  margin-block-start: 14px;
}

.nexus-preview .nexus-caption-icon {
  inline-size: 32px;
  block-size: 32px;
}

.nexus-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-block: 16px;
  border-block-end: 1px solid var(--line);
}

.nexus-page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.nexus-section {
  border-block-end: 1px solid var(--line);
  padding-block: clamp(28px, 5vw, 52px);
}

.nexus-section > h2 {
  margin-block: 0 24px;
}

.nexus-gallery header h2 {
  margin: 0 0 8px;
}

.nexus-gallery header {
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--nexus-blue);
  margin-block-end: 26px;
}

.nexus-gallery header p {
  margin: 0;
  color: var(--muted);
}

.nexus-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
}

.nexus-gallery-grid figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  border: 1px solid #394d63;
  border-radius: 12px;
  background: var(--nexus-surface);
}

.nexus-tone-workspace { --nexus-tone: #a6ceff; --nexus-icon-bg: #243955; }
.nexus-tone-command { --nexus-tone: #b3cdfd; --nexus-icon-bg: #283952; }
.nexus-tone-connection { --nexus-tone: #a3e3d4; --nexus-icon-bg: #1d3f3d; }
.nexus-tone-files { --nexus-tone: #f3cb93; --nexus-icon-bg: #44372c; }
.nexus-tone-privacy { --nexus-tone: #d8c4fc; --nexus-icon-bg: #3a304e; }

.nexus-caption-icon, .nexus-shot-expand {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid color-mix(in srgb, var(--nexus-tone) 40%, transparent);
  border-radius: 8px;
  background: var(--nexus-icon-bg);
  color: var(--nexus-tone);
}

.nexus-shot {
  position: relative;
  display: block;
  border-radius: 10px;
  cursor: zoom-in;
}

.nexus-shot-expand {
  position: absolute;
  inset-block-start: 11px;
  inset-inline-end: 11px;
  background: #132034;
  box-shadow: 0 4px 12px #03081190;
  transition: background-color 150ms ease;
}

.nexus-shot:is(:hover, :focus-visible) .nexus-shot-expand {
  background: var(--nexus-icon-bg);
}

.nexus-shot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nexus-gallery-grid img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: 11px 11px 0 0;
  border-block-end: 1px solid var(--line);
  background: #101a28;
}

.nexus-gallery-grid figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 19px clamp(14px, 2.5vw, 24px) 23px;
  color: var(--muted);
  font-size: 15px;
}

.nexus-gallery-grid figcaption strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.nexus-gallery-grid figcaption p {
  margin: 4px 0 0;
}

.nexus-gallery-dialog {
  inline-size: min(1520px, calc(100% - 24px));
  max-inline-size: none;
  max-block-size: calc(100dvh - 24px);
  padding: clamp(10px, 2vw, 22px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111b28;
  color: var(--text);
}

.nexus-gallery-dialog::backdrop {
  background: #040914dd;
}

.nexus-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 12px;
}

.nexus-gallery-toolbar p {
  margin: 0;
  font-weight: 650;
}

.nexus-gallery-toolbar form {
  flex-shrink: 0;
  margin: 0;
}

.nexus-gallery-dialog figure {
  margin: 0;
}

.nexus-gallery-dialog img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-block-size: 69dvh;
  object-fit: contain;
  background: #0b1420;
}

.nexus-gallery-footer, .nexus-gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nexus-gallery-footer {
  justify-content: space-between;
  margin-block-start: 12px;
}

.nexus-gallery-controls button {
  inline-size: 44px;
  padding-inline: 0;
}

.nexus-shot-count {
  padding-inline: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.nexus-download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.nexus-ios {
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: center;
  margin-block: clamp(38px, 6vw, 84px);
  padding: clamp(20px, 4.5vw, 54px);
  border: 1px solid #3f5574;
  border-radius: 24px;
  background: radial-gradient(ellipse at 15% 22%, #223e63 0, transparent 48%), #101c2a;
}
.nexus-ios-copy { min-width: 0; }
.nexus-ios-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3.7rem); line-height: 1.05; margin: 0; scroll-margin-top: 110px; }
.nexus-ios-copy .lead { margin: .75rem 0 1.2rem; max-width: 38ch; }
.nexus-ios-illustration { display: grid; place-items: center; }
.nexus-ios-phone {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  width: min(100%, 244px);
  aspect-ratio: 9 / 15;
  padding: 13px;
  border: 5px solid #4a6588;
  border-radius: 36px;
  background: radial-gradient(ellipse at 0% 12%, #7356b5 0, transparent 55%), radial-gradient(ellipse at 100% 88%, #227f83 0, transparent 54%), #0b162c;
  box-shadow: 0 22px 40px #0208109c, inset 0 0 0 1px #abc6ef70;
}
.nexus-ios-island { width: 38%; height: 19px; border-radius: 20px; background: #080d18; }
.nexus-ios-app { align-self: center; display: grid; gap: 8px; justify-items: center; color: #fff; font-size: .84rem; font-weight: 650; }
.nexus-ios-app img { width: 72px; height: 72px; border-radius: 19px; box-shadow: 0 9px 22px #03071175; }
.nexus-ios-home-indicator { width: 43%; height: 4px; border-radius: 99px; background: #edf5ff; }
.nexus-ios-steps { display: grid; gap: 10px; padding: 0; margin: 0 0 16px; list-style: none; counter-reset: ios-step; }
.nexus-ios-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: start; counter-increment: ios-step; }
.nexus-ios-steps li::before { content: counter(ios-step); display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #586e8a; border-radius: 10px; background: #1c304a; color: #aff0dc; font-weight: 700; }
.nexus-ios-steps p { margin: 3px 0 0; color: var(--muted); }
.nexus-ios .text-link { align-self: center; }
.nexus-ios-note { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }
@media (min-width: 761px) and (max-width: 1080px) { .nexus-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nexus-ios { grid-template-columns: minmax(0, 1fr); }
  .nexus-ios-illustration { grid-row: 2; }
  .nexus-ios-phone { width: min(45vw, 159px); }
  .nexus-ios-app img { width: 52px; height: 52px; border-radius: 14px; }
}

.nexus-download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(17px, 3vw, 25px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--nexus-surface);
}

.nexus-platform-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nexus-platform-heading .nexus-icon {
  color: var(--nexus-blue);
}

.nexus-download-card h3, .nexus-evidence-grid h3 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}

.nexus-download-card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.nexus-download-card .nexus-platform {
  color: var(--accent);
  font-size: 14px;
  margin-block: 7px 14px;
}

.nexus-download-card .button {
  margin-block-start: auto;
  inline-size: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}
.nexus-alternative-download { margin-block-start: 10px; font-size: .88rem; text-underline-offset: .2em; }

.nexus-checksums, .nexus-install-help {
  padding: 11px 0;
  margin-block: 5px;
  border-block-end: 1px solid var(--line);
}

.nexus-checksums summary, .nexus-install-help summary {
  cursor: pointer;
  font-weight: 650;
  max-width: max-content;
  min-height: 26px;
}

.nexus-checksums dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.nexus-split {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 0 clamp(22px, 5vw, 58px);
}

.nexus-split > h2 {
  overflow-wrap: anywhere;
}

.nexus-copy {
  max-width: 69ch;
}

.nexus-copy p, .nexus-support p {
  color: var(--muted);
}

.nexus-copy > :first-child, .nexus-support p {
  margin-block-start: 0;
}

.nexus-steps {
  padding-inline-start: 23px;
  margin-block: 0 16px;
}

.nexus-steps li {
  padding-inline-start: 5px;
  margin-block-end: 8px;
}

.nexus-steps li::marker {
  color: var(--accent);
  font-weight: 650;
}

.nexus-definitions {
  margin: 0;
}

.nexus-definitions div {
  padding-block: 0 10px;
}

.nexus-definitions div + div {
  padding-block-start: 10px;
  border-block-start: 1px solid var(--line);
}

.nexus-definitions dt, .nexus-checksums dt {
  font-weight: 650;
}

.nexus-definitions dd {
  color: var(--muted);
  margin: 0;
}

.nexus-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 4vw, 32px);
}

.nexus-evidence-grid > section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(17px, 3vw, 25px);
}

.nexus-evidence-grid h3 {
  margin-block-end: 14px;
}

.nexus-evidence-grid p {
  color: var(--muted);
}

.nexus-evidence-grid p:last-child, .nexus-release-note:last-child {
  margin-block-end: 0;
}

.nexus-release-note {
  display: grid;
  grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr);
  gap: 4px 14px;
  margin-block-end: 12px;
  padding-block: 14px 0;
  border-block-start: 1px solid var(--line);
}

.nexus-release-note h3, .nexus-release-note p {
  margin: 0;
}

.nexus-release-note time {
  color: var(--muted);
  font-size: 14px;
}

.nexus-support {
  border-block-end: 0;
}

.nexus-support p {
  max-width: 70ch;
}

@media (max-width: 760px) {
  .nexus-intro, .nexus-download-grid, .nexus-split, .nexus-evidence-grid, .nexus-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nexus-intro {
    gap: 22px;
  }

  .nexus-intro-actions .button {
    flex: 1 1 180px;
    text-align: center;
  }

  .nexus-release-note {
    grid-template-columns: minmax(0, 1fr);
  }
}
.nexus-split:has(.nexus-pairing-guide) { display: block; }
.nexus-pairing-guide { display: grid; align-items: center; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); gap: clamp(22px,4vw,58px); max-width: none; }
.nexus-pairing-copy { min-width: 0; }
.nexus-pair-figure { margin: 0; min-width: 0; }
.nexus-pair-shot { position: relative; display: block; aspect-ratio: 1.45; overflow: hidden; border-radius: 13px; border: 1px solid #88acc17a; background: #111e2f; }
.nexus-pair-shot img { display: block; max-width: none; width: 213%; height: auto; margin: -29.5% 0 0 -56.5%; }
.nexus-pair-pin { position: absolute; left: 82.8%; display: grid; place-items: center; width: clamp(15px,4cqw,24px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(.65rem,1vw,.8rem); font-weight: 750; background: #abefd9; color: #152d3b; box-shadow: 0 0 0 2px #172837; }
.nexus-pair-shot { container-type: inline-size; }
.nexus-pair-pin::before { content: "←"; position: absolute; right: 100%; color: #a8ffe1; line-height: 1; font-weight: 800; text-shadow: 0 1px 4px #081018; }
.nexus-pair-pin-network { top: 42%; }
.nexus-pair-pin-invite { top: 87.2%; }
.nexus-pair-figure figcaption { color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 8px; }
@media (max-width: 740px) {
  .nexus-pairing-guide { grid-template-columns: minmax(0,1fr); }
}

.nexus-rc14-showcase figure {margin:16px 0 0;max-width:980px}
.nexus-rc14-showcase video {display:block;width:100%;height:auto;aspect-ratio:16/9;border:1px solid var(--line,#344350);border-radius:14px;background:#0b131f}
.nexus-rc14-showcase figcaption {margin:9px 0 0;font-size:.9rem;color:var(--text-muted,#a9bace)}
.nexus-rc14-manual {max-width:72ch;margin:12px 0 22px}

/* Keep the heading visible when the demo link jumps past the sticky navigation. */
#nexus-video-title { scroll-margin-top: 9rem }
.nexus-film-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem }
.nexus-film-details { flex: 0 0 auto; color: var(--text, #e1eaef); font-weight: 600 }
