:root {
  --bg: #1a1f27;
  --bg-soft: #26303d;
  --panel: rgba(40, 48, 60, 0.72);
  --panel-strong: rgba(28, 34, 43, 0.88);
  --text: #f8fbff;
  --muted: #c2c8d1;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #dc2626;
  --accent-soft: #f87171;
  --neutral: #c7ced8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(220, 38, 38, 0.14), transparent 20%),
    linear-gradient(160deg, #161b22 0%, #212833 42%, #2c3642 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.site-footer,
.hero,
.section,
.cta-panel {
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(30, 36, 46, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--neutral);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 24px;
  padding: 56px;
  background: linear-gradient(180deg, rgba(40, 47, 58, 0.72), rgba(24, 29, 37, 0.9));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 1.04;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  max-width: 10ch;
}

.hero-text,
.panel p,
.game-card p,
.value-item p,
.cta-panel p,
.hero-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.25);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.hero-card,
.panel,
.game-card,
.value-item,
.cta-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(220, 38, 38, 0.12), transparent 28%),
    var(--panel-strong);
  align-self: end;
}

.card-label,
.game-tag {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--neutral);
  font-size: 0.85rem;
}

.hero-card h2,
.panel h3,
.game-card h3,
.value-item h3 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.hero-stats li {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin-top: 24px;
  padding: 40px;
  background: rgba(32, 38, 48, 0.72);
  border: 1px solid var(--line);
  border-radius: 32px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(34, 40, 50, 0.84), rgba(41, 47, 58, 0.84));
}

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

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.about-grid,
.games-grid,
.values-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.panel,
.game-card,
.value-item {
  padding: 24px;
  border-radius: 24px;
  background: var(--panel);
}

.game-card {
  min-height: 240px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
}

.value-item span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cta-section {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 32px;
  background:
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(27, 33, 42, 0.9));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .hero,
  .about-grid,
  .games-grid,
  .values-grid,
  .cta-panel,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    padding: 32px 24px;
  }

  .section {
    padding: 30px 24px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .site-header {
    position: static;
    padding: 14px;
  }

  .site-nav {
    gap: 12px;
  }

  .hero {
    padding: 28px 20px;
  }

  .section {
    padding: 26px 20px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }
}
