/* ═══════════════════════════════════════════════════════════════
   FAST TRACK — Landing / Lobby Index
   Neon racing aesthetic · deep void · cyan / purple / green
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg: #07040f;
  --bg-card: rgba(12, 6, 24, 0.92);
  --bg-glass: rgba(10, 5, 22, 0.75);
  --cyan: #00ffff;
  --purple: #bf00ff;
  --green: #39ff14;
  --gold: #ffd700;
  --pink: #ff6b9d;
  --indigo: #6366f1;
  --text: #d0e8ff;
  --text-muted: #5a6a88;
  --text-bright: #ffffff;
  --danger: #ef4444;
  --border: rgba(0, 200, 255, 0.15);
  --border-hover: rgba(0, 255, 255, 0.45);
  --radius: 12px;
  --radius-lg: 20px;
  --glow-cyan: 0 0 14px rgba(0, 255, 255, 0.45);
  --glow-purple: 0 0 14px rgba(191, 0, 255, 0.45);
  --glow-green: 0 0 14px rgba(57, 255, 20, 0.45);
  --glow-gold: 0 0 14px rgba(255, 215, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #66ffff;
}

ul {
  list-style: none;
}

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

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.3);
  border-radius: 3px;
}

/* ── 3D BACKGROUND CANVAS ─────────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(7, 4, 15, 0.4) 0%,
      rgba(7, 4, 15, 0.2) 40%,
      rgba(7, 4, 15, 0.5) 70%,
      rgba(7, 4, 15, 0.85) 100%);
  pointer-events: none;
}

/* ── PARTICLES ─────────────────────────────────────────────── */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(7, 4, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
}

.nav-cta .btn {
  font-size: 0.82rem;
  padding: 8px 20px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00ccaa);
  color: #07040f;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
  color: #07040f;
}

.btn-secondary {
  background: rgba(0, 255, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-private {
  background: linear-gradient(135deg, var(--purple), #9900cc);
  color: #fff;
  box-shadow: 0 0 20px rgba(191, 0, 255, 0.2);
}

.btn-private:hover {
  box-shadow: 0 0 30px rgba(191, 0, 255, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-join {
  background: linear-gradient(135deg, var(--green), #00cc44);
  color: #07040f;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.btn-join:hover {
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.45);
  transform: translateY(-2px);
  color: #07040f;
}

.btn-accent {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn-accent:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan);
  padding: 6px 16px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 100px;
  margin-bottom: 16px;
  background: rgba(0, 255, 255, 0.06);
}

.section-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 20px 4px rgba(0, 255, 255, 0.15);
  }
}

.hero-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title .line1 {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.hero-title .line2 {
  display: block;
  font-size: clamp(3rem, 9vw, 6rem);
  background: linear-gradient(135deg, var(--cyan), var(--green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  opacity: 0.5;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   PLAY SECTION — Game mode cards
   ═══════════════════════════════════════════════════════════════ */
.play-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.play-category {
  margin-bottom: 56px;
}

.play-category h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 4px;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.play-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
  overflow: hidden;
}

.play-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.play-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 255, 255, 0.08);
}

.play-card:hover::before {
  opacity: 1;
}

.play-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.play-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.play-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
}

.badge-free {
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.25);
}

.badge-soon {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.play-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.play-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.play-card .btn {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY SECTION — Horizontal auto-scroll screenshots
   ═══════════════════════════════════════════════════════════════ */
.gallery-section {
  position: relative;
  z-index: 3;
  padding: 80px 0;
  overflow: hidden;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  animation: gallerySlide 30s linear infinite;
  width: max-content;
}

.gallery-item {
  flex-shrink: 0;
  width: 400px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: attr(data-theme);
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(7, 4, 15, 0.8);
  padding: 4px 12px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

@keyframes gallerySlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════════════════════
   RULES SECTION
   ═══════════════════════════════════════════════════════════════ */
.rules-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}

.rule-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.06);
}

.rule-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #07040f;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.rule-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.rule-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS REFERENCE SECTION
   ═══════════════════════════════════════════════════════════════ */
.cards-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04), transparent);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: all 0.3s;
}

.card-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.1);
}

.card-item.special {
  border-color: rgba(255, 215, 0, 0.2);
}

