:root {
  --bg: #0a0a12;
  --bg-alt: #10101c;
  --surface: #161624;
  --surface-hover: #1d1d30;
  --border: #26263c;
  --text: #eef0fb;
  --text-dim: #9494b3;
  --text-dimmer: #6d6d8c;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #ff5cad;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

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

/* Background flourish */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(500px 400px at 90% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 18, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 0 24px -4px rgba(124, 92, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0a12;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1.1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--gradient);
  color: #0a0a12;
}

/* Hero */
.hero {
  padding: 108px 24px 96px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient);
  color: #090911;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(124, 92, 255, 0.55);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--text-dimmer);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Section shared */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 380px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.games-grid .game-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 20px 40px -14px rgba(124, 92, 255, 0.35), var(--shadow);
}

.games-grid .game-card:hover .status-pill {
  animation: pulse-pill 1.1s ease-in-out infinite;
}

.games-grid .game-card:hover .game-title {
  color: var(--accent-2);
  transition: color 0.25s ease;
}

@keyframes pulse-pill {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.games-grid .game-card.reveal {
  transition-property: opacity, transform, border-color, box-shadow;
  transition-duration: 0.6s, 0.6s, 0.3s, 0.3s;
  transition-timing-function: ease, cubic-bezier(0.22, 1, 0.36, 1), ease, ease;
}

.game-art {
  height: 148px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.games-grid .game-card:hover .game-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at 20% 10%, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: ken-burns 16s ease-in-out infinite alternate;
  transform-origin: 50% 40%;
}

.game-card:hover .game-art img {
  animation-play-state: running;
  animation-duration: 6s;
}

.game-art img.art-contain {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  animation: float-planet 5s ease-in-out infinite;
}

.game-card:hover .game-art img.art-contain {
  animation-duration: 2.2s;
}

@keyframes ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}

@keyframes float-planet {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

.art-1 { background: linear-gradient(135deg, #6a3bff, #2b1a6b); }
.art-2 { background: linear-gradient(135deg, #0fb8c9, #0a4a6b); }
.art-3 { background: linear-gradient(135deg, #ff7ab8, #7a3b6b); }
.art-4 { background: linear-gradient(135deg, #8a5a2b, #3b2214); }
.art-5 { background: linear-gradient(135deg, #2bb673, #14503b); }
.art-6 { background: linear-gradient(135deg, #5c6bff, #241a6b); }
.art-7 { background: linear-gradient(135deg, #1a1a2e, #05050a); }
.art-8 { background: linear-gradient(135deg, #ff9d3b, #b23b6b); }

.game-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative;
  z-index: 2;
  transition: gap 0.3s ease;
}

.games-grid .game-card:hover .game-body {
  gap: 0;
}

.game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.games-grid .game-card:hover .game-top {
  background: rgba(8, 8, 16, 0.6);
  backdrop-filter: blur(6px);
  padding: 8px 10px;
  margin: -8px -10px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.game-title {
  font-size: 1.12rem;
  font-weight: 700;
}

.status-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.status-soon {
  background: rgba(124, 92, 255, 0.16);
  color: #b6a4ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.status-dev {
  background: rgba(34, 211, 238, 0.13);
  color: #7fe4f5;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.status-proto {
  background: rgba(255, 92, 173, 0.13);
  color: #ff9dc9;
  border: 1px solid rgba(255, 92, 173, 0.3);
}

.status-live {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.game-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  flex: 1;
  opacity: 1;
  max-height: 300px;
  transition: opacity 0.25s ease, max-height 0.4s ease;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  opacity: 1;
  max-height: 100px;
  transition: opacity 0.25s ease, max-height 0.4s ease, margin 0.4s ease;
}

.games-grid .game-card:hover .game-desc,
.games-grid .game-card:hover .game-meta,
.games-grid .game-card:hover .game-links {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
}

.tag {
  font-size: 0.72rem;
  color: var(--text-dimmer);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}

.game-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  opacity: 1;
  max-height: 60px;
  transition: opacity 0.25s ease, max-height 0.4s ease, margin 0.4s ease;
}

.game-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 6px 13px 6px 11px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.play-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: #111;
}

.play-badge-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  clip-path: polygon(14% 2%, 14% 98%, 93% 50%);
  background: linear-gradient(160deg, #00d4ff 0%, #00e18a 35%, #ffcd00 65%, #ff3a44 100%);
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.play-badge-eyebrow {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #e5e5ea;
  text-transform: uppercase;
}

.play-badge-brand {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* About */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 0 0 18px;
  font-weight: 800;
}

.about-text p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.about-list .ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #0a0a12;
}

.about-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.about-card .role {
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.about-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.about-card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Contact */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(124, 92, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.contact-box h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.contact-box p {
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 30px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-row {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-row a:hover {
  color: var(--text);
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dimmer);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-dimmer);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-dim);
}

.footer-row .brand {
  font-size: 0.95rem;
}

.footer-row .brand .mark {
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

/* Legal / Privacy page */
.legal {
  padding: 64px 0 110px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.legal .updated {
  color: var(--text-dimmer);
  font-size: 0.88rem;
  margin: 0 0 40px;
}

.legal-body {
  max-width: 760px;
}

.legal-body > p {
  color: var(--text-dim);
  margin: 0 0 20px;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 14px;
}

.legal-body ol {
  color: var(--text-dim);
  padding-left: 22px;
  display: grid;
  gap: 14px;
  margin: 0 0 8px;
}

.legal-body ol li::marker {
  color: var(--accent-2);
  font-weight: 700;
}

.legal-body .contact-line {
  color: var(--text-dim);
}

.legal-body .contact-line a {
  color: var(--accent-2);
  font-weight: 600;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
  }

  .hero {
    padding: 76px 20px 64px;
  }

  .hero-stats {
    gap: 32px;
  }

  .contact-box {
    padding: 40px 24px;
  }
}
