/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top right, #16203a, #05070c 55%);
  color: #f5f5f7;
}

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

.navbar {
  height: 76px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 32px;
  font-weight: 800;
}

.logo span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #8b5cf6;
  border-radius: 50%;
  margin-left: 4px;
}

nav {
  display: flex;
  gap: 30px;
  color: #b9beca;
}

nav a.active,
nav a:hover {
  color: white;
}

nav a.active {
  border-bottom: 2px solid #8b5cf6;
  padding-bottom: 8px;
}

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

input,
button {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: white;
  border-radius: 14px;
  padding: 13px 18px;
}

main {
  padding: 70px 6%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(90deg, #7c8cff, #b45cff, #ff7a59);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 480px;
  color: #c4c8d4;
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transform: rotate(6deg);
  opacity: 0.25;
}

.hero-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 22px;
  opacity: .9;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 42px 0 20px;
}

.section-head h2 {
  font-size: 26px;
}

.section-head a {
  color: #c9cad3;
}

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

.game-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  transition: .2s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,.55);
}

.game-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.game-card div {
  padding: 18px;
}

.game-card h3 {
  margin-bottom: 10px;
}

.game-card span {
  font-size: 13px;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.16);
  padding: 4px 8px;
  border-radius: 8px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.categories div {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  font-size: 28px;
}

.categories span {
  display: block;
  margin-top: 14px;
  font-size: 15px;
}

.banner {
  margin-top: 46px;
  padding: 28px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(255,255,255,.04));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner strong {
  font-size: 24px;
}

.banner p {
  margin-top: 8px;
  color: #b8bdca;
}

.banner a {
  border: 1px solid #8b5cf6;
  color: #d8b4fe;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
}

footer {
  padding: 40px 6%;
  color: #9ca3af;
  border-top: 1px solid rgba(255,255,255,.08);
}

footer strong {
  color: white;
  font-size: 28px;
}

@media (max-width: 1000px) {
  .hero,
  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  nav,
  .nav-actions {
    display: none;
  }
}

@media (max-width: 640px) {
  main {
    padding: 40px 5%;
  }

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

   .hero-grid {
    display: none;
  }

  .banner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}