:root {
  --bg: #070b14;
  --bg-raised: #0f1626;
  --bg-card: #121b2e;
  --border: #24324d;
  --text: #e6ebf5;
  --text-muted: #9aa7bf;
  --accent: #ff9f43;
  --accent-strong: #ffb86b;
  --accent-cool: #5ec8ff;
  --radius: 10px;
  --max-width: 1100px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Orbitron", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* A field of stars behind everything */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 35%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 85%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 15%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 90%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 60%, #fff6 50%, transparent 51%),
    radial-gradient(ellipse at 80% 0%, #1b2d5a66, transparent 60%),
    radial-gradient(ellipse at 0% 100%, #4a1f3a44, transparent 55%),
    var(--bg);
  background-size: 300px 300px, 400px 400px, 500px 500px, 350px 350px, 450px 450px, 380px 380px, 420px 420px, 100% 100%, 100% 100%, 100% 100%;
}

a {
  color: var(--accent-cool);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.4em;
}

/* Navigation */

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 16px;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0b1324cc, #070b1400);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 10vw, 110px) 16px clamp(48px, 8vw, 90px);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.3em;
}

.hero h1 {
  margin: 0.15em 0 0.3em;
  font-size: clamp(2.3rem, 8vw, 4.6rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-strong), #ffd9a8 45%, var(--accent-cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.pitch {
  max-width: 46rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text);
  margin: 0 0 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 1.6em;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1206;
}

.button.primary:hover {
  background: var(--accent-strong);
}

/* Sections */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 16px 0;
}

.lead {
  color: var(--text-muted);
  margin: 0 0 1.8em;
}

/* Feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card h3 {
  margin: 0 0 0.5em;
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Screenshots */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot a {
  display: block;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s;
}

.shot a:hover img {
  transform: scale(1.03);
}

.shot figcaption {
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/*
 * A click-to-enlarge lightbox, using :target so it works without scripts,
 * with arrows to step through the screenshots.
 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.lightbox:target {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: #000e;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 90px);
  border-radius: 6px;
  box-shadow: 0 10px 40px #000a;
}

.lightbox-figure figcaption {
  margin-top: 10px;
  color: var(--text);
  text-align: center;
}

.lightbox-count {
  margin-left: 8px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.lightbox-arrow,
.lightbox-close {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #0b1020cc;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.lightbox-arrow:hover,
.lightbox-close:hover,
.lightbox-arrow:focus-visible,
.lightbox-close:focus-visible {
  background: #1a2340;
  border-color: var(--accent);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 26px;
}

/* On narrow screens, the arrows sit over the bottom corners of the image */
@media (max-width: 640px) {
  .lightbox {
    padding: 56px 8px 16px;
  }

  .lightbox-arrow {
    position: absolute;
    bottom: 16px;
    z-index: 1;
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }
}

/* Downloads */

.release-version {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.release-version strong {
  color: var(--accent-strong);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.download:hover {
  background: var(--bg-raised);
  transform: translateY(-1px);
}

.download-platform {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.download-platform::before {
  content: "\2193  ";
}

.download-detail {
  color: var(--text-muted);
}

.download-size {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.source-link {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 24px;
}

.install-steps {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.install-steps h3 {
  margin: 0 0 0.6em;
  font-size: 1.05rem;
  color: var(--accent-strong);
}

.install-steps p,
.install-steps li {
  color: var(--text-muted);
}

.install-steps p {
  margin: 0 0 0.6em;
}

.install-steps ol,
.install-steps ul {
  margin: 0;
  padding-left: 1.3em;
}

.install-steps li + li {
  margin-top: 0.5em;
}

.install-steps strong {
  color: var(--text);
}

.install-steps code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.requirements {
  margin: 20px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.requirements strong {
  color: var(--text);
}

.requirement-highlight {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

/* Changelog */

.changelog {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px clamp(16px, 4vw, 32px) 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.changelog h1 {
  display: none; /* The section already has a heading */
}

.changelog h2 {
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin: 1.4em 0 0.4em;
}

.changelog h3 {
  font-size: 1rem;
  color: var(--accent-cool);
  margin: 1.3em 0 0.3em;
}

.changelog ul {
  margin: 0.3em 0;
  padding-left: 1.3em;
}

.changelog li {
  margin: 0.25em 0;
}

.changelog code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Donations */

.support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wallet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  min-width: 0;
}

.wallet h3 {
  margin: 0 0 0.5em;
  font-size: 1rem;
}

.wallet .symbol {
  color: var(--text-muted);
  font-weight: 400;
}

.address {
  display: flex;
  gap: 10px;
  align-items: center;
}

.address code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  user-select: all;
  color: var(--text);
}

.copy {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--accent);
}

.subheading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.8em 0 0.8em;
}

/* Footer */

.footer {
  max-width: var(--max-width);
  margin: clamp(56px, 9vw, 96px) auto 0;
  padding: 28px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0.4em 0;
}

.footer a {
  color: var(--accent-cool);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

/* The emoji at the start of each feature card's heading */
.feature-emoji {
  margin-right: 0.15em;
}

.hero-note a {
  color: var(--accent-cool);
  text-decoration: none;
}

.hero-note a:hover,
.hero-note a:focus-visible {
  text-decoration: underline;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.review {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.review blockquote {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.review blockquote p {
  margin: 0 0 0.6em;
}

.review blockquote p:first-child::before {
  content: "\201C";
  color: var(--accent);
  font-size: 1.6em;
  line-height: 0;
  margin-right: 0.08em;
  vertical-align: -0.3em;
}

.review blockquote p:last-child {
  margin-bottom: 0;
}

.review blockquote p:last-child::after {
  content: "\201D";
  color: var(--accent);
  font-size: 1.6em;
  line-height: 0;
  margin-left: 0.08em;
  vertical-align: -0.3em;
}

.review figcaption a {
  color: var(--accent-cool);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.review figcaption a:hover,
.review figcaption a:focus-visible {
  text-decoration: underline;
}

/* The video, played in an overlay */
.video-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-decoration: none;
}

.video-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
}

.video-poster:hover img,
.video-poster:focus-visible img {
  transform: scale(1.02);
  filter: brightness(0.85);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 30px #000a;
  transition: transform 0.2s, background 0.2s;
}

/* The triangle */
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #0b1020;
}

.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
  transform: scale(1.08);
  background: var(--accent-strong);
}

.video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 20px 16px;
  background: linear-gradient(transparent, #000c);
  color: var(--text);
  font-weight: 600;
}

.video-overlay {
  width: min(96vw, 1400px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  overflow: visible;
}

.video-overlay::backdrop {
  background: #000e;
}

.video-overlay video {
  display: block;
  width: 100%;
  max-height: 86vh;
  border-radius: var(--radius);
  background: #000;
}

.video-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #0b1020cc;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.video-close:hover,
.video-close:focus-visible {
  border-color: var(--accent);
  background: #1a2340;
}

/* The analytics cookie banner */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: 0 10px 40px #000a;
}

.consent[hidden] {
  display: none;
}

.consent p {
  margin: 0 0 12px;
}

.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-buttons .button {
  cursor: pointer;
  font: inherit;
}
