:root {
  --bg: #08111f;
  --bg-soft: rgba(14, 24, 44, 0.74);
  --panel: rgba(10, 18, 34, 0.8);
  --panel-border: rgba(149, 173, 211, 0.16);
  --text: #f4f7fb;
  --muted: #a1b1cb;
  --accent: #70e1c8;
  --accent-strong: #40c4ff;
  --warm: #ffb86b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(64, 196, 255, 0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(112, 225, 200, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 184, 107, 0.12), transparent 24%),
    linear-gradient(180deg, #060d18 0%, #08111f 40%, #0b1526 100%);
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(7, 14, 28, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(64, 196, 255, 0.18));
}

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

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.hero,
.section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.88), rgba(7, 14, 28, 0.76));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 56px;
  min-height: 520px;
  align-items: center;
}

.hero::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -30% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(64, 196, 255, 0.18), transparent 62%);
  filter: blur(10px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  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: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button-primary {
  color: #08111f;
  background: linear-gradient(135deg, var(--accent), #b8f7ea);
  box-shadow: 0 14px 28px rgba(112, 225, 200, 0.22);
}

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

.hero-panel {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
}

.hero-panel-glow {
  position: absolute;
  width: min(430px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(64, 196, 255, 0.08), rgba(112, 225, 200, 0.24), rgba(255, 184, 107, 0.08), rgba(64, 196, 255, 0.08));
  filter: blur(6px);
  opacity: 0.55;
}

.hero-card,
.preview-surface,
.cta-card,
.description-panel,
.game-card,
.feature-card,
.gallery-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 29, 50, 0.92), rgba(8, 14, 26, 0.8));
}

.hero-card {
  width: min(380px, 100%);
  padding: 28px;
  border-radius: 26px;
}

.hero-card-label,
.panel-intro {
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.feature-list li,
.tag-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted);
}

.hero-stats li::before,
.feature-list li::before,
.tag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px rgba(112, 225, 200, 0.5);
}

.section {
  margin-top: 28px;
  padding: 36px;
}

.section-heading {
  max-width: 64ch;
  margin-bottom: 28px;
}

.games-grid,
.features-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.game-card,
.feature-card,
.gallery-card {
  border-radius: 24px;
  padding: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.game-card:hover,
.feature-card:hover,
.gallery-card:hover {
  border-color: rgba(112, 225, 200, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.game-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.game-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #061018;
  background: linear-gradient(135deg, var(--warm), #ffd59d);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag-list,
.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.preview-panel,
.description-panel {
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(13, 22, 40, 0.92), rgba(8, 14, 26, 0.76));
}

.preview-surface {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 380px;
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 15, 26, 0.18), rgba(8, 15, 26, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(255, 184, 107, 0.2), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(64, 196, 255, 0.25), transparent 26%),
    linear-gradient(135deg, #12233d 0%, #0a1730 48%, #13273b 100%);
}

.preview-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-image-wrap {
  position: relative;
  margin: 18px 0;
  min-height: 0;
}

.preview-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.preview-copy p:last-child,
.game-card p:last-of-type,
.feature-card p:last-child,
.description-panel p:last-child {
  margin-bottom: 0;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-card {
  min-height: 220px;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(18, 29, 50, 0.82), rgba(8, 14, 26, 0.82)),
    linear-gradient(135deg, rgba(64, 196, 255, 0.14), rgba(112, 225, 200, 0.06));
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.cta-card {
  overflow: hidden;
  padding: 36px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 24px 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-title {
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 700;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reveal {
  opacity: 1;
  transform: none;
}

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

  .hero {
    padding: 36px 24px;
    min-height: auto;
  }

  .section {
    padding: 28px 22px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .site-header {
    top: 10px;
  }

  .hero,
  .section,
  .cta-card {
    border-radius: 22px;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-actions,
  .site-nav,
  .footer-links {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
