body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #35175a; 
  /* Base purple color matching the center of the animation */
  background-image: radial-gradient(circle at center, #683088 0%, #35175a 60%, #1a0b2e 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* Full loop background */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.35); /* Scale to crop out native black pillars */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.button-container {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  padding: 18px 48px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.download-button:active {
  transform: scale(0.98);
}

.download-button svg {
  flex-shrink: 0;
}

.hero-text {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #ffffff;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.footer-link {
  position: absolute;
  bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  z-index: 10;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 1);
}

.tos-link {
  left: 40px;
}

.privacy-link {
  right: 40px;
}

/* Legal Pages Styling (e.g. Terms of Service, Privacy Policy) */
body.legal-page {
  /* Override index body styles */
  align-items: flex-start;
  padding: 60px 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.legal-container {
  max-width: 800px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 48px;
  border-radius: 24px;
  color: #fff;
  z-index: 10;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.legal-container h1 {
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 8px;
}

.legal-container h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.legal-container h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 8px;
}

.legal-container h4 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-container p, .legal-container ul {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.legal-container li {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .hero-text {
    font-size: 36px;
    white-space: normal;
    width: 90%;
    line-height: 1.2;
    top: 80px;
  }

  .bg-video {
    /* object-fit: cover automatically crops horizontal pillars on mobile screens */
    transform: translate(-50%, -50%) scale(1);
  }

  .button-container {
    bottom: 90px;
  }

  .download-button {
    font-size: 18px;
    padding: 16px 32px;
  }

  .footer-link {
    bottom: 24px;
    font-size: 12px;
  }

  .tos-link {
    left: 20px;
  }

  .privacy-link {
    right: 20px;
  }

  body.legal-page {
    padding: 20px 15px;
  }

  .legal-container {
    padding: 24px;
    border-radius: 16px;
  }
  
  .legal-container h1 {
    font-size: 26px;
  }

  .legal-container h2 {
    font-size: 20px;
  }
}
