:root {
  --bg: #f7fafc;
  --panel: rgba(255, 255, 255, 0.9);
  --text: #15202b;
  --muted: rgba(21, 32, 43, 0.68);
  --line: rgba(21, 32, 43, 0.12);
  --accent: #14b8a6;
  --accent-deep: #06b6d4;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(86, 190, 214, 0.2), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 52%, #eef3f8 100%);
}

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

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

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(21, 32, 43, 0.08);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img {
  width: 158px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a,
.site-nav .nav-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
  font-weight: 700;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: #15202b;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 84px;
}

.hero-slides {
  position: relative;
  min-height: calc(100vh - 84px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background:
    linear-gradient(90deg, rgba(7, 11, 15, 0.82) 0%, rgba(7, 11, 15, 0.4) 30%, rgba(7, 11, 15, 0.72) 100%),
    var(--bg-image) center / cover no-repeat;
}

.hero-slide::after {
  background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 15, 0.62) 100%);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  min-height: calc(100vh - 84px);
  padding-bottom: 84px;
}

.hero-copy {
  width: min(620px, 100%);
  color: #f3f7fb;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(21, 32, 43, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.about-section h2,
.site-footer h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 9vw, 6.5rem);
  color: #f3f7fb;
}

.hero-copy h1 span {
  display: block;
}

.lead {
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  color: rgba(21, 32, 43, 0.92);
}

.hero .eyebrow {
  color: rgba(243, 247, 251, 0.72);
}

.hero .lead {
  color: rgba(243, 247, 251, 0.92);
}

.description,
.section-heading p,
.feature-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.description {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1rem;
}

.hero .description {
  color: rgba(243, 247, 251, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  filter: brightness(0.98);
}

.button-secondary {
  border: 1px solid rgba(21, 32, 43, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #15202b;
}

.hero .button-secondary {
  border: 1px solid rgba(20, 184, 166, 0.45);
  background: rgba(0, 0, 0, 0.24);
  color: var(--accent);
}

.button-static {
  cursor: default;
}

.hero-controls {
  position: absolute;
  inset: 50% 0 auto;
  z-index: 2;
  transform: translateY(-50%);
}

.control-button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.control-button {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hero .control-button {
  background: rgba(0, 0, 0, 0.35);
  color: #f3f7fb;
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.control-button-prev {
  left: -24px;
}

.control-button-next {
  right: -24px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(21, 32, 43, 0.22);
}

.hero .hero-dot {
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: var(--text);
  transform: scale(1.15);
}

.hero .hero-dot.is-active {
  background: #f3f7fb;
}

.games-section,
.about-section,
.site-footer {
  padding: 96px 0;
}

.games-section,
.about-section {
  background: transparent;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2,
.about-section h2,
.site-footer h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.game-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 24px;
}

.game-card-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.game-card-heading p,
.game-card-meta {
  color: var(--muted);
}

.game-card-description {
  margin: 16px 0 18px;
  line-height: 1.7;
  color: rgba(21, 32, 43, 0.78);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 8px 12px;
  border: 1px solid rgba(21, 32, 43, 0.1);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.8rem;
  color: rgba(21, 32, 43, 0.82);
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.feature-list h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.footer-shell {
  display: grid;
  gap: 14px;
}

@media (max-width: 920px) {
  .game-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  }

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

  .site-header.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-shell {
    padding-bottom: 116px;
  }

  .hero-controls {
    inset: 50% 0 auto;
  }

  .control-button {
    width: 42px;
    height: 42px;
  }

  .control-button-prev {
    left: -8px;
  }

  .control-button-next {
    right: -8px;
  }

  .hero-dots {
    bottom: 28px;
  }

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

  .games-section,
  .about-section,
  .site-footer {
    padding: 72px 0;
  }
}
