@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap");

:root {
  --background: 220 20% 97%;
  --foreground: 220 30% 15%;
  --card: 0 0% 100%;
  --card-foreground: 220 30% 15%;
  --primary: 350 75% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 60% 70%;
  --secondary-foreground: 0 0% 100%;
  --muted: 220 15% 90%;
  --muted-foreground: 220 10% 45%;
  --accent: 45 95% 55%;
  --accent-foreground: 220 30% 15%;
  --border: 220 15% 85%;
  --ring: 350 75% 55%;
  --game-pink: 350 75% 60%;
  --game-blue: 225 60% 70%;
  --game-green: 95 40% 45%;
  --radius: 16px;
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(25 90% 55%) 100%);
  --shadow-card: 0 10px 40px -10px hsl(220 30% 15% / 0.15);
  --shadow-button: 0 8px 30px -8px hsl(350 75% 55% / 0.5);
  --shadow-glow: 0 0 60px hsl(350 75% 55% / 0.3);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  min-height: 100vh;
  background: hsl(var(--background));
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background-image: var(--gradient-hero);
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.blob.main {
  width: 800px;
  height: 800px;
  background: hsl(var(--primary) / 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.blob.top-right {
  width: 360px;
  height: 360px;
  background: hsl(var(--secondary) / 0.1);
  top: -40px;
  right: -60px;
}

.blob.bottom-left {
  width: 360px;
  height: 360px;
  background: hsl(var(--accent) / 0.12);
  bottom: -60px;
  left: -40px;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: hsl(var(--foreground) / 0.65);
  margin: 0;
}

.hero-about {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto 3rem;
  color: hsl(var(--foreground) / 0.8);
  font-size: 1.125rem;
  line-height: 1.8;
}

.hero-about img {
  width: 40%;
  height: 40%;
  flex-shrink: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--foreground) / 0.6), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.game-card:hover::after {
  opacity: 1;
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.game-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.game-card:hover .game-card-title {
  transform: translateY(0);
}

.game-card-title span {
  display: inline-block;
  color: hsl(var(--primary-foreground));
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 1.6rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-button);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-glow);
  background: hsl(var(--primary) / 0.92);
}

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

.center {
  text-align: center;
}

.section-muted {
  background: hsl(var(--secondary) / 0.3);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(2.1rem, 3vw + 1rem, 2.7rem);
  font-weight: 900;
}

.section p.lead {
  max-width: 780px;
  margin: 0 auto 1rem;
  text-align: center;
  color: hsl(var(--foreground) / 0.8);
  font-size: 1.1rem;
}

.bonuses {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.bonus-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bonus-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.bonus-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(var(--primary) / 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.5rem;
}

.bonus-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.bonus-text {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.cta-block {
  padding: 3.5rem 0;
  background: hsl(var(--primary) / 0.06);
  text-align: center;
}

.cta-block h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2vw + 1rem, 2rem);
  font-weight: 900;
}

footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand p {
  margin: 0;
}

.footer-brand .title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.footer-brand .subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.socials {
  display: flex;
  gap: 0.7rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: scale(1.08);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  animation: scale-in 0.5s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.5s;
}

@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-about {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    line-height: 1.15;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
