@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/VT323-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #010b1d;
  --ink-2: #071226;
  --ink-3: #0b1830;
  --panel: #0d1a2e;
  --panel-2: #111f36;
  --line: #26344b;
  --line-strong: #3a4d6a;
  --gold: #e8c15c;
  --gold-deep: #b98a2e;
  --gold-soft: #f5d98a;
  --paper: #f5efdf;
  --muted: #a9b6c9;
  --blue: #b0cbeb;
  --pixel: "Press Start 2P", monospace;
  --body: "VT323", monospace;
  --read: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
  --step: clamp(20px, 3vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --z-header: 50;
  --z-nav: 60;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 67, 242, 0.14), transparent 38%),
    radial-gradient(circle at 82% 16%, rgba(232, 193, 92, 0.08), transparent 32%),
    var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 239, 223, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.5;
  padding: 12px 16px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--line);
  background: rgba(1, 11, 29, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold-deep);
  image-rendering: pixelated;
}

.brand:hover {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--body);
  font-size: 19px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav .lang {
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 8px 10px;
}

.site-nav .lang:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-family: var(--pixel);
  font-size: 9px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 22px;
  font-family: var(--pixel);
  font-size: clamp(1.9rem, 5vw, 4.05rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 .accent {
  display: block;
  color: var(--gold);
}

.lede {
  max-width: 54ch;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid var(--gold);
  background: var(--gold);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  padding: 14px 20px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  background: var(--gold-soft);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.46);
  color: var(--ink);
  transform: translate(-2px, -2px);
}

.btn:active {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.46);
  transform: translate(2px, 2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
}

.btn-secondary:hover {
  background: rgba(232, 193, 92, 0.08);
  color: var(--gold-soft);
}

.soon {
  color: var(--muted);
  font-size: 19px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.2;
  padding: 5px 10px;
}

.hero-art {
  position: relative;
  margin: 0;
  border: 4px solid var(--gold);
  background: var(--panel);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.5);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  background: var(--gold);
}

.hero-art::before {
  top: -11px;
  left: -11px;
}

.hero-art::after {
  right: -11px;
  bottom: -11px;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.hero-art figcaption {
  border-top: 2px solid var(--gold-deep);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.25;
  padding: 12px 16px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-strip > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.hero-strip > div:first-child {
  border-left: 0;
}

.hero-strip strong {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-strip span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.2;
}

.section {
  padding: var(--section) 0;
}

.section[id] {
  scroll-margin-top: 96px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(1.35rem, 3.1vw, 2.4rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  text-wrap: pretty;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.how-intro {
  position: sticky;
  top: 112px;
}

.how-intro h2 {
  margin: 0 0 18px;
  font-family: var(--pixel);
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.how-intro p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 18px;
  line-height: 1.4;
}

.step h3 {
  margin: 0 0 6px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.55rem;
  font-weight: 400;
}

.step p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.world {
  position: relative;
  margin: 0;
  border: 3px solid var(--gold-deep);
  background: var(--panel);
  overflow: hidden;
}

.world img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.world:hover img {
  transform: scale(1.025);
}

.world-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 16px;
  background: linear-gradient(transparent, rgba(1, 11, 29, 0.96) 62%);
}

.world-caption h3 {
  margin: 0 0 4px;
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.world-caption p {
  margin: 0;
  color: var(--paper);
  font-size: 17px;
  line-height: 1.25;
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.feature-art {
  margin: 0;
  border: 4px solid var(--gold);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.45);
  background: var(--panel);
}

.feature-art img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.feature-art figcaption {
  border-top: 2px solid var(--gold-deep);
  color: var(--muted);
  font-size: 17px;
  padding: 12px 16px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 18px 0 18px 20px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 400;
}

.feature-list span {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}

.family-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
}

.family-art {
  margin: 0;
  border: 4px solid var(--gold);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.42);
  background: var(--panel);
}

.family-art img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.family-copy h2 {
  margin: 0 0 14px;
  font-family: var(--pixel);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}

.family-copy p {
  max-width: 56ch;
  margin: 0;
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1.45;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.faq-intro h2 {
  margin: 0 0 16px;
  font-family: var(--pixel);
  font-size: clamp(1.45rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.faq-intro p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--body);
  font-size: 1.3rem;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 13px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--gold);
  background:
    radial-gradient(circle at 82% 18%, rgba(232, 193, 92, 0.14), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(36, 67, 242, 0.12), transparent 36%),
    var(--ink-2);
  padding: clamp(32px, 6vw, 72px);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.4);
}

.cta-panel::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(232, 193, 92, 0.16);
  transform: rotate(45deg);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 20ch;
  margin: 0 0 16px;
  font-family: var(--pixel);
  font-size: clamp(1.5rem, 3.8vw, 2.9rem);
  font-weight: 400;
  line-height: 1.22;
  text-wrap: balance;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1.45;
}

.store-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.store-chip {
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.2;
  padding: 10px 14px;
}

.store-chip strong {
  color: var(--gold);
  font-weight: 400;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cta-actions .text-link {
  color: var(--gold);
  font-size: 1.15rem;
}

.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: rgba(1, 9, 22, 0.9);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-legal {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.footer-legal strong {
  color: var(--paper);
  font-weight: 400;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .how-grid,
  .features-grid,
  .family-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-art {
    max-width: 520px;
  }

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip > div:nth-child(3) {
    border-left: 0;
  }

  .hero-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .how-intro {
    position: static;
  }

  .worlds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-art {
    max-width: 420px;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line-strong);
    background: var(--ink-2);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
    font-size: 20px;
  }

  .site-nav .lang {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip > div {
    border-left: 0;
  }

  .hero-strip > div + div {
    border-top: 1px solid var(--line);
  }

  .worlds-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold-deep) transparent;
  }

  .world {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list li {
    padding-left: 18px;
  }

  .step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .step-num {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .family-copy h2 {
    font-size: clamp(1.15rem, 5.4vw, 1.6rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .site-header,
  .site-footer,
  .skip-link,
  .cta-panel,
  .hero-actions,
  .world-caption {
    display: none !important;
  }

  .hero,
  .section {
    padding: 0;
  }

  a {
    color: #111;
    text-decoration: underline;
  }
}
