/* ============================================================
   MULTI-LOADER DOWNLOAD PAGE - monosoftware.xyz

   The palette, the three faces and the radii are the launcher's
   own, taken from src/Launcher/Theme.cs, so the page and the
   application it hands over to are the same product seen twice:

     Base       #0B0E12      Ink        #E9EFF5
     InkDim     #96A5B5      InkFaint   #616F7E
     InkGhost   #44505D      Accent     #6FC0EC
     AccentDeep #357EB6      AccentGlow #8FD2F7
     GlassTint  #141D28      Good       #69C99A
     Alert      #E39B6A

     Space Grotesk      a name
     Plus Jakarta Sans  prose
     IBM Plex Mono      a value

   Radii 6 / 10 / 14 / 18 and a 4px spacing base, same as the app.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-variable.ttf") format("truetype-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-variable.ttf") format("truetype-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-400.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --base: #0B0E12;
  --base-2: #0E1217;
  --panel: #141D28;
  --panel-2: #18222E;
  --line: #222E3C;
  --line-2: #2E3D4E;

  --ink: #E9EFF5;
  --ink-dim: #96A5B5;
  --ink-faint: #8695A5;
  --ink-ghost: #44505D;

  --accent: #6FC0EC;
  --accent-deep: #357EB6;
  --accent-glow: #8FD2F7;
  --accent-dim: rgba(111, 192, 236, .12);
  --accent-line: rgba(111, 192, 236, .32);

  --good: #69C99A;
  --alert: #E39B6A;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 8px 24px rgba(0, 0, 0, .45);
  --sh-3: 0 20px 60px rgba(0, 0, 0, .6);
  --glow: 0 0 0 1px var(--accent-line), 0 10px 34px rgba(111, 192, 236, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
a { color: var(--accent); }
code { font-family: var(--font-mono); font-size: .92em; color: var(--ink); }
.mono { font-family: var(--font-mono); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #06121C;
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------------ nav */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 18, .78);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(34, 46, 60, .8);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 66px;
}
.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: 16px; letter-spacing: .22em;
}
.wordmark-ver { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links {
  color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s ease;
}
.nav-links:hover { color: var(--accent); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--r-md);
  padding: 11px 20px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease,
              box-shadow .16s ease, color .16s ease;
}
.btn-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9;
           stroke-linecap: round; stroke-linejoin: round; }
.btn-accent {
  background: var(--accent); color: #06121C;
  box-shadow: 0 6px 20px rgba(111, 192, 236, .18);
}
.btn-accent:hover { background: var(--accent-glow); transform: translateY(-1px);
                    box-shadow: 0 10px 30px rgba(111, 192, 236, .28); }
.btn-ghost {
  background: rgba(255, 255, 255, .04); color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent-glow); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("/assets/games/wardogs.jpg");
  background-size: cover; background-position: center 30%;
  filter: saturate(.72) contrast(1.06) brightness(.58);
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,14,18,.86) 0%, rgba(11,14,18,.78) 42%, rgba(11,14,18,.96) 100%),
    linear-gradient(100deg, rgba(11,14,18,.92) 6%, rgba(11,14,18,.44) 52%, rgba(11,14,18,.16) 100%);
}
.hero-inner { padding: 108px 28px 92px; max-width: 1120px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 15px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good);
                 box-shadow: 0 0 0 3px rgba(105, 201, 154, .18); }

.hero-title {
  font-size: clamp(40px, 7.2vw, 84px); line-height: 1.02;
  margin: 0 0 26px; letter-spacing: -.035em; font-weight: 600;
  max-width: 15ch;
}
.hero-lede {
  max-width: 620px; color: var(--ink-dim);
  font-size: 17.5px; line-height: 1.68; margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none;
  padding: 0; margin: 0; font-size: 13.5px; color: var(--ink-faint);
}
.hero-meta li { position: relative; }
.hero-meta li + li::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: var(--ink-ghost); transform: translateY(-50%);
}
.hero-meta .mono { color: var(--ink-dim); }

/* -------------------------------------------------------------- sections */
.section { padding: 84px 0; border-top: 1px solid rgba(34, 46, 60, .7); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -.028em; }
.section-head p { color: var(--ink-dim); font-size: 15.5px; margin: 0; line-height: 1.7; }

/* ------------------------------------------------------------- download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dl-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 30px 30px 26px;
  display: flex; flex-direction: column; box-shadow: var(--sh-2);
}
.dl-card-primary { border-color: var(--accent-line); box-shadow: var(--glow); }
.dl-card-top { margin-bottom: 14px; }
.dl-kind {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-line);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.dl-kind-quiet { color: var(--ink-faint); background: rgba(255,255,255,.04); border-color: var(--line-2); }
.dl-name { font-size: 25px; margin: 0; letter-spacing: -.02em; }
.dl-ver { font-size: 15px; color: var(--ink-faint); font-weight: 400; }
.dl-body { color: var(--ink-dim); font-size: 15px; line-height: 1.72; margin: 0 0 24px; }
.dl-body code { color: var(--ink); }

.dl-facts { margin: 0 0 24px; display: grid; gap: 10px; }
.dl-facts > div { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: baseline; }
.dl-facts dt {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0;
}
.dl-facts dd { margin: 0; font-size: 13px; color: var(--ink-dim); word-break: break-all; }
.dl-hash dd { font-size: 11.5px; line-height: 1.5; color: var(--ink-faint); }
.dl-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.62; margin: 18px 0 0; }

/* --------------------------------------------------------- requirements */
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.req-list li {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.req-list li:first-child { border-top: 0; padding-top: 0; }
.req-mark {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: .06em; padding-top: 3px;
}
.req-list h3 { font-size: 18px; margin: 0 0 7px; letter-spacing: -.015em; }
.req-list p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.72; }

/* --------------------------------------------------------------- titles */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.title-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2);
  display: flex; flex-direction: column;
}
.title-art {
  height: 168px; background-image: url("/assets/games/wardogs.jpg");
  background-size: cover; background-position: center 35%;
  filter: saturate(.82) brightness(.92);
  position: relative;
}
.title-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,14,18,.25) 0%, rgba(20,29,40,.95) 100%);
}
.title-body { padding: 18px 20px 20px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.title-name { font-size: 21px; margin: 0; letter-spacing: .01em; }
.title-state {
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--good); background: rgba(105, 201, 154, .1);
  border: 1px solid rgba(105, 201, 154, .28); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.title-ver { font-size: 12.5px; color: var(--ink-faint); margin: 8px 0 0; }
.shelf-note { margin: 26px 0 0; color: var(--ink-faint); font-size: 13.5px; line-height: 1.7; max-width: 720px; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--base-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: 14px; }
.footer-word { font-family: var(--font-display); font-size: 14px; letter-spacing: .18em; color: var(--ink-dim); }
.footer-domain { font-size: 12px; color: var(--ink-ghost); }
.footer-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-faint); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good);
               box-shadow: 0 0 0 3px rgba(105, 201, 154, .16); }
.status-dot.is-warn { background: var(--alert); box-shadow: 0 0 0 3px rgba(227, 155, 106, .16); }
.footer-build { font-size: 11.5px; color: var(--ink-faint); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .dl-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-inner { padding: 72px 28px 64px; }
  .req-list li { grid-template-columns: 40px 1fr; gap: 14px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .hero-inner { padding: 56px 20px 52px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
  .dl-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
