/* InfernoBoyGames — landing (static MVP) */

:root {
  --bg-deep: #0c0f18;
  --bg-card: #141a28;
  --bg-card-hover: #1a2235;
  --bg-muted: #0f131f;
  --text: #eef2ff;
  --text-muted: #9aa3b8;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-3: #f472b6;
  --lime: #bef264;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(244, 114, 182, 0.08), transparent 45%);
  min-height: 100vh;
}

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

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

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #0c0f18;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 15, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.logo__text {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  line-height: 1.1;
}

.logo:hover {
  opacity: 0.92;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.45));
}

.logo__accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header[data-nav-open="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-nav-open="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav__list a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #042f2e;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.45);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

.btn--nav {
  padding-inline: 1.25rem;
}

.btn--play {
  margin-top: auto;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--lime), #86efac);
  color: #14532d;
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(190, 242, 100, 0.25);
}

.btn--play:hover {
  box-shadow: 0 12px 32px rgba(190, 242, 100, 0.35);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.15), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.35rem;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
  margin-top: 0.06em;
  padding-bottom: 0.14em;
  line-height: 1.22;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__banner {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 26, 40, 0.95), rgba(26, 34, 53, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero__banner:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.hero__banner-inner {
  padding: 1rem 1rem 1.05rem;
}

.hero__banner-games {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .hero__banner-games {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero__banner-game {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.hero__banner-game:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.hero__banner-game:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero__banner-game img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

@media (max-width: 420px) {
  .hero__banner-games {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--featured {
  padding-top: 0;
}

.section--muted {
  background: rgba(15, 19, 31, 0.6);
  border-block: 1px solid var(--border);
}

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

.section__head--compact {
  margin-bottom: 1.75rem;
}

.section__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__intro--narrow {
  max-width: 32rem;
}

/* Featured game cards */
.featured-list {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .featured-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .featured-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: var(--bg-card-hover);
}

.game-card--featured {
  min-height: 520px;
}

@media (min-width: 1024px) {
  .game-card--featured {
    min-height: 560px;
  }
}

.game-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__thumb-label {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  opacity: 0.9;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.game-card__thumb--puzzle {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.2), transparent),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 12.5%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 12.5%
    ),
    linear-gradient(145deg, #0e7490, #22d3ee 45%, #a5f3fc);
}

.game-card__thumb--maths {
  background: linear-gradient(145deg, #5b21b6, #a78bfa 50%, #e9d5ff);
}

.game-card__thumb--spelling {
  background: linear-gradient(145deg, #be185d, #f472b6 55%, #fce7f3);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 1.35rem 1.35rem 1.5rem;
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.badge--student {
  background: rgba(190, 242, 100, 0.2);
  color: var(--lime);
}

.badge--new,
.badge--featured {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent);
}

.badge--soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.game-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.game-card__title--sm {
  font-size: 1.05rem;
}

.game-card__type {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}

.game-card__desc {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Categories */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.45);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Coming soon */
.soon-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.game-card--soon {
  min-height: auto;
  opacity: 0.92;
}

.game-card--soon:hover {
  transform: translateY(-4px);
  opacity: 1;
}

.game-card__thumb--soon {
  aspect-ratio: 16 / 9;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(167, 139, 250, 0.12));
  background-size: 200% 200%;
  animation: soon-shift 8s ease infinite;
}

/* Real image: drop animated placeholder background */
.game-card--soon .game-card__thumb--soon:has(.game-card__img) {
  background: none;
  animation: none;
}

@keyframes soon-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.game-card__body--compact {
  padding: 1rem 1.15rem 1.2rem;
  gap: 0.4rem;
}

/* About */
.section--about {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.about-strip {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.06));
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.about-strip__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.about-strip__content p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(8, 10, 16, 0.9);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__brand {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .site-footer__links {
    justify-content: flex-end;
  }
}

.site-footer__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__note {
  margin: 0;
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
  text-align: center;
}

@media (min-width: 600px) {
  .site-footer__note {
    text-align: left;
  }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(12, 15, 24, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

  .site-header[data-nav-open="true"] .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.65rem 0;
  }

  .btn--nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .game-card:hover,
  .hero__banner:hover,
  .hero__banner-game:hover,
  .category-pill:hover,
  .game-card--soon:hover {
    transform: none;
  }

  .game-card__thumb--soon {
    animation: none;
  }
}
