/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0a0e27;
  --navy-light: #121836;
  --navy-card: #161b3d;
  --cyan: #00e5ff;
  --purple: #7c4dff;
  --pink: #ff6b9d;
  --yellow: #ffe66d;
  --green: #4ade80;
  --red: #ff6b6b;
  --text: #e8eaf6;
  --text-dim: #9fa8da;
  --font: 'Fredoka', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ===== BACKGROUND CANVAS ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== LAYOUT ===== */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 60px 0;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 0 40px;
}

.logo-wrap {
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

.logo {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 70%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* ===== ABOUT ===== */
.about {
  text-align: center;
}

.about p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-dim);
}

/* ===== HOW TO PLAY ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 12px;
}

.step {
  background: var(--navy-card);
  border: 1px solid rgba(124, 77, 255, 0.15);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.12);
}

.step-icon {
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ===== FEATURES ===== */
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-grid li {
  background: var(--navy-card);
  border: 1px solid rgba(124, 77, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.1);
}

.feat-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.feature-grid strong {
  font-size: 1rem;
  color: #fff;
}

.feature-grid span:last-child {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ===== GESTURE GALLERY ===== */
.gesture-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.gesture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gesture-demo {
  width: 80px;
  height: 80px;
  background: var(--navy-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.gesture-card span {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 60px 0 40px;
}

.cta p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

.badge-placeholder {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.badge-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 229, 255, 0.35);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(124, 77, 255, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Fade-in on scroll */
.hero, section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

.hero     { animation-delay: 0.1s; }
.about    { animation-delay: 0.15s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 50px 0 30px; }
  section { padding: 40px 0; }
  .gesture-list { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .gesture-demo { width: 64px; height: 64px; }
}
