:root {
  --bg: #02050b;
  --panel: #07101d;
  --text: #ffffff;
  --muted: #a9b7cc;
  --blue: #11c7ff;
  --blue-deep: #1465ff;
  --orange: #ff9300;
  --border: rgba(255,255,255,.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  background: url("assets/hero-gaming.png") center 34% / cover no-repeat;
  transform: scale(1.02);
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,5,11,.92) 0%, rgba(2,5,11,.65) 48%, rgba(2,5,11,.40) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(2,5,11,.15) 34%, rgba(2,5,11,.15) 100%);
  z-index: -2;
}

.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: left;
}

.brand-logo {
  width: min(520px, 76vw);
  filter: drop-shadow(0 0 28px rgba(0,174,255,.34));
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(56px, 9vw, 116px);
  line-height: .88;
  text-shadow: 0 8px 28px rgba(0,0,0,.45);
}

.hero-copy {
  max-width: 560px;
  margin: 20px 0 28px;
  color: #dbe7f7;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.hero-button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  box-shadow: 0 12px 34px rgba(0,155,255,.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-button:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,155,255,.34);
}

.games-section {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: .95;
}

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

.game-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0,0,0,.32);
}

.game-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.game-card:hover > img {
  transform: scale(1.035);
}

.game-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2,5,11,.94) 0%, rgba(2,5,11,.28) 52%, rgba(2,5,11,.04) 100%);
}

.game-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  z-index: 2;
}

.platform {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.game-content h3 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .92;
}

footer {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

footer img {
  width: 170px;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: 72vh;
  }

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

  .game-card:last-child {
    grid-column: 1 / -1;
    min-height: 500px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 74vh;
    align-items: end;
    padding: 34px 20px 60px;
  }

  .hero-art {
    background-position: 57% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(2,5,11,.98) 0%, rgba(2,5,11,.74) 42%, rgba(2,5,11,.24) 100%);
  }

  .brand-logo {
    width: min(430px, 88vw);
  }

  h1 {
    font-size: clamp(50px, 16vw, 76px);
  }

  .hero-copy {
    max-width: 92%;
    font-size: 16px;
  }

  .games-section {
    width: min(100% - 28px, 1280px);
    padding: 54px 0 76px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-card,
  .game-card:last-child {
    min-height: 520px;
    grid-column: auto;
  }

  .game-content {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .play-button {
    width: 100%;
  }

  footer {
    width: min(100% - 28px, 1280px);
    flex-direction: column;
    align-items: flex-start;
  }
}
