:root {
  --ink: #14213d;
  --muted: #5b6175;
  --cream: #fff8eb;
  --paper: #ffffff;
  --mint: #bdf7df;
  --teal: #1db7a6;
  --sky: #52c7ff;
  --raspberry: #ff4f81;
  --sun: #ffd166;
  --lime: #a9e44d;
  --violet: #6457ff;
  --line: rgba(20, 33, 61, 0.13);
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(82, 199, 255, 0.2), transparent 34%),
    linear-gradient(225deg, rgba(255, 79, 129, 0.18), transparent 38%),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.82);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 36px rgba(20, 33, 61, 0.17);
}

.site-header.is-scrolled {
  background: rgba(20, 33, 61, 0.93);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  gap: 6px;
}

.site-nav a,
.filter,
.button,
.store-links a {
  min-height: 44px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.menu-toggle {
  display: none;
  position: relative;
  flex: 0 0 44px;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--raspberry);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.22);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  content: "";
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #fff;
}

.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  left: 13px;
  margin: 0;
}

.menu-toggle::before {
  top: 16px;
}

.menu-toggle::after {
  top: 26px;
}

.section-pad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 58px;
  min-height: calc(100vh - 74px);
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--raspberry);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.8rem, 8vw, 7rem);
  font-weight: 950;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  font-weight: 950;
}

h3 {
  font-size: 1.2rem;
  font-weight: 950;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: #30384c;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 950;
}

.button:hover,
.button:focus-visible,
.store-links a:hover,
.store-links a:focus-visible,
.filter:hover,
.filter:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 15px 34px rgba(20, 33, 61, 0.21);
}

.button.secondary {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
  margin: 34px 0 0;
}

.studio-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.studio-stats dt {
  font-size: 1.7rem;
  font-weight: 950;
}

.studio-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-showcase {
  position: relative;
  min-height: 590px;
}

.showcase-card {
  position: absolute;
  width: min(520px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt)) translateY(0);
  animation: floaty 6s ease-in-out infinite;
}

.showcase-card:nth-child(1) {
  --tilt: -4deg;
  top: 16px;
  right: 40px;
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.86), rgba(255, 255, 255, 0.74));
}

.showcase-card:nth-child(2) {
  --tilt: 5deg;
  top: 215px;
  left: 0;
  width: min(430px, 82%);
  animation-delay: -2s;
}

.showcase-card:nth-child(3) {
  --tilt: -2deg;
  right: 0;
  bottom: 0;
  width: min(460px, 88%);
  animation-delay: -4s;
}

.showcase-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.showcase-card div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 950;
}

.app-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.17);
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(7, 74px);
  justify-content: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  padding: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-strip img {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 24px rgba(20, 33, 61, 0.14);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 820px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 15px;
}

.filter.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 44px rgba(20, 33, 61, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.14);
}

.game-card.is-hidden {
  display: none;
}

.game-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--mint);
}

.game-meta {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 0;
}

.game-meta p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border-radius: 999px;
  background: #eef7ff;
  color: #15376d;
  font-size: 0.88rem;
  font-weight: 950;
}

.store-links a:first-child {
  background: #fff1bc;
  color: #5b3b00;
}

.studio {
  padding-top: 26px;
}

.studio-panel,
.store-band {
  display: grid;
  align-items: center;
  gap: 26px;
  border-radius: var(--radius);
}

.studio-panel {
  grid-template-columns: 0.95fr 1fr;
  padding: 38px;
  background: linear-gradient(135deg, rgba(29, 183, 166, 0.22), rgba(255, 209, 102, 0.28));
}

.studio-panel p:last-child {
  margin: 0;
  color: #33405a;
  font-size: 1.12rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.value {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.value span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
}

.value h3 {
  margin-top: 14px;
}

.value p {
  margin: 10px 0 0;
  color: var(--muted);
}

.stores {
  padding-top: 34px;
}

.store-band {
  grid-template-columns: 108px minmax(0, 1fr) auto;
  padding: 34px;
  background: var(--ink);
  color: #fff;
}

.store-band img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.store-band .eyebrow {
  color: var(--sun);
}

.store-band h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.store-band .button.primary {
  background: #fff;
  color: var(--ink);
}

.store-band .button.secondary {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(var(--tilt)) translateY(0);
  }
  50% {
    transform: rotate(var(--tilt)) translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .studio-panel,
  .store-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
  }

  .hero-showcase {
    min-height: 520px;
  }

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

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

  .section-heading {
    grid-template-columns: 1fr;
  }

  .store-band .hero-actions {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-top: 10px;
    padding-right: 62px;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 40;
  }

  .site-nav {
    position: fixed;
    inset: 74px 10px auto;
    display: grid;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(20, 33, 61, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section-pad {
    width: min(100% - 24px, 1180px);
    padding: 64px 0;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(3.3rem, 19vw, 5.4rem);
  }

  .studio-stats {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 450px;
  }

  .showcase-card:nth-child(1) {
    top: 0;
    right: 0;
  }

  .showcase-card:nth-child(2) {
    top: 170px;
  }

  .showcase-card:nth-child(3) {
    bottom: 10px;
  }

  .release-strip {
    grid-template-columns: repeat(4, 64px);
    gap: 12px;
    width: min(100% - 24px, 1180px);
  }

  .release-strip img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

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

  .studio-panel,
  .store-band {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    width: min(100% - 24px, 1180px);
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .showcase-card {
    width: 94%;
  }

  .showcase-card:nth-child(2),
  .showcase-card:nth-child(3) {
    width: 86%;
  }

  .button,
  .hero-actions {
    width: 100%;
  }
}
