@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("fonts/PixelifySans-Regular.woff2?v=14") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("fonts/PixelifySans-SemiBold.woff2?v=14") format("woff2"); font-weight: 500 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font: 500 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); padding: 1px 6px; border-radius: 4px; color: var(--text); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r-md); z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.section { padding-block: var(--s24) 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--s8); }
h3 { font-size: var(--fs-subtitle); margin-bottom: var(--s2); }
.lead { color: var(--text-muted); font-size: 18px; max-width: 60ch; }

/* Nav */
/* Nearly opaque instead of a backdrop blur: re-blurring the page under a
   sticky header on every scroll frame makes phones drop frames. */
.nav { position: sticky; top: 0; z-index: 5; background: linear-gradient(180deg, rgba(114, 184, 255, 0.07) 0%, rgba(114, 184, 255, 0) 100%), rgba(11, 12, 14, 0.96); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: var(--s6); height: 72px; }
.brand span { font-size: 18px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav nav a { color: var(--text-muted); font-size: var(--fs-body); transition: color var(--dur-fast) var(--ease-out); }
@media (hover: hover) { .nav nav a:hover { color: var(--text); text-decoration: none; } }
.menu { display: none; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); padding: 0; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 1px; background: var(--text); transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out); }
.menu span:first-child { top: 11px; }
.menu span:last-child { top: 19px; }
.menu[aria-expanded="true"] span:first-child { top: 15px; transform: rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { top: 15px; transform: rotate(-45deg); }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s5); border-radius: var(--r-md);
  font: 600 var(--fs-body) var(--font); color: var(--text);
  background: var(--surface-3); border: 1px solid var(--border);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { text-decoration: none; }
@media (hover: hover) { .btn:hover { background: #262930; } }
.btn:active { transform: translateY(1px); }
.btn-small { height: 34px; padding: 0 var(--s4); font-size: var(--fs-small); }
.btn-large { height: 52px; padding: 0 var(--s8); font-size: var(--fs-subtitle); border-radius: var(--r-lg); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 30px rgba(114, 184, 255, 0.18); }
@media (hover: hover) { .btn-primary:hover { background: #93c9ff; box-shadow: 0 10px 40px rgba(114, 184, 255, 0.3); transform: translateY(-1px); } }
.btn-ghost { background: transparent; }
@media (hover: hover) { .btn-ghost:hover { background: var(--surface-2); } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: var(--s6); }
.glow { display: none; }
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
.hero .lead { margin: var(--s5) auto 0; }
.cta { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; margin-top: var(--s6); }
.hint { color: var(--text-faint); font-size: var(--fs-small); margin-top: var(--s3); }
.shot { margin: var(--s10) auto 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); max-width: 1040px; }
.shot img, .gallery img { width: 100%; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); } }
.card p { color: var(--text-muted); margin: 0; font-size: 15px; }
.ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); margin-bottom: var(--s4); font-size: 18px; }

/* Performance */
.perf .lead { margin-bottom: var(--s8); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s4); }
.stat { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); }
.num { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.label { color: var(--text-muted); font-size: var(--fs-body); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s5); }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-lg); border: 1px solid var(--border-strong); transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.015); } }
figcaption { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--s2); }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: var(--s4) 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-faint); font-weight: 400; font-size: 22px; transition: transform var(--dur-base) var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-muted); margin: var(--s3) 0 0; }

/* Download */
.download { padding-bottom: var(--s24); }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); }
.dl { display: flex; flex-direction: column; gap: 2px; padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--surface-1); border: 1px solid var(--border); color: var(--text); transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
@media (hover: hover) { .dl:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); } }
.dl span { color: var(--text-muted); font-size: var(--fs-small); }
.dl.recommended { border-color: rgba(114, 184, 255, 0.5); background: linear-gradient(180deg, var(--accent-soft), var(--surface-1)); }
.note { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--s5); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: var(--s10) 0; }
.footer-inner { display: grid; gap: var(--s3); }
.footer p { margin: 0; color: var(--text-faint); font-size: var(--fs-caption); }
.footer a { color: var(--text-muted); }

