/* minedeck.net download page (4c2 Task 10). The launcher's own visual family: tokens from
   src/renderer/src/styles/tokens.css, the approved logo (docs/dizainas/logo), Oxanium + Geist self-hosted (OFL,
   fonts/OFL-LICENSE.txt). No script, nothing fetched from another host. Mobile first. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0; }
@font-face { font-family: "Oxanium"; src: url("fonts/oxanium-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Oxanium"; src: url("fonts/oxanium-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F; }

:root {
  --ink-0: #070a13;
  --ink-1: #0b1020;
  --ink-2: #111830;
  --line: #232d52;
  --text: #e9edfb;
  --text-2: #a9b3d6;
  --text-3: #8a96c2;
  --cyan: #19e6cf;
  --magenta: #ff2f87;
  --orange: #ff8a3c;
  --warn: #ffc24b;
  --ink-on-play: #1b0612;
  --sun-top: #ffd166;
  --sun-bottom: #b3206e;
  --font-ui: "Geist", system-ui, sans-serif;
  --font-display: "Oxanium", "Geist", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 38rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 34rem, var(--ink-1) 100%);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-ui);
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in oklab, var(--magenta) 45%, var(--ink-1)); color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
a { color: var(--cyan); text-underline-offset: 0.2em; }
strong { color: var(--text); font-weight: 600; }
code { font: 500 0.9em var(--font-mono); }

.skip {
  position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.75rem;
  background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; z-index: 2;
}
.skip:focus { top: 1rem; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 68rem; margin: 0 auto; padding: 1.25rem 1.25rem 0;
}
.logo { display: block; height: 2.5rem; width: auto; }
.lang {
  color: var(--text-2); text-decoration: none; font-size: 0.9375rem;
  padding: 0.5rem 0.75rem; min-height: 2.75rem; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.lang:hover { color: var(--text); border-color: color-mix(in oklab, var(--text-3) 60%, var(--line)); }

main { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.hero { position: relative; z-index: 1; padding: 3rem 0 0; display: grid; gap: 2rem; }
h1 {
  margin: 0; max-width: 16ch;
  font: 700 clamp(2rem, 7.4vw, 3.75rem)/1.08 var(--font-display);
  letter-spacing: -0.02em; text-wrap: balance;
}
.lead { margin: 1rem 0 0; max-width: var(--measure); color: var(--text-2); font-size: 1.0625rem; text-wrap: pretty; }

.download { display: grid; justify-items: stretch; gap: 0.5rem; }
.dl {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 1.75rem; border-radius: 12px;
  background: linear-gradient(90deg, var(--magenta), var(--orange));
  color: var(--ink-on-play); text-decoration: none;
  font: 700 1.125rem/1 var(--font-display); letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -8px rgba(255, 70, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 3px 24px 2px rgba(255, 70, 110, 0.5), 0 2px 12px 0 rgba(255, 138, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.dl:active { transform: translateY(0) scale(0.98); transition-duration: 120ms; }
.dl-off {
  background: var(--ink-2); color: var(--text-2); box-shadow: none; cursor: default;
  border: 1px solid var(--line);
}
.dl-meta { margin: 0.25rem 0 0; color: var(--text-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.dl-linux { margin: 0; color: var(--text-3); font-size: 0.875rem; }

.sum { margin-top: 0.75rem; max-width: var(--measure); color: var(--text-2); font-size: 0.875rem; }
.sum summary { cursor: pointer; color: var(--text-2); min-height: 2.75rem; display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.sum summary::-webkit-details-marker { display: none; }
.sum summary::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: -45deg; transition: rotate 200ms var(--ease-out);
}
.sum[open] summary::before { rotate: 45deg; }
.sum summary:hover { color: var(--text); }
.sum p { margin: 0.25rem 0 0.5rem; }
.hash {
  display: block; padding: 0.75rem; border-radius: 8px; background: var(--ink-0); border: 1px solid var(--line);
  color: var(--text); font-size: 0.8125rem; line-height: 1.5; overflow-wrap: anywhere; user-select: all;
}

/* The scene under the hero: the launcher's striped sun sinking behind a grid floor. The sun drifts a few px up and down
   (transform) and the floor lines glide towards the viewer (transform of a pseudo-element; the horizon stays put). */
