/* =========================================================
   Luxel — luxel.hyprlab.co
   Dark, moody, GNOME/Adwaita-flavored landing page.
   Palette: dark purples throughout — the app icon's vivid
   violet on deep plum surfaces, with the icon's magenta rim
   used sparingly as the pop accent.
   ========================================================= */

/* ---------------------------------------------------------
   Cantarell — GNOME's actual UI font, the official variable
   release from cantarell.gnome.org (cantarell-fonts 0.311),
   NOT the stale Google Fonts fork. Subset to Latin and served
   as a single variable woff2 (weight axis 100–800). Copyright
   the Cantarell Authors, SIL Open Font License 1.1 (see
   fonts/cantarell/OFL.txt).

   No local() on purpose: on Linux, browsers resolve local()
   through fontconfig, which substitutes a fallback for an unknown
   family and reports a false match, so the embed would never load.
   The ?v= suffix busts any stale cache entries.
   --------------------------------------------------------- */
@font-face {
  font-family: "Cantarell";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/cantarell/cantarell-vf-latin.woff2?v=2") format("woff2");
}

:root {
  /* Brand / accents */
  --violet:        #7b2ff7;   /* the app icon's vivid violet */
  --violet-d:      #6620d6;
  --purple:        #a986ff;   /* primary accent on dark (links, focus) */
  --purple-d:      #8d63f6;
  --magenta:       #d000dc;   /* the icon's rim glow — the pop accent */
  --magenta-d:     #a900b4;
  --green:         #2ec27e;   /* GNOME green */
  --teal:          #22c1c9;
  --pink:          #e56db1;
  --amber:         #f6b40a;

  /* Surfaces */
  --bg:            #150d24;   /* near-black plum base */
  --bg-tint:       #1c1231;   /* faint violet wash for alternating sections */
  --surface:       #211640;   /* raised cards */
  --ink:           #efeafc;   /* pale lavender-white text */
  --ink-soft:      #b0a3d3;
  --line:          #35265c;

  color-scheme: dark;         /* dark base regardless of OS light mode */

  --radius:        18px;
  --radius-lg:     26px;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.28), 0 3px 10px rgba(0,0,0,.22);
  --shadow-md:     0 10px 30px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.25);
  --shadow-lg:     0 24px 60px rgba(0,0,0,.55);

  --maxw:          1120px;
  --font:          "Cantarell";
}

/* The site is intentionally dark-only — the deep plum base is kept even
   when the OS is in light mode, so there is no prefers-color-scheme override. */

