/* Colorful Children's Landing Page Styles */

:root {
  /* Vibrant Color Palette */
  --primary-color: #FF6B9D;
  --primary-dark: #E84A7A;
  --primary-light: #FFB3C6;
  --secondary-color: #4ECDC4;
  --secondary-dark: #3AAFA9;
  --secondary-light: #7FE5DE;
  --accent-yellow: #FFE66D;
  --accent-green: #95E1D3;
  --accent-purple: #C7CEEA;
  --accent-orange: #FFA07A;
  --text-primary: #2D3436;
  --text-white: #FFFFFF;
  --background: #FFF9E6;
  --surface: #FFFFFF;
  --border-radius: 24px;
  --max-width: 1200px;
}

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

/* Base */
html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  font-family: 'Fredoka', 'Nunito', 'Comic Sans MS', 'Roboto', sans-serif;
  background: #f8f9fc;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Decorative Background Elements */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 230, 109, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--accent-yellow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  transition: transform 0.3s;
}

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

.logo-icon {
  font-size: 40px;
  animation: bounce 2s infinite;
}

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

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s;
  border-radius: 3px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.auth-buttons {
  display: flex;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '✨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 24px;
  transition: transform 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-primary:hover::before {
  transform: translate(-50%, -50%) scale(3);
  opacity: 0;
}

.btn-outline {
  background-color: white;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 50%, #FFE66D 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🌟';
  position: absolute;
  font-size: 100px;
  opacity: 0.1;
  animation: float 6s infinite;
  top: 10%;
  left: 10%;
}

.hero::after {
  content: '🎨';
  position: absolute;
  font-size: 80px;
  opacity: 0.1;
  animation: float 8s infinite;
  bottom: 10%;
  right: 10%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  animation: slideDown 1s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 24px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero .btn-outline {
  border-color: white;
  color: white;
}

.hero .btn-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* Section Titles */
.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-color);
  font-weight: 900;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--secondary-color));
  border-radius: 3px;
}

.section-subtitle {
  font-size: 20px;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 64px;
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: linear-gradient(to bottom, #FFF9E6, #FFFFFF);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s;
}

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

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--accent-yellow);
}

.feature-card:nth-child(1) { border-top: 4px solid var(--primary-color); }
.feature-card:nth-child(2) { border-top: 4px solid var(--secondary-color); }
.feature-card:nth-child(3) { border-top: 4px solid var(--accent-yellow); }
.feature-card:nth-child(4) { border-top: 4px solid var(--accent-green); }
.feature-card:nth-child(5) { border-top: 4px solid var(--accent-purple); }
.feature-card:nth-child(6) { border-top: 4px solid var(--accent-orange); }

.feature-icon {
  font-size: 80px;
  margin-bottom: 24px;
  display: inline-block;
  animation: wiggle 3s infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.feature-title {
  font-size: 26px;
  margin-bottom: 16px;
  color: var(--primary-color);
  font-weight: 800;
}

.feature-desc {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
}

/* Demo Section */
.demo {
  padding: 100px 0;
  background: linear-gradient(135deg, #E8F4FF 0%, #FFF9E6 100%);
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 64px;
  align-items: center;
}

.demo-image-carousel {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 3/2;
  border: 6px solid white;
}

.demo-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.demo-image.active {
  opacity: 1;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 107, 157, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

.dot:hover {
  transform: scale(1.2);
}

.demo-vocabulary h3 {
  font-size: 32px;
  margin-bottom: 32px;
  color: var(--primary-color);
}

.vocab-list {
  list-style: none;
}

.vocab-word {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
  border-left: 5px solid var(--accent-yellow);
  transition: all 0.3s;
}

.vocab-word:hover {
  transform: translateX(8px);
}

.word {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.play-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover {
  transform: scale(1.2) rotate(360deg);
}

.demo-cta {
  text-align: center;
  margin-top: 64px;
}

.demo-cta p {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: linear-gradient(to bottom, #FFF9E6, #E8F4FF);
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 64px;
}

.pricing-card {
  background: white;
  padding: 48px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  width: 100%;
  max-width: 380px;
  position: relative;
  transition: all 0.4s;
  border: 4px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-12px);
}

.pricing-card.featured {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  transform: scale(1.05);
  border-color: var(--accent-yellow);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-12px);
}

.featured-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-yellow);
  color: var(--text-primary);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

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

.pricing-tier {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 32px;
}

.pricing-price {
  margin-bottom: 40px;
}

.pricing-price .currency {
  font-size: 32px;
  vertical-align: top;
  font-weight: 700;
}

.pricing-price .amount {
  font-size: 72px;
  font-weight: 900;
  color: var(--primary-color);
}

.pricing-card.featured .pricing-price .amount {
  color: white;
}

.pricing-price .period {
  font-size: 18px;
  opacity: 0.8;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  position: relative;
  padding-left: 36px;
  font-size: 16px;
}

.pricing-features li::before {
  content: "✨";
  position: absolute;
  left: 0;
  font-size: 20px;
}

.pricing-card.featured .btn-primary {
  background: white;
  color: var(--primary-color);
}

.pricing-card.featured .btn-primary:hover {
  background: var(--accent-yellow);
  color: var(--text-primary);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-top: 12px;
}

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

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 16px;
}

.footer-links a:hover {
  color: var(--accent-yellow);
  transform: translateY(-2px);
}

.footer-copyright {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

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

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

  .demo-content {
    grid-template-columns: 1fr;
  }

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

  .nav {
    display: none;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

/* Fun Animations */
@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.rainbow-text {
  background: linear-gradient(90deg, #FF6B9D, #4ECDC4, #FFE66D, #FF6B9D);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 3s linear infinite;
}

@keyframes rainbow-flow {
  to { background-position: 200% center; }
}
