/* The launcher's download page (docs/launcher.md, "Download page"): the launcher's look,
   night surfaces, frosted glass, Unbounded for the titles and Inter for the text */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/fonts/Unbounded-Bold.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-display: swap; src: url("/fonts/Unbounded-Black.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --night: #08080c;
  --surface: rgba(18, 16, 30, 0.62);
  --edge: rgba(255, 255, 255, 0.14);
  --edge-top: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f3f2f8;
  --soft: #b0aec0;
  --dim: #8c8aa0;
  --violet: #7c5cff;
  --pink: #e048b0;
  --cyan: #2ec5e8;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
code {
  font: 600 0.9em/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* The bar, over the hero */
.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 900 20px/1 "Unbounded", sans-serif;
  letter-spacing: 0.02em;
}
.bar nav { display: flex; gap: 28px; font-size: 15px; }
.bar nav a {
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s;
}
.bar nav a:hover { color: var(--ink); }

/* The hero: the launcher's log in backdrop, its three layers moving with the mouse */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}
.scene { position: absolute; inset: -40px; z-index: -2; }
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  will-change: transform;
}
.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.6) 38%, rgba(8, 8, 12, 0) 68%),
    linear-gradient(0deg, var(--night) 0%, rgba(8, 8, 12, 0) 30%);
}

.hero-copy { max-width: 620px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--soft);
  font: 700 12px/1 "Unbounded", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
h1 { margin: 0 0 0 -2.5%; }
h1 img { width: min(560px, 100%); height: auto; }
.tagline {
  margin: 18px 0 36px;
  max-width: 34em;
  color: var(--soft);
  font-size: clamp(17px, 1.6vw, 19px);
}

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 30px 16px 22px;
  border-radius: 16px;
  text-decoration: none;
  background: linear-gradient(120deg, var(--violet), var(--pink));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 40px -8px rgba(124, 92, 255, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.download:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 16px 50px -8px rgba(224, 72, 176, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}
.download:focus-visible, .bar a:focus-visible, .other a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
.download svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download span { display: flex; flex-direction: column; gap: 4px; }
.download strong { font: 700 17px/1.1 "Unbounded", sans-serif; }
.download small { font-size: 13px; opacity: 0.85; }
.other { margin: 0; color: var(--dim); font-size: 15px; }
.other a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.note { margin: 26px 0 0; color: var(--dim); font-size: 14px; }

/* Frosted glass, like the launcher's panels */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  border-radius: 20px;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

h2 {
  margin: 0 0 36px;
  font: 700 clamp(26px, 3.4vw, 40px)/1.15 "Unbounded", sans-serif;
  letter-spacing: -0.01em;
}
h3 { margin: 0 0 10px; font: 700 19px/1.25 "Unbounded", sans-serif; }
.card p { margin: 0; color: var(--soft); }

/* The steps, over a soft glow of the launcher's colors */
.steps {
  position: relative;
  padding: 96px var(--gutter);
  isolation: isolate;
}
.steps::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 30%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(35% 55% at 85% 70%, rgba(46, 197, 232, 0.12), transparent 70%);
}
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.steps li { padding: 30px 28px 32px; }
.num {
  display: block;
  margin-bottom: 26px;
  font: 900 15px/1 "Unbounded", sans-serif;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.os-linux { display: none; }
body.linux .os-linux { display: block; }
body.linux .os-windows { display: none; }

/* The two modes, next to the key art */
.modes {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 40px var(--gutter) 110px;
}
.modes-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 62% 40%;
  border-radius: 24px;
  border: 1px solid var(--edge);
  box-shadow: 0 30px 80px -30px rgba(46, 197, 232, 0.35);
}
.mode { padding: 26px 28px; }
.mode + .mode { margin-top: 16px; }
.mode h3 span {
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  color: var(--soft);
  font: 600 12px/1.4 "Inter", sans-serif;
  vertical-align: 3px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
footer > div { display: flex; align-items: center; gap: 10px; }
footer a { color: var(--soft); }
details { max-width: 100%; }
summary { cursor: pointer; color: var(--soft); }
dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 12px 0 0;
}
dd {
  margin: 0;
  font: 12px/1.5 ui-monospace, Menlo, monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .steps ol { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; gap: 32px; }
  .bar nav a:not(:last-child) { display: none; }
  .shade {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(8, 8, 12, 0.85) 45%, rgba(8, 8, 12, 0.35) 100%);
  }
  .hero { align-items: flex-end; }
  .layer { object-position: 72% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer { transform: none !important; }
  .download { transition: none; }
}
