:root {
  --accent: #FF8D54;
  --accent-soft: rgba(255, 141, 84, 0.14);
  --accent-border: rgba(255, 141, 84, 0.38);

  --bg: #17181a;
  --bg-alt: #1d1f22;
  --surface: #212327;
  --surface-2: #26282d;
  --border: #313439;
  --border-soft: #2a2d31;

  --text: #ececec;
  --text-dim: #a4a8ae;
  --text-faint: #767b82;

  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --header-h: 66px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(23, 24, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
  min-width: 0;
}

.nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

/* Native disclosure + real links; language switching works without JavaScript. */
.language-menu {
  position: relative;
  flex: 0 0 auto;
  font-size: 0.85rem;
}

.language-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  background: var(--surface);
}

.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.language-menu summary bdi {
  max-width: 20ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.language-menu summary:hover, .language-menu[open] summary { border-color: var(--accent); }
.language-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.language-menu__list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  display: grid;
  width: 215px;
  max-width: calc(100vw - 32px);
  max-height: min(65vh, 490px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 12px 32px #0008;
}
.language-menu__list a {
  display: block;
  padding: 7px 10px;
  border-radius: 5px;
  text-align: start;
}
.language-menu__list a:hover, .language-menu__list a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* RTL changes UI flow, never the screenshots, movies, shell commands or hashes. */
code, .signature__value, .contact__link span, .brand, .brand__name {
  direction: ltr;
  unicode-bidi: isolate;
}
code { display: inline-block; max-width: 100%; }
.command-box { direction: ltr; text-align: left; }
html[dir="rtl"] .copy-btn { direction: rtl; }
html[dir="rtl"] { letter-spacing: normal; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .rpm-modal__eyebrow, html[dir="rtl"] .hero__subtitle { letter-spacing: normal; }
.card, .dl__card, .rpm-step__head > div, .rpm-modal__head > div { min-width: 0; }
.card__text, .card__title, .dl__text, .rpm-modal__intro { overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #1a1206;
  box-shadow: 0 6px 22px rgba(255, 141, 84, 0.28);
}

.btn--primary:hover {
  background: #ff9d6b;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: #41454c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn--secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.btn__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 76px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(255, 141, 84, 0.13), transparent 70%),
    linear-gradient(180deg, #1b1c1f 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(3.4rem, 11vw, 7rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 25%, #9d9a97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: -6px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__lede {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--text-dim);
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__actions .btn {
  white-space: nowrap;
}

.hero__actions .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero__version {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.hero__preview {
  position: relative;
  margin-top: 62px;
  perspective: 1600px;
}

.hero__preview::before {
  content: "";
  position: absolute;
  inset: 18% -6% -8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 141, 84, 0.2), transparent 72%);
  filter: blur(38px);
  pointer-events: none;
}

.hero__preview img {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transform: rotateX(9deg);
  transform-origin: top center;
  opacity: 0.84;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset, 0 34px 70px -24px rgba(0, 0, 0, 0.85);
  mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, 0.35) 76%, transparent 99%);
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, rgba(0, 0, 0, 0.35) 76%, transparent 99%);
}

/* ---------- Sections ---------- */

.section {
  padding: 50px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-soft);
}

.section__head {
  max-width: 720px;
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
}

.section__title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.section__intro {
  margin-top: 18px;
  color: var(--text-dim);
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 2550 / 1360;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.shot:hover,
.shot:focus-visible {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

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

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 13, 0.9));
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.shot:hover .shot__caption,
.shot:focus-visible .shot__caption {
  opacity: 1;
}

/* ---------- Videos ---------- */

.vids {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.vid {
  position: relative;
  margin: 0;
  aspect-ratio: 2550 / 1360;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #101113;
  cursor: zoom-in;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.vid:hover,
.vid:focus-visible {
  border-color: var(--accent-border);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

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

.vid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vid__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(16, 17, 19, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  pointer-events: none;
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 20px;
}

.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, background 0.22s ease;
}

.card:hover {
  border-color: var(--accent-border);
  background: var(--surface-2);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--accent);
  transition: border-color 0.22s ease, background 0.22s ease;
}

.card:hover .card__icon {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card__title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.card__text {
  color: var(--text-dim);
  font-size: 0.93rem;
}

.card__text code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 141, 84, 0.12);
  color: var(--accent);
  font-size: 0.86em;
}

/* ---------- Work in progress ---------- */

.wip {
  max-width: 1200px;
}

