:root {
  --blue: #3f66a6;
  --ink: #1b2347;
  --ink-deep: #0e1330;
  --gold: #ffc84a;
  --gold-shadow: #b98a1f;
  --green: #84944f;
  --green-shadow: #566130;
  --purple: #473d78;
  --purple-shadow: #2b2450;
  --white-shadow: #aab3c9;
  --pixel: "Pixelify Sans", monospace;
}

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

body {
  margin: 0;
  background: var(--blue);
  font-family: "Lexend", system-ui, sans-serif;
  color: #fff;
}

a { color: inherit; }
h1, h2, h3, p, ol, figure { margin: 0; }
img { display: block; max-width: 100%; }

.page { background: var(--blue); overflow: hidden; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; gap: 48px; }

/* Nav */
.nav {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 1px;
  text-decoration: none;
}
.navlinks { display: flex; gap: 28px; align-items: center; font-size: 16px; font-weight: 500; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-sm { min-height: 44px; padding: 0 22px; border-radius: 14px; font-size: 16px; box-shadow: 0 5px 0 var(--gold-shadow); }
.btn-lg { min-height: 56px; padding: 0 30px; border-radius: 16px; font-size: 18px; box-shadow: 0 6px 0 var(--white-shadow); }
.btn-xl { min-height: 60px; padding: 0 34px; border-radius: 18px; font-size: 20px; box-shadow: 0 7px 0 var(--white-shadow); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-lg.btn-gold { box-shadow: 0 6px 0 var(--gold-shadow); }
.btn-xl.btn-gold { box-shadow: 0 7px 0 var(--gold-shadow); }
.btn-xl.btn-purple { box-shadow: 0 7px 0 var(--purple-shadow); }
.btn:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btn-gold:focus-visible, .btn-white:focus-visible { outline-color: var(--ink); }

.actions { display: flex; gap: 16px; flex-wrap: wrap; }
.actions-center { justify-content: center; }

/* Hero */
.hero {
  padding-top: 40px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-shot { flex: 1.25 1 520px; min-width: 0; }
.chip {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
}
h1 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(56px, 6.2vw, 96px);
  line-height: .95;
  text-shadow: 0 8px 0 var(--ink);
}
.tagline { font-size: clamp(24px, 3vw, 36px); font-weight: 500; line-height: 1.2; }
.blurb { font-size: 18px; line-height: 1.6; max-width: 480px; }
.hero .actions { margin-top: 8px; }
.frame { border-radius: 28px; overflow: hidden; box-shadow: 0 14px 0 var(--ink); background: var(--ink); }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* Section headings */
.heading { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.eyebrow { font-family: var(--pixel); font-size: 20px; font-weight: 500; color: #ffe9a8; }
h2 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
}

/* Tiles */
.how { background: var(--ink); padding: 96px 0; }
.tiles { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; }
.tile {
  flex: 1 1 300px;
  min-width: 0;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .15s ease;
}
.tile:hover { transform: translateY(-4px); }
.tile-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 0 var(--gold-shadow); }
.tile-green { background: var(--green); color: var(--ink); box-shadow: 0 8px 0 var(--green-shadow); }
.tile-purple { background: var(--purple); color: #fff; box-shadow: 0 8px 0 var(--purple-shadow); }
.num { font-family: var(--pixel); font-size: 56px; font-weight: 700; line-height: 1; }
.tile h3 { font-family: var(--pixel); font-size: 32px; font-weight: 700; }
.tile p { font-size: 17px; line-height: 1.55; }

/* Screenshot strip */
.strip { padding-top: 96px; display: flex; flex-direction: column; gap: 24px; }
.shots { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
.shot { overflow: hidden; background: var(--ink); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.04); }
.shot-wide { border-radius: 28px; box-shadow: 0 14px 0 var(--ink); }
.shot-wide img { aspect-ratio: 16 / 8; }
.shots .shot { flex: 1 1 280px; min-width: 0; border-radius: 20px; box-shadow: 0 8px 0 var(--ink); }


/* CTA + footer */
.cta { background: var(--ink); }
.cta-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.cta h2 { font-size: clamp(40px, 6vw, 76px); line-height: 1; }
.cta p { font-size: 18px; line-height: 1.6; max-width: 520px; }
.footer { background: var(--ink-deep); }
.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { font-family: var(--pixel); font-weight: 700; font-size: 22px; }
.footer small { font-size: 15px; color: #c9d0e6; }
/* Space before the year only when JS filled it, so the no-JS footer reads "© Bartosz…" */
#year:not(:empty)::before { content: " "; }

@media (max-width: 700px) {
  .navlinks { display: none; }
  .how, .cta-inner { padding-top: 64px; padding-bottom: 64px; }
  .strip { padding-top: 64px; }
  .hero { padding-bottom: 56px; gap: 40px; }
  .tile { padding: 28px; }
  .btn-lg, .btn-xl { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .tile, .shot img { transition: none; }
  .btn:hover, .tile:hover, .shot:hover img { transform: none; }
}

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-note { font-size: 15px; color: #e3e8f5; }
.hero-note a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.strip { padding-bottom: 96px; }

/* Features */
.features { padding-bottom: 96px; }
.featurelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.featurelist li { background: var(--ink); border-radius: 20px; padding: 24px 28px; font-size: 17px; line-height: 1.55; box-shadow: 0 6px 0 var(--ink-deep); }
.featurelist strong { display: block; font-family: var(--pixel); font-size: 24px; color: var(--gold); margin-bottom: 6px; }

/* Press kit */
.press { padding-bottom: 96px; }
.presscols { display: flex; flex-wrap: wrap; gap: 32px; }
.presscol { flex: 1 1 340px; min-width: 0; background: var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 0 var(--ink-deep); }
.presscol h3 { font-family: var(--pixel); font-size: 26px; color: var(--gold); margin: 6px 0 0; }
.presscol h3:first-child { margin-top: 0; }
.presscol p, .presscol li, .facts { font-size: 16px; line-height: 1.6; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.facts dt { color: #c9d0e6; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.assets { margin: 0; padding-left: 20px; }
.footer-links { display: flex; gap: 24px; font-size: 15px; }
@media (max-width: 700px) {
  .strip, .features, .press { padding-bottom: 64px; }
  .presscol { padding: 24px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
}
