/* Mobile-first approach starting from 390px (iPhone 13) */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  background-color: #faf4eb;
  color: #1b2d3c;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Added header with logo and animations */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 244, 235, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(27, 45, 60, 0.08);
  animation: slideDown 0.6s ease-out;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  animation: logoFloat 3s ease-in-out infinite;
}

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

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #1b2d3c;
  letter-spacing: -0.5px;
}

/* Hero Section with mobile-first design and animations */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(180deg, #faf4eb 0%, #f5ede0 100%);
  margin-top: 72px;
}

.hero-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8b9daf;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1b2d3c;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
  font-size: 16px;
  color: #4a5f73;
  margin-bottom: 32px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 20px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Added shadows and smooth transitions */
.email-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5d5c3;
  border-radius: 50px;
  font-size: 16px;
  background: white;
  color: #1b2d3c;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(27, 45, 60, 0.06);
}

.email-input:focus {
  outline: none;
  border-color: #1b2d3c;
  box-shadow: 0 4px 16px rgba(27, 45, 60, 0.12);
  transform: translateY(-2px);
}

.cta-button {
  width: 100%;
  padding: 16px 32px;
  background: #1b2d3c;
  color: #faf4eb;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.2);
}

.cta-button:hover {
  background: #2a3d4f;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(27, 45, 60, 0.3);
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.2);
}

.cta-button.secondary {
  background: transparent;
  color: #1b2d3c;
  border: 2px solid #1b2d3c;
  margin-top: 32px;
  box-shadow: 0 2px 8px rgba(27, 45, 60, 0.1);
}

.cta-button.secondary:hover {
  background: #1b2d3c;
  color: #faf4eb;
  box-shadow: 0 6px 16px rgba(27, 45, 60, 0.25);
}

.social-proof {
  font-size: 14px;
  color: #8b9daf;
  animation: fadeInUp 0.8s ease-out 1s both;
}

/* Problem Section */
.problem {
  padding: 60px 20px;
  text-align: center;
  background: #f5ede0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1b2d3c;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section-text {
  font-size: 16px;
  color: #4a5f73;
  margin-bottom: 20px;
  line-height: 1.7;
}

.section-text-secondary {
  font-size: 16px;
  color: #6b7f93;
  margin-bottom: 32px;
  line-height: 1.7;
}

.tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Added hover animations and shadows to tags */
.tag {
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  font-size: 13px;
  color: #4a5f73;
  border: 1px solid #e5d5c3;
  box-shadow: 0 2px 6px rgba(27, 45, 60, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(27, 45, 60, 0.12);
  border-color: #1b2d3c;
}

/* Insight Section */
.insight {
  padding: 60px 20px;
  text-align: center;
  background: #faf4eb;
}

.insight-text {
  font-size: 18px;
  color: #4a5f73;
  margin-bottom: 32px;
  line-height: 1.8;
}

.insight-text p {
  margin-bottom: 8px;
}

.insight-highlight {
  font-size: 24px;
  font-weight: 600;
  color: #1b2d3c;
  font-style: italic;
}

/* How It Works Section */
.how-it-works {
  padding: 60px 20px;
  background: #f5ede0;
}

.how-it-works .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.step:nth-child(1) {
  animation-delay: 0.1s;
}
.step:nth-child(2) {
  animation-delay: 0.2s;
}
.step:nth-child(3) {
  animation-delay: 0.3s;
}
.step:nth-child(4) {
  animation-delay: 0.4s;
}

/* Added shadow and hover effect to step numbers */
.step-number {
  width: 56px;
  height: 56px;
  background: #1b2d3c;
  color: #faf4eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(27, 45, 60, 0.3);
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1b2d3c;
}

.step-description {
  font-size: 14px;
  color: #6b7f93;
}

/* Features Detailed Section */
.features-detailed {
  padding: 60px 20px;
  background: #faf4eb;
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: #6b7f93;
  margin-bottom: 40px;
  line-height: 1.7;
}

.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

/* Enhanced card shadows and hover animations */
.feature-card {
  background: white;
  padding: 28px;
  border-radius: 20px;
  text-align: left;
  border: 1px solid #e5d5c3;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.08);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(27, 45, 60, 0.15);
  border-color: #1b2d3c;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1b2d3c;
}

.feature-text {
  font-size: 14px;
  color: #6b7f93;
  line-height: 1.6;
}

/* Features Summary Section */
.features-summary {
  padding: 60px 20px;
  background: #f5ede0;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(27, 45, 60, 0.06);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(27, 45, 60, 0.12);
}

.feature-emoji {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-emoji {
  transform: scale(1.15);
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1b2d3c;
}

.feature-item p {
  font-size: 13px;
  color: #6b7f93;
  line-height: 1.5;
}

/* Social Proof Section */
.social-proof-section {
  padding: 60px 20px;
  background: #faf4eb;
  text-align: center;
}

.stat-highlight {
  margin: 32px 0;
}

.stat-number {
  font-size: 56px;
  font-weight: 700;
  color: #1b2d3c;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(27, 45, 60, 0.1);
}

.stat-text {
  font-size: 16px;
  color: #6b7f93;
  line-height: 1.7;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 32px;
}

/* Enhanced testimonial cards with shadows */
.testimonial {
  background: white;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e5d5c3;
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(27, 45, 60, 0.15);
}

.testimonial-text {
  font-size: 16px;
  color: #4a5f73;
  font-style: italic;
  line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
  padding: 60px 20px;
  background: linear-gradient(180deg, #f5ede0 0%, #faf4eb 100%);
  text-align: center;
}

/* Footer */
.footer {
  padding: 48px 20px;
  background: #1b2d3c;
  color: #faf4eb;
  text-align: center;
}

.footer-tagline {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: #8b9daf;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: #faf4eb;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #e5d5c3;
  transform: translateY(-2px);
}

/* Enhanced modal with better animations and shadows */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 45, 60, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

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

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #faf4eb;
  padding: 32px 24px;
  border-radius: 24px;
  max-width: 90%;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(27, 45, 60, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: 300;
  color: #8b9daf;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: #1b2d3c;
  background: rgba(27, 45, 60, 0.1);
  transform: rotate(90deg);
}

.quiz-step {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  font-size: 24px;
  color: #1b2d3c;
  margin-bottom: 12px;
}

.quiz-step p {
  font-size: 15px;
  color: #6b7f93;
  margin-bottom: 20px;
  line-height: 1.6;
}

.bonus-text {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 14px;
  border-radius: 12px;
  color: #2e7d32;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* Enhanced quiz options with shadows and animations */
.quiz-option {
  display: flex;
  align-items: center;
  padding: 14px;
  background: white;
  border: 2px solid #e5d5c3;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(27, 45, 60, 0.06);
}

.quiz-option:hover {
  border-color: #1b2d3c;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.12);
}

.quiz-option input {
  margin-right: 12px;
  cursor: pointer;
}

.quiz-option span {
  font-size: 15px;
  color: #1b2d3c;
}

.quiz-button {
  width: 100%;
  padding: 16px;
  background: #1b2d3c;
  color: #faf4eb;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.2);
}

.quiz-button:hover {
  background: #2a3d4f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 45, 60, 0.3);
}

.quiz-button:active {
  transform: translateY(0);
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-input {
  padding: 14px;
  border: 2px solid #e5d5c3;
  border-radius: 12px;
  font-size: 15px;
  background: white;
  color: #1b2d3c;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(27, 45, 60, 0.06);
}

.quiz-input:focus {
  outline: none;
  border-color: #1b2d3c;
  box-shadow: 0 4px 12px rgba(27, 45, 60, 0.12);
}

.success-message {
  font-size: 15px;
  color: #6b7f93;
  margin-top: 12px;
}

/* Tablet breakpoint (768px+) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .logo-text {
    font-size: 28px;
  }

  .hero-title {
    font-size: 52px;
  }

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

  .waitlist-form {
    flex-direction: row;
    max-width: 500px;
  }

  .email-input {
    flex: 1;
    min-width: 250px;
  }

  .cta-button {
    width: auto;
  }

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

  .section-text {
    font-size: 18px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .testimonials {
    flex-direction: row;
    gap: 24px;
  }

  .modal-content {
    max-width: 600px;
    padding: 48px;
  }
}

/* Desktop breakpoint (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-description {
    font-size: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .problem,
  .insight,
  .how-it-works,
  .features-detailed,
  .features-summary,
  .social-proof-section,
  .final-cta {
    padding: 120px 20px;
  }

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

  .section-text {
    font-size: 20px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }

  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .feature-card {
    padding: 40px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .stat-number {
    font-size: 72px;
  }

  .testimonials {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer {
    padding: 60px 20px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Intersection Observer animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
