/* LittleHabits Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Colors */
  --primary-color: #FFAD7C; /* Soft Peach/Orange */
  --primary-dark: #E89260;
  --secondary-color: #4ECDC4; /* Teal */
  --text-dark: #2C3E50;
  --text-light: #5A6A7E;
  --off-white: #FDFBF7;
  --white: #FFFFFF;
  --bedtime-bg: #1A102E;
  --bedtime-card: #2D1B4E;
  --bedtime-text: #E0D6F0;
  --accent-pink: #FF6B6B;
  --accent-yellow: #FFE66D;

  /* Spacing */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 2rem;     /* 32px */
  --spacing-lg: 4rem;     /* 64px */
  --spacing-xl: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(44, 62, 80, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 16px 48px rgba(44, 62, 80, 0.12);
  --shadow-glow: 0 8px 32px rgba(255, 173, 124, 0.3);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: var(--spacing-sm); }
h3 { font-size: 1.5rem; margin-bottom: var(--spacing-xs); }
p { font-size: 1.125rem; color: var(--text-light); }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-padding {
  padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.text-highlight { color: var(--primary-color); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 173, 124, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-text {
  color: var(--primary-color);
  font-weight: 700;
  padding: 0;
}

.btn-text:hover { opacity: 0.8; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  display: none; /* Mobile first hidden */
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
}

.nav-link:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  overflow: hidden;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  max-width: 500px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.hero-image {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Floaters */
.floater {
  position: absolute;
  z-index: 0;
  opacity: 0.6;
}

.floater-1 { top: 10%; left: -5%; width: 100px; height: 100px; background: var(--accent-yellow); border-radius: 50%; filter: blur(40px); }
.floater-2 { bottom: 20%; right: -5%; width: 150px; height: 150px; background: var(--secondary-color); border-radius: 50%; filter: blur(60px); }

/* Trust Strip */
.trust-strip {
  background: var(--white);
  padding: var(--spacing-md) 0;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.badge {
  background: rgba(78, 205, 196, 0.1);
  color: #3AA9A0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Features grid */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-card {
  background: var(--off-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  transition: transform 0.3s;
  border: 1px solid rgba(0,0,0,0.03);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 173, 124, 0.15);
  color: var(--primary-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card h3 { font-size: 1.25rem; }
.feature-card p { font-size: 1rem; }

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  text-align: center;
}

.step-card {
  position: relative;
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(78, 205, 196, 0.15);
  line-height: 1;
  margin-bottom: -1rem;
  position: relative;
  z-index: 0;
}

.step-content {
  position: relative;
  z-index: 1;
}

/* Bedtime Mode */
.bedtime-section {
  background: linear-gradient(135deg, #1A102E 0%, #2D1B4E 100%);
  color: var(--bedtime-text);
  overflow: hidden;
}

.bedtime-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .bedtime-container {
    grid-template-columns: 1fr 1fr;
  }
}

.bedtime-text h2 { color: var(--white); }
.bedtime-text p { color: rgba(224, 214, 240, 0.8); }

.bedtime-features {
  margin-top: var(--spacing-md);
}

.bedtime-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.bedtime-icon {
  color: var(--secondary-color);
}

/* Pricing */
.pricing-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 900px;
  margin: var(--spacing-lg) auto 0;
}

@media (min-width: 768px) {
  .pricing-wrapper {
    flex-direction: row;
    align-items: stretch;
  }
}

.pricing-card {
  flex: 1;
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.pricing-card.premium {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.best-value {
  position: absolute;
  top: 12px;
  right: -30px;
  background: var(--primary-color);
  color: var(--white);
  padding: 4px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 800;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: var(--spacing-sm) 0;
}

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

.features-list {
  margin: var(--spacing-md) 0;
  flex-grow: 1;
}

.features-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.check { color: var(--secondary-color); font-weight: 800; }
.cross { color: #ccc; }

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: var(--spacing-lg) auto 0;
  display: grid;
  gap: var(--spacing-sm);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Contact */
.contact-section {
  background: var(--off-white);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

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

/* Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .section-padding { padding: var(--spacing-md) 0; }
  .btn { width: 100%; }
  
  .pricing-wrapper {
    flex-direction: column;
  }
}
