/* ============================================================================
   Shampiss — the download page.

   The same palette as the loader and the operator console, because it is the
   same product seen from a third side: violet on near-black, depth from a
   hairline and a slightly lighter surface rather than a shadow, and colour that
   means state rather than decoration.

   One page, one column, one action. Everything a customer has to know before
   they run the file sits below the card that hands it to them.
   ========================================================================== */

:root {
  --bg:       #08080f;
  --surface:  #101019;
  --raised:   #16161f;
  --well:     #1d1d29;
  --line:     rgba(255, 255, 255, .065);
  --line-2:   rgba(255, 255, 255, .12);

  --text:     #eef0f6;
  --muted:    #9a9db4;
  /* One token, lightened from the panel's #6a6d85: this page is read at arm's
     length by somebody deciding whether to run an unsigned executable, and the
     panel's faint lands just under a readable contrast ratio on this ground. */
  --faint:    #7a7d93;

  --violet:   #8b5cf6;
  --violet-2: #a78bfa;
  --amber:    #fbbf24;

  --r-lg: 18px;
  --r:    14px;
  --r-sm: 11px;

  --sans: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, "SF Mono", Menlo, monospace;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  animation: arrive .32s cubic-bezier(.16, 1, .3, 1) both;
}

/* The one violet the page spends on atmosphere, in the same place the console's
   sign-in screen spends it. */
body::before {
  content: "";
  position: fixed;
  /* No horizontal bleed. A fixed pseudo-element that reaches past the viewport
     still counts towards the document's scroll width, so the page grows a
     sideways scrollbar with nothing to scroll to; the gradient places itself
     with its own position rather than with an oversized box. */
  inset: -30% 0 auto 0;
  height: 620px;
  background: radial-gradient(560px 380px at 74% 0%, rgba(139, 92, 246, .17), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

h1, h2, h3, p, dl, dd, dt, ol, li { margin: 0; }
a { color: var(--violet-2); }
code, .mono { font-family: var(--mono); font-size: .93em; }

:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }

.ico {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------------------------- frame */

.bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 11px;
  padding: 26px clamp(20px, 6vw, 32px) 0;
  max-width: 760px; width: 100%; margin: 0 auto;
}

.mark {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, #8b5cf6, #5b21b6);
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 24px -12px rgba(139, 92, 246, .9);
}

.who { display: flex; flex-direction: column; line-height: 1.2; }
.who b { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.who i { font-style: normal; font-size: 11.5px; color: var(--faint); }

main {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px clamp(20px, 6vw, 32px) 56px;
}

h1 {
  font-size: clamp(27px, 5.4vw, 36px);
  font-weight: 640;
  letter-spacing: -.022em;
  line-height: 1.15;
}

.lede {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15.5px;
}

/* The page's one loud thing: the file, and the way to get it. Built like the
   loader's own window — a well, rows, one accent action at the bottom. */

.card {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 26px 50px -34px rgba(0, 0, 0, .95);
}

.card-title {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.facts {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 9px 16px;
  font-size: 14px;
}
.facts dt { color: var(--faint); }
.facts dd { color: var(--text); }

.hash { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.hash code { word-break: break-all; color: var(--muted); line-height: 1.45; }

.copy {
  flex: none;
  height: 24px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--raised); color: var(--muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.copy:hover { background: var(--well); color: var(--text); border-color: rgba(255, 255, 255, .2); }

.download {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 20px;
  height: 48px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #9068f7, #7c4df2);
  color: #fff;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 30px -16px rgba(139, 92, 246, .95);
  transition: filter .15s, transform .08s;
}
.download:hover { filter: brightness(1.08); }
.download:active { transform: translateY(1px); }

.under, .miss {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
}
.miss { color: var(--amber); margin-top: 0; }

/* ------------------------------------------------------------------ the rest */

.head {
  margin-top: 44px;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.01em;
}

.steps {
  margin-top: 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 22px 40px;
  counter-increment: step;
  border-left: 1px solid var(--line);
  margin-left: 11px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute; left: -12px; top: -2px;
  width: 23px; height: 23px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(139, 92, 246, .45);
  color: var(--violet-2);
  font-family: var(--mono);
  font-size: 12px;
}

.steps h3 { font-size: 15px; font-weight: 620; }
.steps p { margin-top: 5px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }

.notes { margin-top: 16px; }
.notes dt {
  padding-top: 15px;
  font-size: 14.5px;
  font-weight: 600;
}
.notes dd {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  max-width: 66ch;
}
.notes dd em { font-style: normal; color: var(--text); }
.notes code { color: var(--violet-2); word-break: break-all; }

.foot {
  margin-top: 22px;
  color: var(--faint);
  font-size: 13.5px;
  max-width: 66ch;
}

.bar-bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  max-width: 760px; width: 100%; margin: 0 auto;
  padding: 22px clamp(20px, 6vw, 32px) 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .facts dd { margin-bottom: 9px; }
  .bar-bottom { flex-direction: column; }
}
