:root {
  --ink: #15141d;
  --muted: #696575;
  --line: #e8e3f0;
  --paper: #fffdf9;
  --cream: #fff5db;
  --mint: #dff8ef;
  --rose: #ffe7eb;
  --violet: #7257ff;
  --teal: #00a989;
  --sun: #ffbd31;
  --coral: #ff5e5b;
  --shadow: 0 24px 60px rgba(39, 28, 86, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(232, 227, 240, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.brand-logo {
  flex: 0 0 auto;
  width: 154px;
  height: auto;
}

.site-header .brand-logo {
  filter: invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(36, 29, 58, 0.06);
}

.site-nav a {
  padding: 10px 15px;
  color: #35303d;
  font-size: 14px;
  font-weight: 750;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: white;
  background: var(--ink);
  outline: none;
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100svh - 78px));
  overflow: hidden;
  background: #161228;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 12, 38, 0.8) 0%, rgba(18, 12, 38, 0.55) 44%, rgba(18, 12, 38, 0.05) 100%),
    linear-gradient(0deg, rgba(18, 12, 38, 0.36), transparent 30%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: min(670px, calc(100% - 36px));
  margin: auto auto auto clamp(18px, 7vw, 96px);
  padding: 72px 0 116px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe16d;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: clamp(54px, 9vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

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

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 18px 10px 12px;
  color: white;
  background: #111018;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  background: #22202e;
  outline: none;
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 650;
}

.store-button span:last-child {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
}

.store-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111018;
  font-size: 20px;
  font-weight: 950;
  border-radius: 12px;
  background: #272431;
}

.store-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.store-icon.play {
  color: white;
  background: linear-gradient(135deg, #00c6a5, #3284ff 48%, #ffcc3d);
}

.store-icon.amazon {
  color: #111018;
  background: #ffbd31;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -62px auto 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.quick-stats div {
  padding: 28px clamp(18px, 4vw, 38px);
  border-right: 1px solid var(--line);
}

.quick-stats div:last-child {
  border-right: 0;
}

.quick-stats strong {
  display: block;
  color: var(--violet);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 720;
}

.section {
  width: min(1200px, calc(100% - 36px));
  margin: 100px auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(260px, 0.44fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.company-band h2,
.download-strip h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:last-child,
.company-band p {
  color: var(--muted);
  font-size: 17px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter {
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 850;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter:hover,
.filter:focus-visible,
.filter.active {
  color: white;
  background: var(--ink);
  outline: none;
}

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

.game-card {
  display: grid;
  overflow: hidden;
  min-height: 420px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(37, 31, 64, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.game-card img {
  width: 100%;
  aspect-ratio: 1.16 / 1;
  object-fit: cover;
  background: var(--mint);
}

.featured-card {
  grid-column: span 2;
}

.featured-card img {
  aspect-ratio: 2.43 / 1;
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.tag {
  align-self: flex-start;
  padding: 5px 9px;
  color: #4c2a00;
  font-size: 12px;
  font-weight: 900;
  background: var(--cream);
  border: 1px solid #ffe1a3;
  border-radius: 999px;
}

.game-body h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.04;
}

.game-body p {
  color: var(--muted);
  margin-bottom: 6px;
}

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

.game-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: white;
  font-size: 13px;
  font-weight: 880;
  background: var(--ink);
  border-radius: 12px;
}

.game-links a:nth-child(2) {
  background: var(--teal);
}

.game-links a:hover,
.game-links a:focus-visible {
  background: var(--violet);
  outline: none;
}

.company-band,
.download-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(300px, 0.55fr);
  gap: 36px;
  align-items: center;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 6vw, 80px);
}

.company-band {
  background: linear-gradient(135deg, var(--mint), #eef9ff 52%, var(--rose));
}

.company-band > *,
.download-strip > * {
  max-width: 620px;
}

.download-strip {
  width: min(1200px, calc(100% - 36px));
  margin: 100px auto;
  color: white;
  background:
    linear-gradient(135deg, rgba(21, 20, 29, 0.94), rgba(54, 43, 112, 0.92)),
    url("https://playsimple.co/word-trip/Art/Desktop/Screen2/carousel.jpg") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-strip .eyebrow {
  color: var(--sun);
}

.download-strip h2 {
  color: white;
}

.compact {
  justify-content: flex-start;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 72px);
  color: white;
  background: #17131f;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 760;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: white;
  outline: none;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

@media (max-width: 980px) {
  .section-heading,
  .company-band,
  .download-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 18px;
  }

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

  .site-nav a {
    padding: 13px 14px;
  }

  .hero {
    min-height: 710px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(18, 12, 38, 0.86) 0%, rgba(18, 12, 38, 0.55) 58%, rgba(18, 12, 38, 0.2) 100%);
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: auto 20px 0;
    padding-bottom: 96px;
  }

  .hero-copy {
    max-width: 31ch;
  }

  h1 {
    max-width: 9ch;
  }

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

  .store-button {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr;
    margin-top: -42px;
  }

  .quick-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    margin: 72px auto;
  }

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

  .featured-card {
    grid-column: span 1;
  }

  .featured-card img {
    aspect-ratio: 1.16 / 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
