/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --surface:   #12121a;
  --surface-2: #1a1a26;
  --border:    #23233a;
  --text:      #e4e4ed;
  --text-dim:  #8888a4;
  --accent:    #64ffad;
  --accent-2:  #a78bfa;
  --radius:    14px;
  --glow:      0 0 60px rgba(100, 255, 173, .12);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Noise Overlay ── */
.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  height: 64px;
  background: rgba(10, 10, 15, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.35rem;
  letter-spacing: -.02em;
}
.logo-icon { color: var(--accent); font-size: 1.1rem; }
.logo-dot  { color: var(--accent); }

.nav { display: flex; gap: 1.6rem; }
.nav-link {
  font-size: .88rem; font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 72vh;
  padding: 120px 1.5rem 60px;
  text-align: center;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 440px;
  margin-left: auto; margin-right: auto;
}

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: .75rem 2rem;
  border-radius: 99px;
  font-weight: 600; font-size: .95rem;
  background: var(--accent);
  color: #0a0a0f;
  transition: transform .18s, box-shadow .25s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(100, 255, 173, .35);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,255,173,.08) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.12); }
}

/* ── Sections ── */
.games-section,
.about-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 1.5rem;
}

.section-header { text-align: center; margin-bottom: 3rem; }

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  letter-spacing: -.02em;
}

.section-sub {
  margin-top: .5rem;
  color: var(--text-dim);
  font-size: .95rem;
}

/* ── Games Grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s, box-shadow .28s, border-color .25s;
  cursor: pointer;
  display: flex; flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 255, 173, .3);
  box-shadow: var(--glow);
}

.game-card.coming-soon {
  cursor: default;
  opacity: .55;
}
.game-card.coming-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.game-card-image {
  position: relative;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  overflow: hidden;
}

.game-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 80%, var(--accent, #64ffad) , transparent 70%);
  opacity: .08;
}

.game-card-icon {
  font-size: 3.6rem;
  opacity: .7;
  filter: drop-shadow(0 0 20px var(--accent, #64ffad));
  transition: transform .3s;
}

.game-card:hover .game-card-icon {
  transform: scale(1.12);
}

.game-badge {
  position: absolute; top: 12px; right: 12px;
  padding: .22rem .7rem;
  border-radius: 99px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.game-badge.live {
  background: rgba(100, 255, 173, .15);
  color: #64ffad;
  border: 1px solid rgba(100, 255, 173, .3);
}
.game-badge.soon {
  background: rgba(167, 139, 250, .12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, .25);
}

.game-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
  display: flex; flex-direction: column;
}

.game-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700;
}

.game-card-desc {
  margin-top: .45rem;
  font-size: .86rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.game-card-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: .8rem;
}

.tag {
  padding: .18rem .55rem;
  border-radius: 6px;
  font-size: .7rem; font-weight: 600;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── About ── */
.about-section {
  max-width: 640px;
  text-align: center;
}
.about-content p {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: .95rem;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-dim);
}

/* ── Scroll Animations ── */
.game-card,
.about-content,
.section-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.game-card.visible,
.about-content.visible,
.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}
.game-card.coming-soon.visible {
  opacity: .55;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hero { min-height: 60vh; padding-top: 100px; }
  .games-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 1rem; }
}