/* Full bleed: the scene runs from one edge of the window to the other (main is centred, so 50% - 50vw reaches the
   edge); its own side fades (.scene::after) keep the ends soft. body clips the scrollbar's few px of 100vw. */
.scene { position: relative; height: 15rem; margin: 1rem calc(50% - 50vw) 0; overflow: hidden; pointer-events: none; }
.sun {
  position: absolute; left: 50%; bottom: 3.4rem; width: 11rem; height: 11rem; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-top) 0%, color-mix(in oklab, var(--sun-top) 30%, var(--magenta)) 45%, var(--sun-bottom) 100%);
  mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 68%, #000 68% 74%, transparent 74% 80%, #000 80% 85%, transparent 85% 92%, #000 92%);
  box-shadow: 0 0 80px 10px color-mix(in oklab, var(--magenta) 30%, transparent);
  opacity: 0.9;
  animation: sun-drift 9s ease-in-out infinite alternate;
}
.floor {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 4.6rem;
  background:
    repeating-linear-gradient(90deg, color-mix(in oklab, var(--cyan) 55%, transparent) 0 1px, transparent 1px 3rem),
    linear-gradient(180deg, color-mix(in oklab, var(--magenta) 30%, var(--ink-1)), var(--ink-1));
  transform: perspective(14rem) rotateX(58deg); transform-origin: 50% 0;
  border-top: 2px solid color-mix(in oklab, var(--magenta) 80%, var(--sun-top)); overflow: hidden;
}
/* Horizontal lines: one grid period (1.1rem) taller than the floor and moved by exactly one period per loop = no seam. */
.floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1.1rem; bottom: 0;
  background: repeating-linear-gradient(180deg, color-mix(in oklab, var(--cyan) 45%, transparent) 0 1px, transparent 1px 1.1rem);
  animation: floor-glide 3.2s linear infinite;
}
.floor::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--magenta) 45%, var(--ink-1)) 0%, transparent 30%);
}
@keyframes sun-drift { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
@keyframes floor-glide { from { transform: translateY(0); } to { transform: translateY(1.1rem); } }
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-1) 0%, transparent 22%, transparent 78%, var(--ink-1) 100%), linear-gradient(180deg, transparent 70%, var(--ink-1) 100%);
}

.block { max-width: var(--measure); padding: 2.5rem 0 0; }
.block + .block { border-top: 1px solid var(--line); margin-top: 2.5rem; }
h2 { margin: 0 0 0.75rem; font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.block p { margin: 0 0 1rem; color: var(--text-2); text-wrap: pretty; }
.steps, .facts { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 0.75rem; color: var(--text-2); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0.15rem 0 0 2.75rem; min-height: 2rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--cyan) 55%, var(--line)); color: var(--cyan);
  font: 600 0.9375rem/1 var(--font-display);
}
.facts li { padding-left: 1.25rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 2px; background: var(--cyan); }
.note {
  padding: 0.875rem 1rem; border-radius: 12px; background: color-mix(in oklab, var(--warn) 7%, var(--ink-2));
  border: 1px solid color-mix(in oklab, var(--warn) 40%, var(--line));
}

.foot {
  max-width: 68rem; margin: 4rem auto 0; padding: 1.5rem 1.25rem 2.5rem; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.875rem;
}
.foot p { margin: 0 0 0.375rem; max-width: var(--measure); }

