/* Sabi Quest Landing Page
   Color Palette from main app:
   - Lagos Lush: #00C896 (Primary)
   - Zaria Gold: #FFD166 (Secondary)
   - Niger Indigo: #4D5382 (Text)
   - Jos Clay: #EF476F (Accents)
   - Cloud Cream: #F7F9FC (Background)
*/

:root {
  --color-primary: #00C896;
  --color-primary-dark: #00A078;
  --color-primary-light: #5DEBC4;
  --color-secondary: #FFD166;
  --color-secondary-dark: #E6B84D;
  --color-text: #4D5382;
  --color-text-light: #7A7FA3;
  --color-accent: #EF476F;
  --color-background: #F7F9FC;
  --color-white: #FFFFFF;
  
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  --shadow-soft: 0 4px 20px rgba(77, 83, 130, 0.08);
  --shadow-medium: 0 8px 30px rgba(77, 83, 130, 0.12);
  --shadow-large: 0 12px 40px rgba(77, 83, 130, 0.15);
  --shadow-glow: 0 8px 30px rgba(0, 200, 150, 0.3);
  
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Layers */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8F5F1 0%, #F0FDF9 50%, #FFF9E6 100%);
  z-index: -3;
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300C896' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -2;
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.float-item {
  position: absolute;
  opacity: 0.15;
  color: var(--color-primary);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease-out;
}

.float-1 { top: 10%; left: 5%; animation-delay: 0s; color: var(--color-primary); }
.float-2 { top: 20%; right: 10%; animation-delay: 1s; color: var(--color-secondary-dark); }
.float-3 { top: 60%; left: 8%; animation-delay: 2s; color: var(--color-accent); }
.float-4 { top: 15%; left: 40%; animation-delay: 0.5s; color: var(--color-secondary-dark); }
.float-5 { top: 70%; right: 15%; animation-delay: 1.5s; color: var(--color-primary); }
.float-6 { top: 40%; right: 5%; animation-delay: 2.5s; color: var(--color-accent); }
.float-7 { top: 85%; left: 20%; animation-delay: 3s; color: var(--color-secondary-dark); }
.float-8 { top: 50%; left: 3%; animation-delay: 3.5s; color: var(--color-primary); }

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

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo Section */
.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
  animation: slideDown 0.6s ease-out;
}

.badge-icon {
  color: var(--color-primary);
}

.logo {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  animation: slideDown 0.6s ease-out 0.1s both;
}

.logo-sabi {
  color: var(--color-primary);
}

.logo-quest {
  color: var(--color-secondary-dark);
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-weight: 500;
  animation: slideDown 0.6s ease-out 0.2s both;
}

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

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

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

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 200, 150, 0.1), rgba(0, 200, 150, 0.05));
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 209, 102, 0.05));
  color: var(--color-secondary-dark);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.1), rgba(239, 71, 111, 0.05));
  color: var(--color-accent);
}

.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, rgba(77, 83, 130, 0.1), rgba(77, 83, 130, 0.05));
  color: var(--color-text);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Waitlist Section */
.waitlist-section {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-medium);
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out 0.7s both;
}

.waitlist-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.waitlist-form {
  max-width: 500px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.email-input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #E8EAF0;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.1);
}

.email-input::placeholder {
  color: var(--color-text-light);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-glow);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 200, 150, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.privacy-note svg {
  color: var(--color-primary);
}

/* Success Message */
.success-message {
  display: none;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.success-message h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--color-text-light);
}

/* Audience Section */
.audience-section {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out 0.9s both;
}

.audience-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.tag svg {
  color: var(--color-primary);
}

.tag:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: auto;
  animation: fadeIn 0.8s ease-out 1s both;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border-radius: 50%;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  color: var(--color-primary);
  box-shadow: var(--shadow-medium);
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.copyright svg {
  color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .logo {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

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

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

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

  .feature-card {
    padding: 1.25rem;
  }

  .input-group {
    flex-direction: column;
  }

  .submit-btn {
    justify-content: center;
    width: 100%;
  }

  .waitlist-section {
    padding: 2rem 1.5rem;
  }

  .float-item {
    opacity: 0.08;
  }

  .audience-tags {
    gap: 0.5rem;
  }

  .tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .logo {
    font-size: 2.5rem;
  }

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

  .coming-soon-badge {
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
  }
}
