/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header {
  position: relative;
  z-index: 1000;
  background: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #581c87 100%);
  padding: 12px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.header-logo-link:hover {
  transform: scale(1.02);
}

.header-logo-img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.header-logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fbbf24;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-age {
  display: flex;
  align-items: center;
}

.age-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.age-logo:hover {
  transform: scale(1.05);
}

/* Main container */
.main-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #581c87 0%, #7c3aed 50%, #581c87 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.decorative-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* String lights */
.string-lights {
  position: absolute;
  width: 100%;
  height: 60px;
}

.top-lights {
  top: 32px;
}

.second-lights {
  top: 64px;
  transform: rotate(1deg);
}

.lights-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  width: 100%;
  height: 100%;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

.light.yellow {
  background-color: #fbbf24;
  animation-delay: 0s;
}

.light.pink {
  background-color: #f472b6;
  animation-delay: 0.4s;
}

.light.orange {
  background-color: #fb923c;
  animation-delay: 0.8s;
}

.light.green {
  background-color: #4ade80;
  animation-delay: 1.2s;
}

.light.purple {
  background-color: #a855f7;
  animation-delay: 0.6s;
}

.light-connector {
  width: 32px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Floating stars */
.star {
  position: absolute;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  animation: pulse 3s infinite;
}

.star-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}
.star-2 {
  top: 25%;
  left: 85%;
  animation-delay: 0.5s;
}
.star-3 {
  top: 35%;
  left: 20%;
  animation-delay: 1s;
}
.star-4 {
  top: 45%;
  left: 90%;
  animation-delay: 1.5s;
}
.star-5 {
  top: 55%;
  left: 15%;
  animation-delay: 2s;
}
.star-6 {
  top: 65%;
  left: 80%;
  animation-delay: 2.5s;
}
.star-7 {
  top: 75%;
  left: 25%;
  animation-delay: 0.3s;
}
.star-8 {
  top: 85%;
  left: 70%;
  animation-delay: 0.8s;
}
.star-9 {
  top: 20%;
  left: 60%;
  animation-delay: 1.3s;
}
.star-10 {
  top: 40%;
  left: 45%;
  animation-delay: 1.8s;
}
.star-11 {
  top: 60%;
  left: 55%;
  animation-delay: 2.3s;
}
.star-12 {
  top: 80%;
  left: 40%;
  animation-delay: 0.2s;
}
.star-13 {
  top: 30%;
  left: 75%;
  animation-delay: 0.7s;
}
.star-14 {
  top: 50%;
  left: 30%;
  animation-delay: 1.2s;
}
.star-15 {
  top: 70%;
  left: 65%;
  animation-delay: 1.7s;
}
.star-16 {
  top: 90%;
  left: 50%;
  animation-delay: 2.2s;
}
.star-17 {
  top: 10%;
  left: 35%;
  animation-delay: 0.4s;
}
.star-18 {
  top: 95%;
  left: 20%;
  animation-delay: 0.9s;
}
.star-19 {
  top: 5%;
  left: 80%;
  animation-delay: 1.4s;
}
.star-20 {
  top: 85%;
  left: 10%;
  animation-delay: 1.9s;
}

/* Decorative lamps */
.floating-lamp {
  position: absolute;
  font-size: 48px;
  animation: bounce 3s infinite;
}

.lamp-1 {
  top: 80px;
  right: 80px;
  font-size: 64px;
  animation-duration: 3s;
}

.lamp-2 {
  top: 160px;
  left: 64px;
  font-size: 32px;
  animation-duration: 4s;
  animation-delay: 1s;
}

.lamp-3 {
  top: 240px;
  right: 128px;
  font-size: 40px;
  animation-duration: 5s;
  animation-delay: 2s;
}

/* Sparkle effects */
.sparkle {
  position: absolute;
  font-size: 24px;
  animation: spin 8s linear infinite;
}

.sparkle-1 {
  top: 128px;
  left: 128px;
  color: #fbbf24;
}

.sparkle-2 {
  top: 384px;
  right: 96px;
  color: #f472b6;
  font-size: 20px;
  animation-duration: 6s;
  animation-direction: reverse;
}

/* Floating daisy */
.floating-daisy {
  position: absolute;
  bottom: 64px;
  right: 64px;
  font-size: 32px;
  animation: spin 10s linear infinite;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 600px;
}

.title-magic {
  color: #fbbf24;
}

.title-lamp {
  color: white;
}

.cta-button {
  background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
  color: black;
  font-weight: bold;
  padding: 16px 32px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-button:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #ea580c 100%);
  transform: scale(1.05);
}

.button-icon {
  font-size: 16px;
}

/* Hero illustration */
.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-lamp {
  font-size: 8rem;
  animation: pulse 2s infinite;
}

.genie {
  position: absolute;
  top: -32px;
  right: -16px;
  font-size: 5rem;
  animation: bounce 2s infinite;
  animation-delay: 0.5s;
}

.sparkles {
  position: absolute;
  bottom: -16px;
  left: -16px;
  font-size: 3rem;
  animation: bounce 2s infinite;
  animation-delay: 1s;
}

/* Sections */
.features-section,
.stats-section,
.download-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}

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