/* Closed beta: the public "coming soon" page and the testers' password form (site/_worker.js) share this layout. */
.soon-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.soon-body .top { width: 100%; }
.soon { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.soon-text { position: relative; z-index: 1; padding: 3.5rem 0 0; text-align: center; }
.soon-text h1 { margin: 0 auto; max-width: none; font-size: clamp(2.75rem, 11vw, 5.5rem); letter-spacing: -0.03em; }
.soon-text .lead { margin: 1.25rem auto 0; max-width: 34rem; }
.soon .scene { margin-top: 2.5rem; }
.soon-body .foot { margin-top: 0; width: 100%; text-align: center; }
.soon-body .foot p { margin-left: auto; margin-right: auto; }
.top-links { display: flex; align-items: center; gap: 0.25rem; }
.quiet {
  color: var(--text-3); text-decoration: none; font-size: 0.9375rem;
  padding: 0.5rem 0.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; border-radius: 999px;
  transition: color 200ms var(--ease-out);
}
.quiet:hover { color: var(--text); text-decoration: underline; }
.logo-link { display: block; border-radius: 6px; }

.gate { position: relative; z-index: 1; width: 100%; max-width: 24rem; margin: 0 auto; padding: 3rem 0 0; }
.gate-title { margin: 0; max-width: none; font-size: clamp(2rem, 8vw, 2.75rem); }
.gate-lead { margin: 0.875rem 0 0; color: var(--text-2); text-wrap: pretty; }
.gate-form { display: grid; gap: 0.625rem; margin-top: 1.75rem; }
.gate-form label { font-weight: 600; font-size: 0.9375rem; }
.gate-form input {
  min-height: 3rem; padding: 0 0.875rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--ink-0); color: var(--text); font: 400 1rem/1 var(--font-ui); caret-color: var(--cyan);
  transition: border-color 200ms var(--ease-out);
}
.gate-form input:hover { border-color: color-mix(in oklab, var(--text-3) 60%, var(--line)); }
.gate-form input:focus-visible { border-color: var(--cyan); outline-offset: 2px; }
.gate-form input[aria-invalid="true"] { border-color: color-mix(in oklab, var(--warn) 70%, var(--line)); }
.gate-form button {
  margin-top: 0.375rem; min-height: 3rem; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, var(--magenta), var(--orange)); color: var(--ink-on-play);
  font: 700 1.0625rem/1 var(--font-display); letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -8px rgba(255, 70, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 160ms var(--ease-out);
}
.gate-form button:active { transform: scale(0.98); }
.gate-error {
  margin: 0; padding: 0.625rem 0.875rem; border-radius: 10px; font-size: 0.9375rem; color: var(--text);
  background: color-mix(in oklab, var(--warn) 9%, var(--ink-2)); border: 1px solid color-mix(in oklab, var(--warn) 45%, var(--line));
}
.gate-back { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.gate .note { margin-top: 1.5rem; color: var(--text-2); }
.beta-note {
  margin: 1.5rem 0 0; padding: 0.5rem 0.875rem; display: inline-block; border-radius: 999px; font-size: 0.875rem;
  color: var(--text-2); border: 1px solid color-mix(in oklab, var(--cyan) 35%, var(--line));
}

@media (max-width: 26rem) {
  .top { gap: 0.5rem; }
  .top-links { gap: 0; }
  .quiet, .lang { padding-left: 0.5rem; padding-right: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sun, .floor::before { animation: none; }
}

@media (min-width: 48rem) {
  .soon-text { padding-top: 5rem; }
  .gate { padding-top: 4.5rem; }
  .top { padding: 1.75rem 2rem 0; }
  .logo { height: 3rem; }
  main { padding: 0 2rem; }
  .hero { padding-top: 5rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 3rem; }
  .download { justify-items: stretch; padding-bottom: 0.5rem; }
  .dl { width: 100%; }
  .scene { height: 19rem; margin: 1.5rem calc(50% - 50vw) 0; }
  .sun { width: 14rem; height: 14rem; bottom: 4.6rem; }
  .floor { height: 6rem; }
  .foot { padding: 1.5rem 2rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dl, .lang, .quiet, .sum summary::before, .gate-form input, .gate-form button { transition: none; }
  .dl:hover, .dl:active, .gate-form button:active { transform: none; }
}
