@font-face {
  font-family: "Encode Sans";
  src: url("assets/fonts/EncodeSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Encode Sans";
  src: url("assets/fonts/EncodeSans-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #0c0c14;
  --ink-2: #12121e;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f4fb;
  --muted: #a3a9c2;
  --cyan: #4fd8ff;
  --magenta: #ff5ecb;
  --amber: #ffcc4d;
  --lime: #7dff9b;
  --display: "Encode Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell: 74rem;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -3rem;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--cyan);
  color: #05121a;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.shell--narrow {
  max-width: 48rem;
}

/* ---------- ambient background ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

.aurora__blob {
  position: absolute;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.aurora__blob--cyan {
  top: -22rem;
  left: -14rem;
  background: radial-gradient(circle, #1d7fd4 0%, transparent 65%);
}

.aurora__blob--magenta {
  top: 24rem;
  right: -20rem;
  background: radial-gradient(circle, #a4269b 0%, transparent 65%);
}

.aurora__blob--amber {
  bottom: -26rem;
  left: 30%;
  background: radial-gradient(circle, #b3711b 0%, transparent 68%);
  opacity: 0.35;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 12, 20, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.site-header.is-stuck {
  background: rgba(10, 10, 17, 0.9);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand__icon {
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, 0.5);
}

.brand__text span {
  color: var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.98rem;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__cta {
  color: #06121a !important;
  background: linear-gradient(135deg, var(--cyan), #7ce7ff);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  opacity: 0;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  scroll-margin-top: 6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.btn small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.72;
}

.btn--primary {
  color: #06121a;
  background: linear-gradient(135deg, #63e0ff, #34c3ff 60%, #4ea8ff);
  box-shadow: 0 14px 34px rgba(70, 190, 255, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(70, 190, 255, 0.36);
}

.btn--ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}

.btn.is-soon {
  opacity: 0.62;
  cursor: default;
}

.btn--lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.1rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__proof strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1.1;
}

/* ---------- hero cover ---------- */

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cover {
  margin: 0;
  width: 100%;
  max-width: 36rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(79, 216, 255, 0.12);
  animation: float 7s ease-in-out infinite;
}

.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.app-badge {
  position: absolute;
  bottom: -1.6rem;
  left: -0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: 18px;
  background: rgba(16, 16, 26, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-badge img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
}

.app-badge figcaption {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.25;
}

.app-badge span {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--muted);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ---------- strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.strip span {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--text);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
}

.section__lede {
  color: var(--muted);
  margin: 1rem 0 0;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.chip span {
  font-size: 0.74rem;
  opacity: 0.65;
}

.chip:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.chip.is-active {
  color: #06121a;
  background: linear-gradient(135deg, var(--cyan), #86e9ff);
  border-color: transparent;
}

.chip.is-active span {
  opacity: 0.75;
}

/* ---------- game grid ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card.is-in {
  transform: none;
  opacity: 1;
}

.game-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.game-card__art {
  position: relative;
  aspect-ratio: 0.84;
  overflow: hidden;
}

.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card__art img {
  transform: scale(1.06);
}

.game-card__body {
  padding: 0.85rem 0.95rem 1.05rem;
}

.game-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Covers already carry the game name, so the tag lives below the art. */
.game-card__tag {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.game-card[data-cat="arcade"] .game-card__tag {
  color: var(--magenta);
}

.game-card[data-cat="brain"] .game-card__tag {
  color: var(--amber);
}

.game-card[data-cat="classic"] .game-card__tag {
  color: var(--lime);
}

.grid-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 0 0;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature {
  padding: 1.6rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  font-size: 1.25rem;
  color: var(--cyan);
  background: rgba(79, 216, 255, 0.12);
  border: 1px solid rgba(79, 216, 255, 0.25);
}

.feature:nth-child(2n) .feature__icon {
  color: var(--magenta);
  background: rgba(255, 94, 203, 0.12);
  border-color: rgba(255, 94, 203, 0.25);
}

.feature:nth-child(3n) .feature__icon {
  color: var(--amber);
  background: rgba(255, 204, 77, 0.12);
  border-color: rgba(255, 204, 77, 0.28);
}

.feature h3 {
  font-size: 1.14rem;
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 0 1.25rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- closer ---------- */

.closer {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  text-align: center;
}

.closer__inner {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(79, 216, 255, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.03);
  padding: clamp(2.25rem, 5vw, 3.5rem) 1.5rem;
}

.closer h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  max-width: 30rem;
  margin: 0 auto;
}

.closer p {
  color: var(--muted);
  margin: 1rem auto 2rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(0, 0, 0, 0.35);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.site-footer__brand img {
  border-radius: 10px;
}

.site-footer__brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
}

.site-footer__brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer__links a {
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--cyan);
}

.site-footer__legal {
  max-width: var(--shell);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  color: rgba(163, 169, 194, 0.7);
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 62rem) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

  .app-badge {
    left: auto;
    right: 0.5rem;
  }

  .strip__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 46rem) {
  body {
    font-size: 16px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem 1.25rem;
    background: rgba(10, 10, 17, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

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

  .nav a {
    padding: 0.7rem 0;
    color: var(--text);
  }

  .nav__cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .hero__proof {
    gap: 1.5rem;
  }

  .app-badge {
    bottom: -1.5rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  }
}

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

  .hero-cover {
    animation: none;
  }

  .reveal,
  .game-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