/* Scroll reveal (JS adds .in; without JS everything is visible). */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .gallery.reveal { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Phones and small tablets */
@media (max-width: 720px) {
  .nav-inner { height: 60px; gap: var(--s3); }
  .nav .btn-small { margin-left: auto; }
  .menu { display: block; }
  .nav nav {
    position: absolute; top: 60px; left: 0; right: 0;
    display: flex; flex-direction: column; gap: 0;
    padding: var(--s2) 16px var(--s4);
    background: rgba(11, 12, 14, 0.97); border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .nav nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav nav a:last-child { border-bottom: 0; }

  br.wide { display: none; }
  .section { padding-top: var(--s16); }
  .hero { padding-top: var(--s5); }
  .hero .lead { font-size: 16px; }
  .lead { font-size: 16px; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .cta .btn { width: 100%; }
  .shot { margin-top: var(--s8); border-radius: var(--r-lg); }
  .card { padding: var(--s5); }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .stat { padding: var(--s4); }
  .num { font-size: 28px; }
  .label { font-size: var(--fs-small); }
  /* Swipeable screenshot carousel */
  .gallery { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s3); padding-bottom: var(--s2); margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 85%; scroll-snap-align: center; will-change: opacity; }
  .downloads { grid-template-columns: 1fr; }
  .download { padding-bottom: var(--s16); }
  h2 { margin-bottom: var(--s6); }
}

/* ---- Pixel style (matches the launcher) ---- */
body { background: var(--bg) url("../grain.png") repeat; image-rendering: auto; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
h1, h2, h3, .btn, .nav nav a, .brand span, .num, summary, .dl strong, figcaption, .hint, .footer-tag {
  font-family: var(--pixel);
  letter-spacing: 0;
}
.hero h1 { font-weight: 600; letter-spacing: 0; line-height: 1.05; }
h2 { font-weight: 600; }

/* Block buttons: light top edge, darker lip, hard pixel shadow. */
.btn {
  border-radius: var(--r-md);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 3px 0 rgba(0, 0, 0, 0.45);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out);
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 4px 0 rgba(0, 0, 0, 0.45); } }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.22), 0 1px 0 rgba(0, 0, 0, 0.45); }
.btn-primary { border: 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 3px 0 #2b5f9e; }
@media (hover: hover) { .btn-primary:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 4px 0 #2b5f9e; } }
.btn-primary:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 1px 0 #2b5f9e; }
.btn-ghost { box-shadow: none; }
@media (hover: hover) { .btn-ghost:hover { box-shadow: none; } }
.btn-ghost:active { box-shadow: none; }

/* Cards and download tiles: pixel highlight and hard shadow on hover. */
.card, .stat, .dl { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
@media (hover: hover) { .card:hover, .dl:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 0 rgba(0, 0, 0, 0.5); } }
.ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: none; margin-bottom: var(--s4); display: block; }
.shot, .gallery img { border-radius: var(--r-xl); }
code { border-radius: var(--r-sm); }

/* Hotbar of block slots under the hero buttons. */
.hotbar { display: inline-flex; gap: 4px; margin-top: var(--s8); padding: 4px; background: #0d0e11; border: 2px solid #2a2d33; border-radius: var(--r-sm); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.04), 0 3px 0 rgba(0, 0, 0, 0.5); }
.hotbar-end { text-align: center; padding-bottom: var(--s10); }
.hotbar-end .hotbar { margin-top: 0; }
.slot { width: 40px; height: 40px; display: grid; place-items: center; background: #1a1c21; border: 2px solid #23262c; border-radius: 2px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.slot img { width: 26px; height: 26px; }
.slot.on { border-color: var(--accent); transform: translateY(-2px); }

/* Press feedback without the mobile tap highlight. Hover effects only apply
   with a mouse (above), so nothing stays lit after a tap. */
@media (hover: none) {
  .btn:active, .dl:active, .card:active, .menu:active { filter: brightness(0.92); }
  .btn-ghost:active { background: var(--surface-2); }
  /* Holding a button or picture shouldn't open the browser's link menu. */
  a, button, img, .slot { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: clamp(30px, 9vw, 40px); line-height: 1.1; text-wrap: balance; }
  .hero .lead { font-size: 15px; line-height: 1.55; margin-top: var(--s4); }
  .hotbar { gap: 3px; padding: 3px; }
  .slot { width: calc((100vw - 32px - 6px - 24px - 8px) / 9); height: auto; aspect-ratio: 1; max-width: 40px; }
  .slot img { width: 62%; height: 62%; }
  /* Compact two-column feature grid. */
  .grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .grid .card:last-child:nth-child(odd) { grid-column: span 2; }
  .card { padding: var(--s4); }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13px; line-height: 1.5; }
  .ico { width: 32px; height: 32px; margin-bottom: var(--s3); }
  h2 { font-size: 26px; }
}


.btn.is-disabled, .btn.is-disabled:hover, .btn.is-disabled:active { background: var(--surface-3); color: var(--text-muted); border-color: var(--surface-3); box-shadow: none; transform: none; cursor: default; }
.btn.is-disabled svg { display: none; }
.footer .footer-tag { color: var(--accent); }