/* ----------------------------- base ----------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
}
.eyebrow--light { color: rgba(255,255,255,.9); }

/* ----------------------------- buttons -------------------------- */
.btn {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

.btn--primary {
  --btn-bg: linear-gradient(180deg, #9b5eff, var(--violet));
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.12);
}
.btn--primary:hover { --btn-bg: linear-gradient(180deg, #ab77ff, #8a44ff); }

.btn--ghost {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-bg: var(--bg-tint); }

/* "Dark" secondary button — on the dark site this reads as a raised,
   outlined surface rather than a black block. */
.btn--dark {
  --btn-bg: #2b1b52;
  --btn-fg: #fff;
  border-color: var(--line);
}
.btn--dark:hover { --btn-bg: #34215f; }

/* Buy Me a Coffee brand yellow. */
.btn--coffee {
  --btn-bg: #ffdd00;
  --btn-fg: #23211c;
  border-color: rgba(0,0,0,.08);
}
.btn--coffee:hover { --btn-bg: #ffe74d; }

.btn__icon { width: 20px; height: 20px; fill: currentColor; }

/* ------------------------------ nav ----------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 92px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* Transparent PNG — shown as-is, no shadow, background, or rounding. */
.brand__icon { display: block; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
/* Larger logo + wordmark in the header only (footer mark stays small). */
.nav .brand__icon { width: 52px; height: 52px; }
.nav .brand__name { font-size: 1.6rem; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .96rem;
}
.nav__links a:hover { color: var(--purple); text-decoration: none; }
.nav__cta { margin-left: 8px; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ------------------------------ hero ---------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 0 84px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #2c1454, #24104a);
}
.hero__inner { position: relative; max-width: 820px; margin-inline: auto; }

.hero__art { position: relative; display: block; width: fit-content; margin: 0 auto 26px; }
.hero__icon {
  position: relative;
  width: 200px; height: 200px;
  animation: floaty 6s ease-in-out infinite;
}
/* Soft violet glow behind the floating icon. */
.hero__glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123,47,247,.45), transparent 70%);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__icon { animation: none; }
  html { scroll-behavior: auto; }
}

.hero__title {
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  color: rgba(255,255,255,.88);
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
/* Secondary button reads as glass on the deep-violet hero. */
.hero .btn--ghost {
  --btn-bg: rgba(255,255,255,.12);
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.45);
}
.hero .btn--ghost:hover { --btn-bg: rgba(255,255,255,.22); }
.hero__badges {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: .92rem;
}
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.dot--green  { background: var(--green); }
.dot--magenta { background: var(--magenta); }
.dot--lilac  { background: #cdb4ff; }

/* ---------------------------- sections -------------------------- */
.section { padding: 84px 0; }
.section--tint { background: var(--bg-tint); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
/* Desktop: narrow the features heading/subheading block by 150px. */
@media (min-width: 768px) {
  #features .section__head { max-width: 530px; }
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
.section__lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 14px 0 0;
}

/* ---------------------------- feature screenshot ---------------- */
/* The app window is portrait (1060×1620), so the figure is capped much
   narrower than a landscape shot would be. The GNOME window screenshot has
   its rounded corners, drop shadow, and transparency baked in, so it needs
   no frame of its own. */
.shot {
  margin: 0 auto 52px;
  max-width: 520px;
}
.shot__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------- feature grid ---------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--purple) 38%, var(--line));
}
.card h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.card p code {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; fill: #fff; }
.card__icon--purple { background: linear-gradient(160deg, #a06bff, var(--violet)); }
.card__icon--violet { background: linear-gradient(160deg, #7d55e8, #5b2bd6); }
.card__icon--magenta { background: linear-gradient(160deg, #ee4df4, var(--magenta)); }
.card__icon--magenta svg { fill: #3c0440; }
.card__icon--amber  { background: linear-gradient(160deg, #ffcb45, var(--amber)); }
.card__icon--amber svg { fill: #4a3600; }
.card__icon--pink   { background: linear-gradient(160deg, #f18cc6, var(--pink)); }
.card__icon--teal   { background: linear-gradient(160deg, #3ad4db, var(--teal)); }

/* ------------------------------ band ---------------------------- */
.band { padding: 84px 0; }
.band--privacy {
  color: #fff;
  background: linear-gradient(160deg, #47108f, #350c73);
}
.band__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .band__inner { grid-template-columns: 1fr; } }

.band__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
.band__lead { color: rgba(255,255,255,.88); font-size: 1.1rem; margin: 14px 0 24px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist__mark {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-weight: 900;
  display: grid; place-items: center;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(208,0,220,.4);
}
.checklist strong { display: block; font-size: 1.05rem; }
.checklist p { margin: 2px 0 0; color: rgba(255,255,255,.8); font-size: .96rem; }

.band__aside { display: grid; place-items: center; }
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.stat-card__big {
  display: block;
  font-size: clamp(5rem, 16vw, 8rem);
  font-weight: 900;
  line-height: 1;
  color: #e93df2;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.stat-card__label {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  max-width: 220px;
}

/* --------------------------- open source ------------------------ */
.os { max-width: 720px; margin: 0 auto; text-align: center; }
.os__badge {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, #a06bff, var(--violet));
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.os__badge svg { width: 44px; height: 44px; fill: #fff; }
.os__lead { margin-bottom: 28px; }
.os__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------ cta ----------------------------- */
.cta { max-width: 640px; margin: 0 auto; text-align: center; }
.cta__icon { width: 84px; height: 84px; margin: 0 auto 20px; filter: drop-shadow(0 12px 22px rgba(123,47,247,.4)); }
.cta__lead { margin-bottom: 28px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__note { color: var(--ink-soft); font-size: .98rem; max-width: 560px; margin: 40px auto 20px; }

/* System requirements panel in the CTA section. */
.reqs {
  text-align: left;
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.reqs__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px;
}
.reqs__title svg { width: 20px; height: 20px; fill: var(--purple); }
.reqs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reqs__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink-soft);
}
.reqs__list strong { color: var(--ink); font-weight: 700; }
.reqs__mark {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(160deg, #a06bff, var(--violet));
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  display: grid; place-items: center;
}
.reqs__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ----------------------------- footer --------------------------- */
.footer {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.footer__tag { margin: 10px 0 0; color: var(--ink-soft); font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer__links a { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.footer__links a:hover { color: var(--purple); text-decoration: none; }

/* Stack the footer on small screens so the link row can't overflow. */
@media (max-width: 620px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__links { gap: 10px 18px; }
}
.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 600;
}
/* Hyprlab wordmark shown exactly as supplied — never recolored/inverted. */
.footer__made img { opacity: .9; transition: opacity .15s ease; }
.footer__made a:hover img { opacity: 1; }

.footer__legal {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__legal p { margin: 0 0 6px; color: var(--ink-soft); font-size: .86rem; }
.footer__legal p:last-child { margin-bottom: 0; opacity: .8; }

/* --------------------------- legal pages ------------------------ */
.legal-page { padding: 56px 0 84px; }
.legal { max-width: 820px; }
.legal__meta { color: var(--ink-soft); font-size: .92rem; margin-top: -6px; }

/* ------------------------------ docs ---------------------------- */
.docs-page { padding: 56px 0 84px; }
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) { .docs-layout { grid-template-columns: 1fr; } }

.docs-nav {
  position: sticky;
  top: 88px;
}
@media (max-width: 760px) { .docs-nav { position: static; } }
.docs-nav__title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
}
.docs-nav a:hover { background: var(--bg-tint); color: var(--purple); text-decoration: none; }
.docs-nav a.is-active { background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple); }

/* Markdown prose */
.prose { max-width: 760px; color: var(--ink); }
.prose h1 { font-size: 2rem; font-weight: 800; margin: 0 0 18px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--purple); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose code {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}
.prose pre {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.prose blockquote {
  margin: 18px 0;
  padding: 4px 18px;
  border-left: 3px solid var(--purple);
  color: var(--ink-soft);
}

/* --------------------------- install modal ---------------------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 18, .72);
  backdrop-filter: blur(3px);
  animation: modal-fade .18s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 32px;
  animation: modal-pop .2s ease;
  /* Auto-hiding scrollbar: invisible until the dialog is hovered (Firefox). */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color .25s ease;
}
.modal__dialog:hover, .modal__dialog:focus-within {
  scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent;
}
/* Auto-hiding scrollbar for WebKit/Blink — thumb fades in on hover. */
.modal__dialog::-webkit-scrollbar { width: 8px; }
.modal__dialog::-webkit-scrollbar-track { background: transparent; }
.modal__dialog::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background .25s ease;
}
.modal__dialog:hover::-webkit-scrollbar-thumb,
.modal__dialog:focus-within::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}
.modal__dialog::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--ink) 42%, transparent);
}
.modal__dialog:focus { outline: none; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__dialog { animation: none; }
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: var(--line); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; fill: currentColor; }

.modal__head { text-align: center; margin-bottom: 24px; }
.modal__icon { width: 64px; height: 64px; margin: 0 auto 14px; }
.modal__title { font-size: 1.6rem; font-weight: 800; }
.modal__sub {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 10px auto 0;
  max-width: 440px;
}

.install-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  background: var(--surface);
}
.install-block--primary {
  border-color: color-mix(in srgb, var(--purple) 40%, var(--line));
  background: var(--bg-tint);
}
.install-block > p { margin: 0 0 16px; color: var(--ink-soft); font-size: .97rem; }
.install-block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.install-block__head h3 { font-size: 1.15rem; font-weight: 800; }
.install-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ee4df4, var(--magenta));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.install-block .btn { width: 100%; justify-content: center; }

.install-note { font-size: .88rem; color: var(--ink-soft); margin: 14px 0 0; }
/* Give the note under the download button a touch more breathing room. */
.install-block--primary .btn + .install-note { margin-top: 1rem; }
.install-note code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .92em;
}

/* "or" divider */
.install-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.install-or::before, .install-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  /* minmax(0,1fr) lets the column shrink below its content's min-width, so the
     long command scrolls inside its own box instead of blowing out the modal. */
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.install-steps li {
  position: relative;
  min-width: 0;
  padding-left: 40px;
  color: var(--ink-soft);
  font-size: .97rem;
}
.install-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #a06bff, var(--violet));
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
}
.install-steps strong { color: var(--ink); }
.install-steps code {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

/* Copyable command block */
.code-copy {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin: 10px 0 0;
}
.code-copy code {
  flex: 1;
  min-width: 0;
  display: block;
  background: #0d0719;
  color: #e8ddfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .86rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: nowrap;
}
.code-copy__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.code-copy__btn:hover { background: var(--bg-tint); border-color: color-mix(in srgb, var(--purple) 40%, var(--line)); }
.code-copy__btn svg { width: 16px; height: 16px; fill: currentColor; }
.code-copy__btn.is-copied { background: var(--green); border-color: var(--green); color: #fff; }

@media (max-width: 520px) {
  .modal__dialog { padding: 30px 20px 26px; }
  .code-copy { flex-direction: column; }
  .code-copy__btn { padding: 10px; justify-content: center; }
}

/* ------------------- OS compatibility tabs ---------------------- */
.oscompat {
  text-align: left;
  max-width: 560px;
  margin: 22px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.oscompat__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px;
}
.oscompat__title svg { width: 20px; height: 20px; fill: var(--purple); }

.oscompat__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.ostab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ostab:hover { border-color: color-mix(in srgb, var(--purple) 40%, var(--line)); color: var(--ink); }
.ostab.is-active {
  background: linear-gradient(160deg, #a06bff, var(--violet));
  border-color: transparent;
  color: #fff;
}

.ospanel { display: none; }
.ospanel.is-active { display: block; animation: osfade .18s ease; }
@keyframes osfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ospanel p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 14px; }
.ospanel strong { color: var(--ink); }
.ospanel p code {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}

.os-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.os-status svg { width: 15px; height: 15px; flex: none; }
.os-status--ready { background: color-mix(in srgb, var(--green) 18%, var(--bg)); color: #6fe0ae; }
.os-status--ready svg { fill: var(--green); }
.os-status--setup { background: color-mix(in srgb, var(--magenta) 20%, var(--bg)); color: #f491f8; }
.os-status--setup svg { fill: var(--magenta); }

.ospanel__steps-title {
  font-weight: 800;
  color: var(--ink) !important;
  font-size: 1rem;
  margin: 20px 0 10px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ospanel__sub {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.ospanel__sub em { color: var(--ink); font-style: normal; font-weight: 700; }
