:root {
  --night: #16213f;
  --night-soft: #233259;
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #1d2239;
  --muted: #5b6078;
  --orange: #f59e1b;
  --orange-dark: #d9830a;
  --blue: #2f5fc4;
  --line: #e8dfd0;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--night); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.15rem; }

section { padding: 2.5rem 1.25rem; }
section > h2 { max-width: var(--max); margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* header */
.top {
  background: var(--night);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.25rem;
}
.brand img { width: 160px; height: auto; }
.menu { display: flex; gap: 1.1rem; }
.menu a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { text-decoration: underline; }

/* hero */
.hero { padding: 0; background: var(--night); color: #fff; }
.hero picture img { width: 100%; height: auto; }
.hero-text { padding: 1.5rem 1.25rem 2rem; text-align: center; }
.tagline { font-size: 1.35rem; font-weight: 700; margin: 0 0 .35rem; }
.release { margin: 0 0 1.1rem; color: #ffd27a; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .95rem; }
.stores { display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.store, .button {
  display: inline-block; min-width: 240px; text-align: center;
  padding: .85rem 1.4rem; border-radius: 999px;
  background: var(--orange); color: var(--night); font-weight: 800; text-decoration: none;
  font-size: 1.05rem; box-shadow: 0 2px 0 var(--orange-dark);
}
.store:hover, .button:hover { background: #ffb13b; }
.button.secondary { background: var(--paper); color: var(--night); box-shadow: 0 0 0 2px var(--line) inset; }
.button.secondary:hover { background: #fff3dd; }
.switch-note { margin: 1rem 0 0; color: #cfd6ea; font-size: .95rem; }

/* about */
.about { padding-top: 2.25rem; padding-bottom: 1rem; }
.lead { max-width: 760px; margin: 0 auto; font-size: 1.2rem; text-align: center; color: var(--ink); }

/* trailer */
.trailer video { width: 100%; max-width: var(--max); margin: 0 auto; border-radius: var(--radius); background: #000; }

/* features */
.feature-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.feature-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.feature-grid p { margin: 0; color: var(--muted); }

/* screenshots */
.shots { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; gap: .8rem; grid-template-columns: 1fr; }
.shots a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* press */
.press { background: var(--paper); border-top: 1px solid var(--line); }
.press-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 1fr; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.facts dt { font-weight: 700; color: var(--night); }
.facts dd { margin: 0; color: var(--muted); }
.downloads p { margin: 0 0 .9rem; }
.downloads .button { min-width: 0; width: 100%; }
.small { font-size: .9rem; color: var(--muted); }

/* footer */
.bottom {
  background: var(--night); color: #cfd6ea;
  display: flex; flex-direction: column; gap: .6rem; align-items: center;
  padding: 1.5rem 1.25rem 2rem; font-size: .95rem;
}
.bottom p { margin: 0; }
.bottom nav { display: flex; gap: 1.2rem; }
.bottom a { color: #fff; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { margin: 0 0 1rem; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; }

@media (min-width: 641px) {
  .stores { flex-direction: row; justify-content: center; }
  .shots { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .wide { grid-column: 1 / -1; }
  .downloads .button { width: auto; min-width: 260px; }
  .bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  section { padding: 3.5rem 2rem; }
  .brand img { width: 200px; }
  .hero { position: relative; }
  .hero picture img { max-height: 82vh; object-fit: cover; }
  .hero-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 4rem 2rem 2.5rem;
    background: linear-gradient(to top, rgba(22, 33, 63, .92), rgba(22, 33, 63, 0));
  }
  .tagline { font-size: 1.7rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
  .shots { grid-template-columns: 1fr 1fr 1fr; }
  .press-grid { grid-template-columns: 3fr 2fr; }
}
