/* Quantumlink download page. Colours are the game's own palette (game/os/Ui.cs). */
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg0: #04060a; --bg1: #0a0f17; --bg2: #101826; --bg3: #18233a;
  --line: #1f2d44; --line-bright: #2f4a6b;
  --cyan: #27e0ff; --violet: #8b5cff;
  --text: #c9d6e6; --dim: #8496ad; --warn: #ffb347;
  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg0); color: var(--text); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.65; }

/* Two languages in one page: the one that is not chosen is not there. */
html[data-lang="de"] [lang="en"], html[data-lang="en"] [lang="de"] { display: none; }

a { color: var(--cyan); text-underline-offset: 4px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--warn); outline-offset: 4px; }
code { font-family: var(--mono); font-size: .86em; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; overflow-wrap: anywhere; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .22em; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { font-size: 14px; text-decoration: none; color: var(--text); }
.nav nav a:hover { color: var(--cyan); }
.nav nav a.nav-download { border: 1px solid var(--line-bright); border-radius: 6px; padding: 7px 14px; color: var(--cyan); }
.lang { font: 600 12px var(--mono); letter-spacing: .08em; color: var(--dim); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.lang:hover { color: var(--cyan); border-color: var(--line-bright); }

/* Hero: the key art sits right of centre, the text takes the dark left side. */
.hero { position: relative; margin-top: -78px; padding: 150px 0 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; background: url("img/keyart.webp") center right / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg0) 0%, rgba(4, 6, 10, .88) 38%, rgba(4, 6, 10, .25) 78%, rgba(4, 6, 10, .45) 100%), linear-gradient(0deg, var(--bg0) 0%, rgba(4, 6, 10, 0) 30%); }
.hero-body { position: relative; }
.hero-body > * { max-width: 620px; }

.eyebrow { font: 400 12px var(--mono); letter-spacing: .16em; color: var(--cyan); margin: 0 0 20px; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: #eef4fb; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin-bottom: 22px; }
h3 { font-size: 21px; line-height: 1.3; margin: 10px 0 8px; }
p { margin: 0 0 16px; }
.intro { font-size: 18px; color: var(--text); }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 6px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .03em; text-decoration: none; }
.button b { font: 400 14px var(--mono); }
.button i { font-style: normal; }
.primary { background: var(--cyan); color: #021419; box-shadow: 0 0 34px rgba(39, 224, 255, .28); }
.primary:hover { background: #8cf0ff; color: #021419; }
.secondary { border: 1px solid var(--line-bright); color: var(--text); background: rgba(10, 15, 23, .6); }
.secondary:hover { border-color: var(--cyan); }
.download-note { font-size: 13px; color: var(--dim); line-height: 2; }
.download-note code { font-size: 11px; }

/* Sections */
.section { padding: 84px 0; }
.section-lead { font-size: 18px; max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.cards article { background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 12px; }
.cards article p { color: var(--dim); font-size: 15px; }
.icon { font: 400 22px var(--mono); color: var(--violet); }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg1); }
.shots figcaption { font: 400 12px var(--mono); letter-spacing: .06em; color: var(--dim); margin-top: 10px; }

.install { background: var(--bg1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 30px 0 0; }
.steps li { counter-increment: step; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px 10px; }
.steps li::before { content: "0" counter(step); font: 400 13px var(--mono); letter-spacing: .12em; color: var(--cyan); }
.steps p, .notes p { color: var(--dim); font-size: 15px; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; margin-top: 44px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 0; }
.facts div { border-left: 2px solid var(--violet); padding-left: 16px; }
.facts dt { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-weight: 600; font-size: 26px; color: #eef4fb; }

.footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.footer .small { font-size: 12px; }

@media (max-width: 900px) {
  .cards, .steps, .notes { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 130px; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg0) 0%, rgba(4, 6, 10, .82) 55%, rgba(4, 6, 10, .6) 100%); }
}
@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-download) { display: none; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
