:root {
  --bg: #050811;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: #111827;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #38bdf8;
  --indigo: #818cf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite alternate;
}

.blob-1 {
  width: 440px;
  height: 440px;
  background: #0284c7;
  top: -120px;
  left: -100px;
}

.blob-2 {
  width: 480px;
  height: 480px;
  background: #6366f1;
  bottom: -140px;
  right: -120px;
  animation-delay: -5s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 25%, black 20%, transparent 80%);
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(45px, 30px) scale(1.12); }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 17, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
  animation: pulseMark 2.4s ease-in-out infinite;
}

@keyframes pulseMark {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.18) rotate(12deg); }
}

.brand-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 76px 24px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan), var(--indigo), var(--emerald));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-subtitle strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #3b82f6);
  color: #04101f;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.4);
}

.btn-ghost {
  background: rgba(30, 41, 59, 0.65);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
}

.hero-metrics {
  display: flex;
  gap: 28px;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.metric span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Floating Showcase Cards */
.hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.floating-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  animation: floatCard 5s ease-in-out infinite;
}

.card-mid {
  transform: translateX(18px);
  animation-delay: -1.6s;
}

.card-bot {
  animation-delay: -3.2s;
}

@keyframes floatCard {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.floating-card strong {
  display: block;
  font-size: 1.05rem;
  margin: 6px 0 2px;
}

.floating-card small {
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
}

.mini-badge.runner {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
}

.mini-badge.space {
  background: rgba(52, 211, 153, 0.16);
  color: var(--emerald);
}

/* Games Section */
.games-section {
  padding: 48px 24px 64px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-input {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  min-width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--cyan);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface-strong);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pill {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.pill:hover {
  color: var(--text);
}

.pill.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--cyan);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.game-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(56, 189, 248, 0.14),
    transparent 70%
  );
}

.game-card:hover .card-glow {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.genre-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
}

.genre-tag.runner-tag {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
}

.genre-tag.arena-tag {
  background: rgba(129, 140, 248, 0.18);
  color: var(--indigo);
}

.genre-tag.space-tag {
  background: rgba(52, 211, 153, 0.16);
  color: var(--emerald);
}

.genre-tag.arcade-tag {
  background: rgba(251, 113, 133, 0.16);
  color: var(--rose);
}

.status-tag {
  font-size: 0.76rem;
  color: var(--emerald);
  font-weight: 600;
}

.game-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.game-card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.play-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  transition: background-color 0.2s, transform 0.2s;
}

.play-link:hover {
  background: var(--cyan);
  color: #04101f;
  transform: translateX(2px);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
}

.hidden {
  display: none !important;
}

/* Info Strip */
.info-section {
  padding: 16px 24px 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.info-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq-section {
  padding: 16px 24px 72px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.92rem;
}

.faq-item code {
  color: var(--cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .card-mid {
    transform: none;
  }

  .games-grid,
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}