.wip__text {
  margin-top: 18px;
  color: var(--text-dim);
}

/* ---------- Download ---------- */

.dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.dl__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, #1e2023 100%);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

/* Keep the four package cards balanced at tablet and desktop widths. */
@media (min-width: 721px) {
  .dl:has([data-windowsportable-open]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dl__card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
}

.dl__card--featured {
  background: linear-gradient(180deg, var(--surface-2) 0%, #202226 100%);
}

.dl__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dl__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dl__title {
  margin-top: 18px;
  font-size: 1.2rem;
}

.dl__text {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.dl__list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.dl__list li {
  padding-inline-start: 20px;
  position: relative;
}

.dl__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dl__card .btn {
  margin-top: auto;
}

.dl__note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- RPM download modal ---------- */

.dl__tag--muted {
  background: rgba(164, 168, 174, 0.1);
  color: var(--text-dim);
}

.dl__card--disabled {
  opacity: 0.72;
}

.dl__card--disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.btn:disabled,
.btn[aria-disabled="true"],
.copy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  border-color: var(--border);
  color: var(--text);
  transform: none;
}

.rpm-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rpm-modal[hidden] {
  display: none;
}

.rpm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 10, 0.9);
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}

.rpm-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2) 0%, #1c1e21 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  animation: zoom-in 0.22s ease;
}

.rpm-modal__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rpm-modal__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1206;
}

.rpm-modal__head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-inline-end: 42px;
}

.rpm-modal__eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rpm-modal__title {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.rpm-modal__intro {
  max-width: 590px;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.download-warning {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  background: var(--accent-soft);
}

.download-warning h3 {
  color: var(--accent);
  font-size: 0.95rem;
}

.download-warning p {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.download-warning a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rpm-steps {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.rpm-step {
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(23, 24, 26, 0.64);
}

.rpm-step__head {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.rpm-step__number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.rpm-step h3 {
  font-size: 0.98rem;
}

.rpm-step p {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.rpm-step p code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.command-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 10px 10px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #131416;
}

.command-box code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: #dadde1;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.copy-btn:hover,
.copy-btn.is-copied {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.rpm-fingerprint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin-top: 11px !important;
}

.rpm-fingerprint span {
  color: var(--text-faint);
  line-height: 1.4;
}

.rpm-fingerprint code {
  color: var(--text-dim) !important;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.4;
}

.rpm-modal__download {
  margin-top: 14px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

/* ---------- Collapsible signature ---------- */

.signature {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.signature__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.signature__toggle:hover {
  color: #ff9d6b;
}

.signature__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.signature__toggle[aria-expanded="true"] .signature__chevron {
  transform: rotate(-135deg);
}

.signature__body {
  margin-top: 12px;
}

.signature__hint {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.signature__value {
  max-height: 200px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #131416;
  color: #dadde1;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: center;
}

.signature__value-wrap {
  position: relative;
}

.signature__copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: 56px 0;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.contact__inner {
  text-align: center;
}

.contact__title {
  font-size: 1.4rem;
}

.contact__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 8px auto 0;
  background: var(--accent);
}

.contact__text {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.contact__link:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.contact__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 15px 0 15px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  justify-content: center;
  display: flex;
}

.site-footer__note {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 10, 0.88);
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}

.lightbox__panel {
  position: relative;
  max-width: min(1500px, 100%);
  max-height: 100%;
  animation: zoom-in 0.22s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: min(1500px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d0e0f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lightbox__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1206;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  :root { --header-h: 108px; }
  .site-header__inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 10px 6px; }
  .language-menu { margin-inline-start: auto; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
  .nav a { flex-shrink: 0; }
}

@media (max-width: 420px) {
  .language-menu summary bdi { max-width: 8ch; }
}

@media (max-width: 720px) {
  .nav a {
    padding: 7px 9px;
    font-size: 0.83rem;
  }

  .section {
    padding: 68px 0;
  }

  .lightbox__close {
    top: -52px;
    right: 0;
  }
}

@media (max-width: 620px) {
  .hero__actions {
    max-width: 320px;
    margin-inline: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .rpm-modal {
    padding: 12px;
  }

  .rpm-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 22px 16px 18px;
  }

  .rpm-modal__head {
    padding-inline-end: 36px;
  }

  .rpm-modal__head .dl__icon {
    display: none;
  }

  .rpm-step {
    padding: 16px;
  }

  .command-box {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-btn {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
