/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a12;
  --bg-soft: #11111c;
  --surface: #161625;
  --surface-border: #26263d;
  --text: #e8e8f2;
  --text-muted: #9a9ab3;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(135deg, var(--purple), var(--cyan));
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--cyan); }

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

#fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.logo-text.small { font-size: 1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #0a0a12 !important;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}
.hero-glow--a { background: var(--purple); top: -150px; left: -100px; }
.hero-glow--b { background: var(--cyan); bottom: -200px; right: -100px; }

.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.glitch { position: relative; }

.hero-sub {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--grad);
  color: #0a0a12;
  box-shadow: 0 0 0 0 rgba(168,85,247,0);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -5px rgba(168,85,247,0.6);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  background: #000;
  border: 1px solid #333;
  transition: transform 0.2s, border-color 0.2s;
}
.store-badge:hover { transform: translateY(-3px); border-color: var(--cyan); }
.store-badge-icon { width: 28px; height: 28px; }
.store-badge-icon--apple { color: #fff; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.store-badge-text small { font-size: 0.65rem; font-weight: 400; color: #ccc; letter-spacing: 0.5px; }

.store-badge--sm { padding: 9px 18px; border-radius: 10px; }
.store-badge--sm .store-badge-icon { width: 22px; height: 22px; }
.store-badge--sm .store-badge-text { font-size: 0.9rem; }

.store-badge--disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Sections (generic) ---------- */
section { position: relative; z-index: 1; padding: 100px 0; }

.section-tag {
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 48px;
}

/* ---------- Games ---------- */
.games { background: var(--bg-soft); }

.game-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 36px;
  align-items: center;
}

.game-art { display: flex; justify-content: center; }
.game-icon {
  width: 180px; height: 180px;
  border-radius: 36px;
  object-fit: cover;
  filter: drop-shadow(0 10px 40px rgba(168,85,247,0.4));
}

.game-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.game-heading h3 { font-family: var(--font-display); font-size: 1.6rem; }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.badge-live {
  background: rgba(34,211,238,0.15);
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.4);
}

.game-desc { color: var(--text-muted); margin-bottom: 18px; max-width: 560px; }

.game-tags { display: flex; gap: 10px; list-style: none; margin-bottom: 24px; flex-wrap: wrap; }
.game-tags li {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}

.game-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.more-games {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  border: 1px dashed var(--surface-border);
  border-radius: 20px;
  padding: 24px 32px;
}
.more-games-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  font-size: 1.4rem;
  color: var(--purple);
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p { color: var(--text-muted); margin-bottom: 18px; }
.about-copy strong { color: var(--text); }

.about-features { display: flex; flex-direction: column; gap: 20px; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 24px;
}
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); text-align: center; }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact-sub { color: var(--text-muted); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { width: 100%; text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .game-card { grid-template-columns: 1fr; text-align: center; }
  .game-heading { justify-content: center; }
  .game-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--surface-border);
    padding: 24px;
    gap: 20px;
  }
}
