/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
  padding: 110px 16px 40px;
  text-align: center;
}

.page-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #f0f0f8 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  color: rgba(240, 240, 248, 0.55);
  margin: 0 0 28px 0;
  font-weight: 400;
}

/* ── Hero search ─────────────────────────────────────────────────────────── */
.hero-search {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Games section ───────────────────────────────────────────────────────── */
.games-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ── Sorter pills ────────────────────────────────────────────────────────── */
.sorters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-block;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 700;
  font-size: clamp(0.88rem, 2vw, 1rem);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Inter", "Montserrat", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  color: rgba(240, 240, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover { background: rgba(255,255,255,0.13); color: #fff; }

.btn-tertiary {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(180%);
  color: rgba(240, 240, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.btn-tertiary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); color: #fff; }

/* ── Below-fold sections ─────────────────────────────────────────────────── */
.home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0 24px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 22px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.28);
  transform: translateY(-2px);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f8;
}
.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(240, 240, 248, 0.6);
  line-height: 1.6;
}

/* Popular games */
.popular { margin: 0 0 28px; }
.popular h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 700;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.card:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.22);
  color: #fff;
}
.card img { border-radius: 12px; }
.card span {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(240, 240, 248, 0.85);
  text-align: center;
}

/* SEO + FAQ */
.seo-copy, .faq { margin: 0 0 28px; }
.seo-copy h2, .faq h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.faq details {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}
.faq details[open] {
  background: rgba(139, 92, 246, 0.07);
  border-color: rgba(139, 92, 246, 0.2);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(240, 240, 248, 0.9);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸ "; color: #8b5cf6; }
details[open] summary::before { content: "▾ "; }
.faq details p {
  font-size: 0.9rem;
  color: rgba(240, 240, 248, 0.65);
  margin: 8px 0 0;
  line-height: 1.6;
}

/* ── Skeleton loading ────────────────────────────────────────────────────── */
.skeleton-app { pointer-events: none; }
.skeleton-img {
  width: 180px;
  height: 180px;
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.04) 0%,
    rgba(139,92,246,0.1) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.6s ease-in-out infinite;
  border-radius: 14px;
}
.skeleton-text {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.08) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.6s ease-in-out infinite;
  animation-delay: 0.25s;
  color: transparent !important;
  border-radius: 4px;
  user-select: none;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-hero { padding-top: 80px; }
  .hero-title { font-size: 2rem; }
}
