/* Same look as Stranded Worlds: a dark theme, hard-edged panels with a block shadow,
   Pixelify Sans headings, buttons that press down, a pixel-art scene on top. */

@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 600; font-display: swap; src: url("fonts/pixelify-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("fonts/pixelify-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #101316;
  --bar-bg: #0d1012;
  --paper: #1b2025;
  --edge: #0b0d0f;
  --line: #2e3a33;
  --line-strong: #3a4a3f;
  --bar: #2d4a2a;
  --green: #7fb069;
  --green-ink: #10200c;
  --accent: #e6aa68;
  --text: #e8ecef;
  --muted: #a9b4bc;
  --pixel: "Pixelify Sans", "Press Start 2P", ui-monospace, monospace;
}

* { box-sizing: border-box; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img, svg, canvas { display: block; }
img { max-width: 100%; image-rendering: pixelated; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; margin: 0; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* ---------- app bar ---------- */
.appbar {
  background: var(--bar-bg);
  border-bottom: 3px solid var(--bar);
}
.appbar .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 16px; text-decoration: none; }
.brand .emblem { width: 32px; height: 32px; }
.brand span { font-family: var(--pixel); font-weight: 700; font-size: 1.15rem; color: #ffd45e; text-shadow: 2px 2px 0 #8a4a1a; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--pixel);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .4px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 3px;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.08); outline: none; }

/* ---------- hero scene ---------- */
.scene { position: relative; overflow: hidden; background: #080b1e; }
.scene canvas {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: 50% 62%;
  image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.scene .title {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 26px; gap: 12px;
  pointer-events: none;
}
.lockup { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lockup .emblem { width: 96px; height: 96px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.lockup .wordmark { width: 224px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
.tagline {
  font-family: var(--pixel);
  letter-spacing: 2px;
  font-size: 1.15rem;
  color: #eaffd8;
  text-shadow: 0 2px 0 #0b1a10, 0 0 6px #0b1a10, 0 0 3px #0b1a10;
  margin: 0;
  text-align: center;
}

/* ---------- panels ---------- */
.panel {
  background: rgba(20,24,28,.96);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--edge);
}

.download { max-width: 560px; margin: -84px auto 0; position: relative; padding: 26px 24px 24px; text-align: center; }
.download h2 { font-size: 1.5rem; margin-bottom: 6px; }
.download p { margin: 0 0 18px; color: var(--muted); }

.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .4px;
  text-decoration: none;
  color: var(--green-ink);
  background: var(--green);
  padding: 12px 28px;
  border: 2px solid rgba(0,0,0,.35);
  border-radius: 3px;
  box-shadow: 0 3px 0 rgba(0,0,0,.5);
  cursor: pointer;
  transition: transform .05s, box-shadow .05s;
}
.btn:hover { background: #8cbe76; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn[aria-disabled="true"] { background: #3a4249; color: #c4cdd3; cursor: default; }
.btn[aria-disabled="true"]:hover { background: #3a4249; }
.btn[aria-disabled="true"]:active { transform: none; box-shadow: 0 3px 0 rgba(0,0,0,.5); }

.meta { margin-top: 14px; min-height: 28px; }
.chip {
  display: inline-block;
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 14px;
  border-radius: 3px;
  background: rgba(127,176,105,.16);
  color: #cfe8c4;
  border: 1px solid rgba(127,176,105,.4);
}
.chip:empty { display: none; }

/* ---------- sections ---------- */
section { padding: 20px 0 8px; }
.section-title {
  font-size: 1.25rem;
  margin: 44px 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.section-title::after { content: ""; flex: 1; height: 4px; background: var(--bar); box-shadow: 0 4px 0 var(--edge); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.shot { margin: 0; padding: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 4px; box-shadow: 0 4px 0 var(--edge); }
.shot img { width: 100%; height: auto; border: 2px solid var(--edge); }
.shot figcaption { font-family: var(--pixel); font-weight: 600; font-size: .95rem; text-align: center; padding-top: 10px; color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.card {
  background: var(--paper) linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--edge);
  padding: 20px;
  display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; align-items: start;
}
.card .ico { grid-row: span 2; width: 48px; height: 48px; margin-top: 2px; }
.card h3 { font-size: 1.05rem; margin: 2px 0 0; color: var(--text); }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; max-width: 760px; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  padding: 16px 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--edge);
}
.steps li::before {
  content: counter(step);
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: var(--pixel); font-weight: 700; font-size: 1.4rem;
  color: var(--green-ink); background: var(--green);
  border: 2px solid rgba(0,0,0,.35); border-radius: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.5);
}
.steps strong { display: block; font-family: var(--pixel); font-weight: 600; font-size: 1.05rem; }
.steps span { color: var(--muted); }
.note { color: var(--muted); max-width: 760px; margin: 18px 0 0; }

footer { margin-top: 64px; background: var(--bar-bg); border-top: 3px solid var(--bar); padding: 26px 0 34px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer p { margin: 0; }
footer .pixel { font-family: var(--pixel); font-weight: 600; color: var(--text); font-size: 1rem; }

@media (max-width: 760px) {
  .scene canvas { height: 380px; }
  .lockup .emblem { width: 64px; height: 64px; }
  .lockup .wordmark { width: 168px; }
  .tagline { font-size: .95rem; letter-spacing: 1px; padding: 0 12px; }
  .download { margin-top: -52px; }
  .shots { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .nav a { padding: 8px 10px; }
  .brand { margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
