:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-deep: #07090b;
  --ink: #e7eef0;
  --muted: #9aa6ad;
  --accent: #5fffd2;
  --accent-warm: #f5b65b;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(13, 16, 20, 0.85);
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Space Grotesk", sans-serif;
  background: radial-gradient(1200px 800px at 15% -20%, #163034 0%, transparent 60%),
    radial-gradient(900px 600px at 80% 10%, #2b2220 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 6px);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.35;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 28px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

nav a {
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  opacity: 1;
}

.hero {
  padding: 72px 0 80px;
  display: grid;
  gap: 24px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
}

.hero-meta span {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

section {
  margin-top: 72px;
  padding-top: 6px;
}

section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--muted);
  max-width: 700px;
}

.cards {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(6px);
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-warm);
  border: 1px solid rgba(245, 182, 91, 0.4);
}

.project-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px var(--shadow);
  image-rendering: pixelated;
}

.project-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.legal-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.legal-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.legal-card p,
.legal-card address {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

.legal-card strong {
  color: var(--ink);
  font-weight: 600;
}

footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.2s;
}

.reveal.delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
  }

  .logo {
    letter-spacing: 0.25em;
  }

  .hero {
    padding: 56px 0 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

/* Shared links and project pages. */
html { scroll-padding-top: 24px; }
img { max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 12px 18px; background: var(--bg); color: var(--accent); z-index: 3; }
.skip-link:focus { top: 12px; }
.project-card { position: relative; transition: border-color .2s ease; }
.project-card:hover { border-color: rgba(95, 255, 210, .3); }
.project-summary { display: grid; align-content: start; gap: 16px; }
.project-summary::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; position: relative; z-index: 1; }
.project-actions > .text-link { flex: 0 0 auto; white-space: nowrap; }
.store-links { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.store-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 98px; gap: 6px; width: 98px; height: 48px; padding: 0 8px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: #08241c; font-family: "Space Grotesk", sans-serif; font-size: .75rem; font-weight: 600; line-height: 1; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
a.store-button:hover { background: #9dffe4; border-color: #9dffe4; }
.store-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; fill: currentColor; }
.store-button-pending { border-color: rgba(245, 182, 91, .38); background: rgba(245, 182, 91, .075); color: var(--accent-warm); }
.link-arrow { color: var(--accent); font-size: .9em; margin-left: 4px; }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .95rem; text-align: center; transition: background .2s ease, border-color .2s ease; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #08241c; }
.button-primary:hover { background: #9dffe4; border-color: #9dffe4; }
.button-secondary { background: rgba(255, 255, 255, .03); }
.button-secondary:hover { border-color: var(--muted); }
.back-link { display: inline-block; color: var(--muted); margin-top: 20px; font-size: .95rem; }
.back-link:hover { color: var(--accent); }
.game-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 64px; padding: 48px 0 20px; margin-top: 0; }
.game-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.game-icon { width: 56px; height: 56px; border-radius: 14px; }
.eyebrow { color: var(--accent); font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.game-hero h1 { font-family: "Space Grotesk", sans-serif; font-size: clamp(3.4rem, 8vw, 5.8rem); line-height: 1; letter-spacing: -.055em; }
.game-tagline { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.3; margin-top: 18px; }
.game-description { color: var(--muted); max-width: 540px; margin-top: 20px; font-size: 1.05rem; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.game-facts { color: var(--muted); font-size: .85rem; max-width: 500px; }
.hero-preview { width: min(100%, 260px); justify-self: center; border: 1px solid var(--line); border-radius: 28px; padding: 8px; background: #0d1013; box-shadow: 0 30px 70px var(--shadow); transform: rotate(3deg); }
.hero-preview img { display: block; width: 100%; border-radius: 21px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid p { color: var(--muted); font-size: .95rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.screenshot-grid figure { min-width: 0; }
.screenshot-grid a { display: block; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: #0d1013; transition: border-color .2s ease; }
.screenshot-grid a:hover { border-color: var(--accent); }
.screenshot-grid img { width: 100%; display: block; border-radius: 10px; aspect-ratio: 9 / 16; }
.screenshot-grid figcaption { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.languages { margin-top: 24px; color: var(--muted); font-size: .95rem; }
.privacy-content { max-width: 820px; margin-top: 26px; }
.privacy-content h3 { font-family: "Space Grotesk", sans-serif; margin: 26px 0 10px; font-size: 1.1rem; }
.privacy-content p { color: var(--muted); margin-top: 14px; }
.privacy-content .policy-date { margin-top: 0; font-size: .9rem; }
.privacy-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.policy-updates { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 4px; }
.policy-updates .policy-date { margin-top: 12px; font-size: .8rem; }
.game-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.game-footer div { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 900px) {
  .game-hero { gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .game-hero { grid-template-columns: 1fr; padding-top: 36px; gap: 40px; }
  .game-hero h1 { font-size: clamp(3rem, 13vw, 4.2rem); }
  .hero-preview { width: min(72%, 240px); transform: none; }
  .game-actions { flex-direction: column; align-items: stretch; }
  .game-actions .store-links { align-self: flex-start; }
  .game-actions .button { width: 100%; }
  .game-facts { font-size: .8rem; }
  .screenshot-grid { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; padding: 6px 6px 18px; margin-left: -6px; margin-right: -6px; }
  .screenshot-grid figure { flex: 0 0 76%; scroll-snap-align: start; }
  .privacy-content { padding: 20px; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Informational store availability badge: deliberately not a download link. */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(245, 182, 91, 0.38);
  border-radius: 10px;
  background: rgba(245, 182, 91, 0.075);
  color: var(--accent-warm);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.store-soon::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px rgba(245, 182, 91, 0.36);
}
@media (max-width: 600px) {
  .game-actions .store-soon { justify-content: center; width: 100%; }
}

/* Road Pxl prototype: landscape gameplay previews. */
.prototype-badge {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.project-availability,
.availability-note { color: var(--muted); font-size: .9rem; }
.availability-note { max-width: 500px; margin-top: 20px; }
.road-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
.road-preview { width: 100%; padding: 6px; border-radius: 18px; transform: none; }
.road-preview img { border-radius: 12px; }
.screenshot-grid-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screenshot-grid-landscape img { aspect-ratio: 16 / 9; }
@media (max-width: 900px) {
  .road-hero { grid-template-columns: minmax(0, 1fr); }
  .road-preview { max-width: 780px; }
}
