/* KeepItSimple Games — brand tokens from KeepItSimple_Brand_Package + UI_STYLE */
:root {
  --charcoal: #111827;
  --charcoal-soft: #1a2438;
  --charcoal-line: rgba(242, 244, 247, 0.1);
  --cyan: #00c2c7;
  --light-gray: #f2f4f7;
  --medium-gray: #6b7280;
  --games-purple: #a855f7;
  --games-purple-deep: #9333ea;
  --games-light: #e9d5ff;
  --white: #ffffff;
  --ink: #111827;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: "Nunito Sans", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--light-gray);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--games-purple);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(17, 24, 39, 0.88);
  border-bottom-color: var(--charcoal-line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-lockup img {
  width: min(220px, 52vw);
  height: auto;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--charcoal-line);
  place-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--light-gray);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(242, 244, 247, 0.82);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(168, 85, 247, 0.18);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.45);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(17, 24, 39, 0.96);
    border-bottom: 1px solid var(--charcoal-line);
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    justify-content: center;
  }
}

/* —— Layout helpers —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

.section-lead {
  margin: 0;
  max-width: 38rem;
  color: rgba(242, 244, 247, 0.72);
}

/* —— Buttons —— */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s,
    color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--games-purple);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--cyan), var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--games-purple-deep);
}

.btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(242, 244, 247, 0.22);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 194, 199, 0.55);
}

.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* —— Home hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(17, 24, 39, 0.55) 0%,
      rgba(17, 24, 39, 0.35) 35%,
      rgba(17, 24, 39, 0.82) 70%,
      rgba(17, 24, 39, 0.96) 100%
    ),
    radial-gradient(
      90% 70% at 70% 20%,
      rgba(168, 85, 247, 0.28),
      transparent 55%
    ),
    radial-gradient(
      70% 50% at 15% 80%,
      rgba(0, 194, 199, 0.18),
      transparent 50%
    );
}

.hero__content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero__brand {
  width: min(420px, 88vw);
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero__title {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.22s forwards;
}

.hero__title span {
  color: var(--games-light);
}

.hero__text {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(242, 244, 247, 0.82);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.34s forwards;
}

.hero .btn-row {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.46s forwards;
}

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

/* —— Featured strip (home) —— */
.featured {
  background:
    linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  border-block: 1px solid var(--charcoal-line);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.featured__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-glow);
}

.featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--games-light);
  background: rgba(168, 85, 247, 0.16);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.35);
}

@media (max-width: 860px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Approach —— */
.approach {
  background: var(--charcoal);
}

.approach__list {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
  border-top: 1px solid var(--charcoal-line);
  padding-top: 2rem;
}

.approach__list li {
  padding: 0;
}

.approach__list strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
  color: var(--white);
}

.approach__list strong::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-bottom: 0.85rem;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--games-purple), var(--cyan));
}

.approach__list p {
  margin: 0;
  color: rgba(242, 244, 247, 0.68);
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  .approach__list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* —— Games page —— */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      60% 80% at 100% 0%,
      rgba(168, 85, 247, 0.22),
      transparent 55%
    ),
    radial-gradient(
      50% 60% at 0% 30%,
      rgba(0, 194, 199, 0.12),
      transparent 50%
    ),
    linear-gradient(180deg, #0d1320 0%, var(--charcoal) 100%);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: rgba(242, 244, 247, 0.72);
  font-size: 1.1rem;
}

.catalog {
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.game-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(26, 36, 56, 0.95),
    rgba(17, 24, 39, 0.95)
  );
  box-shadow: inset 0 0 0 1px var(--charcoal-line), var(--shadow-glow);
}

.game-feature__cover {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0e17;
}

.game-feature__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-feature__status {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--cyan);
}

.game-feature h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
}

.game-feature__blurb {
  margin: 0 0 1rem;
  color: rgba(242, 244, 247, 0.78);
}

.game-feature__body {
  margin: 0 0 1.25rem;
  color: rgba(242, 244, 247, 0.68);
  font-size: 0.98rem;
}

.game-feature__body p + p {
  margin-top: 0.75rem;
}

.game-feature__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.game-feature__list li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(242, 244, 247, 0.78);
  font-size: 0.95rem;
}

.game-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--games-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.shot-row figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--charcoal-line);
  background: #0a0e17;
}

.shot-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-row figcaption {
  padding: 0.45rem 0.65rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--medium-gray);
  background: rgba(0, 0, 0, 0.35);
}

.catalog-note {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  color: rgba(242, 244, 247, 0.7);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--charcoal-line);
}

.catalog-note strong {
  color: var(--games-light);
}

@media (max-width: 900px) {
  .game-feature {
    grid-template-columns: 1fr;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--charcoal-line);
  background: #0d1320;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer a {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(242, 244, 247, 0.75);
}

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

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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