:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #101e31;
  --text: #edf4fb;
  --muted: #adbfce;
  --blue: #69c4ff;
  --mint: #6be2b4;
  --line: #26384c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 52px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead, nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.masthead { min-height: 72px; }
.masthead a, .spotlight, .primary, .get { text-decoration: none; }
.brand { display: inline-flex; align-items: center; font-size: 1.25rem; font-weight: 780; letter-spacing: -.02em; }
.brand img { margin-right: 9px; object-fit: contain; }
.brand span { color: var(--blue); }
nav { color: var(--muted); font-size: .91rem; }
nav a:hover, details a { color: var(--blue); }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(22px, 5.8vw, 74px); padding-block: clamp(54px, 8vw, 112px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); line-height: .99; font-weight: 800; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.hero p { max-width: 420px; margin: 22px 0 26px; color: var(--muted); font-size: 1.06rem; }
.primary, .get { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #041321; background: var(--blue); border-radius: 8px; padding: 11px 16px; font-weight: 750; }
.primary:hover, .get:hover { background: #a2d9ff; }
.spotlight { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: block; background: var(--panel); }
.spotlight > img { width: 100%; height: auto; display: block; }
.spotlight > span { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; font-size: .88rem; }
.spotlight > span > span { color: var(--muted); }
.spotlight:hover { border-color: var(--blue); }
.catalog { padding-block: 48px 56px; background: #0b1728; border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.04em; }
.search input { width: min(100%, 270px); background: #07111f; border: 1px solid #415772; border-radius: 8px; color: var(--text); font: inherit; padding: 8px 12px; }
.search input::placeholder { color: var(--muted); }
.app-list { border-top: 1px solid var(--line); }
.app { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 15px 20px; padding: 20px 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.app:target { background: var(--panel); }
.app-icon { display: block; border-radius: 13px; width: 56px; height: 56px; object-fit: cover; border: 1px solid #405674; }
.app h3 { font-size: 1.16rem; }
.app-copy p, .install p, .install li, .footer, .load-error, #empty { color: var(--muted); }
.compat, .release-meta { color: var(--muted); font-size: .8rem; }
.app-download { text-align: right; }
.get { padding: 8px 13px; font-size: .86rem; }
.release-meta { display: block; margin-top: 5px; }
.hash { color: var(--muted); font-size: .77rem; margin-top: 5px; }
.hash summary { cursor: pointer; }
.hash code { display: block; overflow-wrap: anywhere; max-width: 26ch; }
#empty, .load-error { padding: 18px 0; }
.install { padding-block: 54px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px 44px; }
.install p { margin-top: 14px; }
.install ol { margin: 0; padding-left: 1.3em; }
.install li + li { margin-top: 8px; }
.install details { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 12px; }
.install details a { display: inline-block; margin-top: 5px; }
.install summary { cursor: pointer; font-weight: 700; }
footer { border-top: 1px solid var(--line); }
.footer { padding-block: 19px; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .hero, .install { grid-template-columns: 1fr; }
  .spotlight { max-width: 540px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .app { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  .app-icon { width: 44px; height: 44px; border-radius: 10px; }
  .app-download { grid-column: 2; text-align: left; }
  .masthead, nav { gap: 9px; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