.card-item.special:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.1);
}

.card-value {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.card-item.special .card-value {
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES — Guilds & Tournaments
   ═══════════════════════════════════════════════════════════════ */
.features-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.06);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.65rem;
}

/* ═══════════════════════════════════════════════════════════════
   TUTORIAL VIDEOS
   ═══════════════════════════════════════════════════════════════ */
.videos-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.video-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 255, 255, 0.08);
}

.video-thumb {
  height: 180px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(191, 0, 255, 0.1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.15);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cyan);
  transition: all 0.3s;
}

.video-card:hover .play-button {
  background: var(--cyan);
  color: #07040f;
  box-shadow: var(--glow-cyan);
}

.video-info {
  padding: 20px 24px;
}

.video-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}

.video-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTERFLYFX SECTION
   ═══════════════════════════════════════════════════════════════ */
.butterflyfx-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(191, 0, 255, 0.04), transparent);
}

.bfx-content {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

.bfx-visual {
  display: flex;
  justify-content: center;
}

.helix-animation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helix-ring {
  position: absolute;
  border: 1px solid rgba(255, 107, 157, 0.15);
  border-radius: 50%;
  animation: helixRotate 8s linear infinite;
}

.helix-ring:nth-child(2) {
  width: 180px;
  height: 180px;
  animation-delay: 0s;
}

.helix-ring:nth-child(3) {
  width: 240px;
  height: 240px;
  animation-delay: -2s;
  border-color: rgba(0, 255, 255, 0.1);
}

.helix-ring:nth-child(4) {
  width: 300px;
  height: 300px;
  animation-delay: -4s;
  border-color: rgba(191, 0, 255, 0.1);
}

.helix-ring:nth-child(5) {
  width: 360px;
  height: 360px;
  animation-delay: -6s;
  border-color: rgba(57, 255, 20, 0.08);
}

@keyframes helixRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.bfx-info h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 16px;
}

.bfx-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.dimension-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(0, 255, 255, 0.2);
  transition: all 0.2s;
}

.dimension-item:hover {
  background: rgba(0, 255, 255, 0.05);
  border-left-color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════
   MUSIC SECTION
   ═══════════════════════════════════════════════════════════════ */
.music-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
}

.music-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.waveform-art {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: wavePulse 3s ease-in-out infinite;
}

.wave-1 {
  top: 40%;
  animation-delay: 0s;
  opacity: 0.6;
}

.wave-2 {
  top: 50%;
  animation-delay: -1s;
  opacity: 0.4;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.wave-3 {
  top: 60%;
  animation-delay: -2s;
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

@keyframes wavePulse {

  0%,
  100% {
    transform: scaleX(0.6);
    opacity: 0.3;
  }

  50% {
    transform: scaleX(1);
    opacity: 0.8;
  }
}

.phi-symbol {
  font-family: 'Orbitron', serif;
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 1;
  text-shadow: none;
}

.music-info h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 14px;
}

.music-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.math-formula {
  display: inline;
  font-family: 'Fira Code', 'Courier New', monospace;
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}

.math-explainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.math-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.math-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.math-card h4 {
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 8px;
}

.math-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.substrate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.substrate-chip {
  font-size: 0.75rem;
  padding: 6px 14px;
  background: rgba(0, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   CREDITS SECTION
   ═══════════════════════════════════════════════════════════════ */
.credits-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.03), transparent);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.credit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.credit-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.06);
}

.credit-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.credit-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.credit-card p {
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.credit-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.credits-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  z-index: 3;
  padding: 100px 0;
  text-align: center;
}

.cta-content h2 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL SECTION
   ═══════════════════════════════════════════════════════════════ */
.legal-section {
  position: relative;
  z-index: 3;
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h4 {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 3;
  padding: 60px 32px 32px;
  border-top: 1px solid var(--border);
  background: rgba(7, 4, 15, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav {
    padding: 10px 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    gap: 24px;
  }

  .play-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .bfx-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .music-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .math-explainer {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    width: 280px;
    height: 180px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title .line1 {
    font-size: 2rem;
  }

  .hero-title .line2 {
    font-size: 2.8rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .card-item {
    padding: 14px 8px;
  }

  .card-value {
    font-size: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