.section-title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  color: #fbbf24;
  margin-bottom: 64px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
}

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

.feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.genie-title {
  color: #fbbf24;
}

.palace-title {
  color: #f472b6;
}

.treasure-title {
  color: #a855f7;
}

.feature-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: white;
}

.rating-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.players-card {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

.time-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.trophy-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.rating-card .stat-number {
  color: #fbbf24;
}

.players-card .stat-number {
  color: #f472b6;
}

.time-card .stat-number {
  color: #4ade80;
}

.trophy-card .stat-number {
  color: #fb923c;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* About Us Section */
.about-us-section {
  margin-top: 80px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fbbf24;
  text-align: center;
  margin-bottom: 16px;
}

.about-subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 24px;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Terms and Privacy Pages */
.terms-section,
.privacy-section {
  position: relative;
  z-index: 10;
  padding: 80px 24px;
}

.terms-title,
.privacy-title {
  font-size: 3rem;
  font-weight: bold;
  color: #fbbf24;
  text-align: center;
  margin-bottom: 48px;
}

.terms-content,
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.terms-content h2,
.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fbbf24;
  margin-top: 32px;
  margin-bottom: 16px;
}

.terms-content h2:first-child,
.privacy-content h2:first-child {
  margin-top: 0;
}

.terms-content p,
.privacy-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.terms-footer,
.privacy-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.terms-footer p,
.privacy-footer p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

/* Download Section */
.download-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.download-lamp {
  font-size: 6rem;
  margin-bottom: 32px;
  animation: bounce 2s infinite;
}

.download-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 32px;
}

.title-highlight {
  color: #fbbf24;
}

.download-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}

.game-preview-img {
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.game-preview-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.download-btn {
  padding: 16px 32px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
  color: black;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #ea580c 100%);
  transform: scale(1.05);
}

.secondary-btn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.platform-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.platform-star {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.platform-text {
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.footer-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-icon {
  font-size: 2rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fbbf24;
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-stars {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.footer-star {
  animation: pulse 2s infinite;
}

.footer-star:nth-child(1) {
  animation-delay: 0s;
}
.footer-star:nth-child(2) {
  animation-delay: 0.5s;
}
.footer-star:nth-child(3) {
  animation-delay: 1s;
}
.footer-star:nth-child(4) {
  animation-delay: 1.5s;
}
.footer-star:nth-child(5) {
  animation-delay: 2s;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Footer Logos */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.logo-column {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-link:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo-item {
  font-size: 2.5rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Footer Disclaimer */
.footer-disclaimer {
  margin: 32px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.disclaimer-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.logo-img {
  max-width: 120px;
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  object-fit: contain;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translateY(0);
  }
  40%,
  43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-subtitle {
    font-size: 1.3rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .terms-title,
  .privacy-title {
    font-size: 2.5rem;
  }

  .terms-content,
  .privacy-content {
    padding: 32px;
  }

  .download-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .header-logo-img {
    height: 60px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .age-logo {
    height: 35px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .about-subtitle {
    font-size: 1.2rem;
  }

  .about-description {
    font-size: 0.95rem;
  }

  .terms-title,
  .privacy-title {
    font-size: 2rem;
  }

  .terms-content,
  .privacy-content {
    padding: 24px;
  }

  .download-title {
    font-size: 2rem;
  }

  .main-lamp {
    font-size: 6rem;
  }

  .genie {
  font-size: 4rem;
}

  .sparkles {
    font-size: 2rem;
  }

  .download-buttons {
    flex-direction: column;
  }

  .game-preview-img {
    max-width: 250px;
  }

  .platform-info {
    flex-direction: column;
    gap: 16px;
  }

  .footer-logos {
    gap: 32px;
  }

  .logo-item {
    font-size: 2.2rem;
  }

  .logo-img {
    max-width: 110px;
    height: 45px;
  }

  .footer-disclaimer {
    margin: 24px 0;
    padding: 16px;
  }

  .disclaimer-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 12px;
  }

  .header-logo-img {
    height: 50px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .age-logo {
    height: 30px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .download-title {
    font-size: 1.75rem;
  }

  .main-lamp {
    font-size: 4rem;
  }

  .genie {
    font-size: 3rem;
  }

  .sparkles {
    font-size: 1.5rem;
  }

  .floating-lamp {
    font-size: 24px;
  }

  .game-preview-img {
    max-width: 200px;
  }

  .lamp-1 {
    font-size: 32px;
  }

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

  .footer-logos {
    flex-direction: column;
    gap: 24px;
  }

  .logo-column {
    min-width: auto;
    max-width: none;
  }

  .logo-link {
    padding: 12px;
  }

  .logo-item {
    font-size: 2rem;
  }

  .logo-img {
    max-width: 100px;
    height: 40px;
  }

  .footer-disclaimer {
    margin: 20px 0;
    padding: 12px;
  }

  .disclaimer-text {
    font-size: 0.7rem;
  }
}
  
  