@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  /* Morandi Theme */
  --bg-color: #2b2d2f;
  --text-color: #e0e0e0;
  --text-muted: #95989a;
  --primary: #e6dfb8; 
  --secondary: #d3cba8;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --sand-glow: rgba(230, 223, 184, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients - Adapted to Morandi sand glow */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,223,184,0.15) 0%, rgba(230,223,184,0) 70%);
  top: -200px;
  left: -200px;
  filter: blur(100px);
  z-index: -1;
}

.bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(211,203,168,0.15) 0%, rgba(211,203,168,0) 70%);
  bottom: 10%;
  right: -100px;
  filter: blur(100px);
  z-index: -1;
}

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

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Sand Dispersion Effect (盲盒沙化) - Updated for readability */
@keyframes sandWind {
  0% {
    text-shadow: 0 0 5px rgba(230, 223, 184, 0.4), 
                 -5px -5px 10px rgba(230, 223, 184, 0.2), 
                 5px 5px 15px rgba(150, 150, 150, 0.2);
    transform: scale(1) translateX(0px);
  }
  50% {
    text-shadow: 0 0 10px rgba(230, 223, 184, 0.5), 
                 -10px -5px 15px rgba(230, 223, 184, 0.3), 
                 5px 10px 20px rgba(150, 150, 150, 0.3);
    transform: scale(1.01) translateX(-1px);
  }
  100% {
    text-shadow: 0 0 5px rgba(230, 223, 184, 0.4), 
                 -5px -5px 10px rgba(230, 223, 184, 0.2), 
                 5px 5px 15px rgba(150, 150, 150, 0.2);
    transform: scale(1) translateX(0px);
  }
}

.sand-effect {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary) !important;
  animation: sandWind 4s infinite alternate ease-in-out;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: inline-block;
  will-change: transform, text-shadow;
}

/* Hover state: Instant aggregation */
.sand-effect:hover, 
.pricing-card:hover .sand-effect,
.hero:hover .sand-effect {
  text-shadow: none;
  transform: scale(1.02) translateX(0);
  animation: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1c1e; /* dark text for bright yellow button */
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(230, 223, 184, 0.2);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(230, 223, 184, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(230, 223, 184, 0.1);
  color: var(--primary);
  box-shadow: none;
}

/* Header */
header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section - Split Layout */
.hero {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

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

.hero-content p {
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dynamic Card (Blindbox) */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.dynamic-box {
  width: 300px;
  height: 380px;
  background: linear-gradient(145deg, rgba(230,223,184,0.1), rgba(43,45,47,0.8));
  border: 1px solid var(--primary);
  border-radius: 30px;
  box-shadow: 0 0 40px rgba(230, 223, 184, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transform-style: preserve-3d;
  animation: floatBox 6s ease-in-out infinite;
  overflow: hidden;
}

.dynamic-box::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(transparent, transparent, transparent, var(--primary));
  animation: rotateLight 4s linear infinite;
  opacity: 0.3;
}

.dynamic-box::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-color);
  border-radius: 28px;
  z-index: 1;
}

.dynamic-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--primary);
}

.dynamic-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(230, 223, 184, 0.5));
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes floatBox {
  0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
  50% { transform: translateY(-20px) rotateX(10deg) rotateY(5deg); }
}

@keyframes rotateLight {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  background: var(--glass-hover);
}

/* Features Section */
.features {
  padding: 80px 0;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Media & AI Section */
.media-ai {
  padding: 80px 0;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.media-grid .glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: center;
}

.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(230, 223, 184, 0.1);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #1a1c1e;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 24px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
}

.pricing-features li {
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* FAQ Section */
.faq {
  padding: 80px 0;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Reviews Section */
.reviews {
  padding: 80px 0;
}

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

.review-card {
  font-style: italic;
}

.review-author {
  margin-top: 24px;
  font-weight: 600;
  font-style: normal;
  color: var(--primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  margin-top: 80px;
}

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

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Page specific styles */
.page-content {
  padding: 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 3rem;
  text-align: left;
}

.page-content h2 {
  font-size: 2rem;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 24px;
}

.page-content ul {
  color: var(--text-muted);
  margin-left: 24px;
  margin-bottom: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  header { flex-direction: column; gap: 20px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  
  .hero { grid-template-columns: 1fr; text-align: center; padding: 60px 0; }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .features, .media-ai, .pricing, .faq, .reviews { padding: 50px 0; }
  .media-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-5px); }
  .footer-nav { flex-direction: column; align-items: center; gap: 20px; }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 18px 24px;
    font-size: 1.1rem;
  }
  
  header .btn {
    width: auto;
    padding: 12px 24px;
  }
  
  .page-content { padding: 60px 0; }
  .page-content h1 { font-size: 2rem; text-align: center; }
  .page-content h2 { font-size: 1.5rem; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeInUp 0.8s ease backwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
