/* =============================================
   BabyBliss Landing Page Styles
   ============================================= */

/* CSS Variables / Design Tokens */
:root {
  --color-primary: #A68A6F;
  --color-primary-light: #C4A882;
  --color-primary-dark: #8B7259;
  --color-background: #FFFCF7;
  --color-card: #FFFFFF;
  --color-text-primary: #2D2D2D;
  --color-text-secondary: #6B6B6B;
  --color-text-muted: #9B9B9B;
  --color-border: #E8E0D8;
  --color-success: #7CB381;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);

  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--color-text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 252, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
}

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

.nav-cta {
  padding: 12px 24px;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.hamburger {
  display: none;
  padding: 8px;
  color: var(--color-text-primary);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
}

.mobile-menu a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu .btn {
  margin-top: 8px;
}

.mobile-menu.active {
  display: flex;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--color-background) 0%, white 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--color-card);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FFF9F0 0%, #FFFFFF 100%);
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mockup-header {
  text-align: center;
  padding: 20px 0;
}

.mockup-week {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.mockup-size {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.mockup-progress {
  background: var(--color-card);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 100px;
  transition: width 1s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.mockup-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.mockup-card svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* =============================================
   Features Section
   ============================================= */
.features {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--color-background);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* =============================================
   How It Works Section
   ============================================= */
.how-it-works {
  padding: 100px 0;
  background: var(--color-background);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  max-width: 240px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-content h3 {
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--color-border);
  margin-top: 27px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-border);
  border-top: 2px solid var(--color-border);
  transform: rotate(45deg);
}

/* =============================================
   Stats Section
   ============================================= */
.stats {
  padding: 80px 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq {
  padding: 100px 0;
  background: var(--color-background);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   Final CTA Section
   ============================================= */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  padding: 60px 0 40px;
  background: white;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  padding: 6px 0;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =============================================
   Responsive Styles
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-wrap: wrap;
    gap: 32px;
  }

  .step-connector {
    display: none;
  }

  .stats-grid {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 32px;
    padding: 8px;
  }

  .phone-screen {
    border-radius: 24px;
    padding: 16px;
    gap: 16px;
  }

  .mockup-header {
    padding: 12px 0;
  }

  .mockup-week {
    font-size: 1.25rem;
  }

  .features {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

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

  .feature-card {
    padding: 24px;
  }

  .how-it-works {
    padding: 60px 0;
  }

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

  .step {
    max-width: 100%;
  }

  .stats {
    padding: 60px 0;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .faq {
    padding: 60px 0;
  }

  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 20px 20px;
  }

  .final-cta {
    padding: 60px 0;
  }

  .footer {
    padding: 40px 0 32px;
  }

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

  .footer-brand {
    grid-column: span 1;
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 375px) {
  h1 {
    font-size: 1.625rem;
  }

  .btn {
    padding: 12px 20px;
  }

  .phone-mockup {
    width: 180px;
    height: 360px;
  }
}
