/* MengAI Landing Page Styles */

/* CSS Variables - Design Tokens */
:root {
  --bg-dark: #0B0C1E;
  --bg-light: #1e1f4b;
  --accent: #7C8CFB;
  --accent-hover: #9BA6FC;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-solid: rgba(255, 255, 255, 0.95);
  --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

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

/* Base Body */
body {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Star Animation Background */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.stars::before,
.stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  box-shadow:
    /* Layer 1 - Small stars */
    50px 100px rgba(255,255,255,0.3),
    150px 50px rgba(255,255,255,0.4),
    250px 150px rgba(255,255,255,0.2),
    350px 80px rgba(255,255,255,0.5),
    450px 200px rgba(255,255,255,0.3),
    100px 250px rgba(255,255,255,0.4),
    200px 300px rgba(255,255,255,0.2),
    300px 350px rgba(255,255,255,0.5),
    400px 400px rgba(255,255,255,0.3),
    500px 450px rgba(255,255,255,0.4),
    /* Layer 2 */
    600px 100px rgba(255,255,255,0.2),
    700px 200px rgba(255,255,255,0.4),
    800px 50px rgba(255,255,255,0.3),
    900px 150px rgba(255,255,255,0.5),
    1000px 250px rgba(255,255,255,0.2),
    650px 350px rgba(255,255,255,0.4),
    750px 400px rgba(255,255,255,0.3),
    850px 300px rgba(255,255,255,0.5),
    950px 450px rgba(255,255,255,0.2),
    1050px 350px rgba(255,255,255,0.4);
  animation: twinkle 4s ease-in-out infinite;
}

.stars::after {
  animation-delay: 2s;
  transform: translateX(-50px) translateY(100px);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Landing Page Layout */
.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}

.landing-content {
  max-width: 480px;
  width: 100%;
}

/* App Icon */
.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(124, 140, 251, 0.3);
}

/* Typography */
.app-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* App Store Button */
.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Footer */
.landing-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  color: var(--text-dim);
  font-size: 13px;
}

/* Legal Pages (Privacy, Terms) */
.legal-page {
  position: relative;
  z-index: 1;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--glass-bg-solid);
  min-height: 100vh;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.legal-header .back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.legal-header .back-link:hover {
  text-decoration: underline;
}

.legal-container h1 {
  color: var(--bg-light);
  font-size: 28px;
  margin-bottom: 8px;
}

.legal-container .updated {
  color: #666;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-container h2 {
  color: var(--bg-light);
  font-size: 20px;
  margin: 28px 0 12px;
}

.legal-container h3 {
  color: #444;
  font-size: 16px;
  margin: 16px 0 8px;
}

.legal-container p {
  color: #444;
  margin-bottom: 12px;
}

.legal-container ul {
  margin: 0 0 16px 24px;
  color: #444;
}

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

.legal-container a {
  color: var(--accent);
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 14px;
}

.legal-footer p {
  color: #666;
}

/* Responsive */
@media (max-width: 480px) {
  .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

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

  .tagline {
    font-size: 20px;
  }

  .description {
    font-size: 15px;
  }

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