/* ════════════════════════════════════════════════════════════════════════
   Navigation, download picker and terminal block — dark product ground.
   Tokens come from studio.css; nothing here defines a colour of its own.
   ════════════════════════════════════════════════════════════════════════ */

/* ── top bar ────────────────────────────────────────────────────────────
   Sticky and translucent so the large screenshots read through it slightly
   as they scroll past, which keeps the bar from feeling bolted on. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,16,12,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 7px; }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--fg-2); }
.nav-links a:hover { background: rgba(255,255,255,.07); color: var(--fg); text-decoration: none; }
.nav-lang { border: 1px solid var(--line-2); font-weight: 700 !important; letter-spacing: .04em; margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; font-size: 22px;
  color: var(--fg); cursor: pointer; padding: 6px 8px; border-radius: 10px;
}
.nav-toggle:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-radius: 8px; }
  .nav-lang { margin-left: 0; text-align: center; }
}

/* ── download picker ────────────────────────────────────────────────────── */
.dl {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: end;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px;
}
.dl-row { display: flex; flex-direction: column; gap: 7px; min-width: 240px; flex: 1; }
.dl-row label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.dl-row select {
  appearance: none; -webkit-appearance: none;
  padding: 13px 40px 13px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background-color: var(--bg-2); color: var(--fg);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%237E938A' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* Native option lists on Windows draw with the OS palette, so pin them too —
   otherwise the open dropdown flashes white against the dark page. */
.dl-row select option { background: #12241B; color: #F2F7F4; }
.dl-row select:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-color: var(--ac); }
.dl-go { align-self: end; }

/* ── terminal block ─────────────────────────────────────────────────────── */
.term {
  margin-top: 14px; border-radius: var(--r); overflow: hidden;
  background: #04100B; border: 1px solid var(--line-2);
}
.term-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 15px; background: rgba(255,255,255,.05);
  font-size: 12.5px; font-weight: 700; color: var(--fg-3); letter-spacing: .04em;
}
.term-copy {
  background: rgba(255,255,255,.10); color: var(--fg); border: 0; border-radius: 8px;
  padding: 6px 13px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.term-copy:hover { background: rgba(255,255,255,.18); }
.term-copy:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.term pre {
  margin: 0; padding: 17px 15px; overflow-x: auto;
  color: #CFEFDE; font-size: 13.5px; line-height: 1.6;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
