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

:root {
  --orange: #f97316;
  --red: #ef4444;
  --dark: #1a202c;
  --gray: #64748b;
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light-bg);
  overflow-x: hidden;
  position: relative;
}

/* ========== GLOBAL GAME CANVAS ========== */
#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========== SCORE DISPLAY ========== */
#scoreDisplay {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(249, 115, 22, 0.3);
  border-radius: 20px;
  padding: 20px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 180px;
  transition: transform 0.2s ease;
}

.score-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 8px;
}

#scoreValue {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

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

/* ========== SECTIONS - Z-INDEX FOR GAME LAYERING ========== */
section {
  position: relative;
  z-index: 1;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-icon {
  font-size: 120px;
  line-height: 1;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero background - removed as game canvas handles all effects now */
.hero-bg {
  display: none;
}

#pixiCanvas {
  display: none;
}

/* ========== DOWNLOAD BUTTONS ========== */
.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-chrome {
  color: var(--dark);
}

.btn-chrome:hover {
  border-color: #4285f4;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.btn-firefox {
  color: var(--dark);
}

.btn-firefox:hover {
  border-color: #ff6611;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
}

.btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

/* ========== FEATURES SECTION ========== */
.features {
  padding: 120px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 64px;
  color: var(--dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--light-bg);
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

.feature-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: inline-block;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.feature-description {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
}

/* ========== BLOCKED SECTION ========== */
.blocked-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.blocked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.blocked-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 24px 28px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.blocked-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.blocked-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
}

.blocked-icon {
  font-size: 32px;
}

/* ========== CTA SECTION ========== */
.cta {
  padding: 120px 0;
  background: var(--white);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.footer-icon {
  font-size: 28px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-link:hover {
  background: rgba(249, 115, 22, 0.2);
  transform: translateX(4px);
}

.footer-icon-svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  color: var(--gray);
  font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #scoreDisplay {
    top: 16px;
    right: 16px;
    padding: 16px 24px;
    min-width: 140px;
  }

  .score-label {
    font-size: 10px;
  }

  #scoreValue {
    font-size: 36px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .cta-title {
    font-size: 36px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

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

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

@media (max-width: 480px) {
  #scoreDisplay {
    top: 12px;
    right: 12px;
    padding: 12px 20px;
    min-width: 120px;
  }

  .score-label {
    font-size: 9px;
  }

  #scoreValue {
    font-size: 32px;
  }

  .hero-icon {
    font-size: 80px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-description {
    font-size: 16px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-icon { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-description { animation-delay: 0.4s; }
.download-buttons { animation-delay: 0.5s; }
