/* ==========================================================================
   Fertility Friend Website - Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Light Mode */
  --color-primary: #8E4585;
  --color-primary-dark: #6d3466;
  --color-primary-light: #a85a9e;

  --bg-primary: #F2F2F7;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #000000;
  --text-secondary: #4a4a4a;
  --text-muted: #6b6b6b;
  --text-inverse: #ffffff;

  --border-color: #e0e0e0;
  --border-color-light: #f0f0f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Layout */
  --max-width-content: 800px;
  --max-width-wide: 1200px;
  --header-height: 64px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* --------------------------------------------------------------------------
   Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0d1117;
    --bg-surface: #161b22;
    --bg-elevated: #1c2128;

    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    --border-color: #30363d;
    --border-color-light: #21262d;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
  }
}

/* Manual dark mode override */
[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #1c2128;

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;

  --border-color: #30363d;
  --border-color-light: #21262d;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
}

/* Manual light mode override */
[data-theme="light"] {
  --bg-primary: #F2F2F7;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #000000;
  --text-secondary: #4a4a4a;
  --text-muted: #6b6b6b;

  --border-color: #e0e0e0;
  --border-color-light: #f0f0f0;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--color-primary-dark);
}

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

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.lead {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-content);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

/* Mobile-only line break */
.mobile-only {
  display: inline;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  text-decoration: none;
}

.header__brand:hover {
  color: var(--text-primary);
}

.brand-f {
  font-size: 1.3em;
  color: var(--color-primary);
  font-weight: 700;
}

.header__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav-link {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.header__nav-link--mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .header__nav-link--mobile-only {
    display: block;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--text-primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .theme-toggle .icon-sun {
    display: none;
  }
  .theme-toggle .icon-moon {
    display: block;
  }
  [data-theme="light"] .theme-toggle .icon-sun {
    display: block;
  }
  [data-theme="light"] .theme-toggle .icon-moon {
    display: none;
  }
}

/* Search link */
.search-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.search-link:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.search-link svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(142, 69, 133, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(142, 69, 133, 0.35);
  color: var(--text-inverse);
}

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

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

.btn--lg {
  padding: 16px 32px;
  font-size: var(--font-size-base);
  border-radius: var(--border-radius-lg);
}

/* App store badges */
.store-badge {
  height: 44px;
  width: auto;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.store-badge:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.store-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Hero Section (Homepage)
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-3xl) 0 var(--space-lg);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient orb */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(142, 69, 133, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Screenshot Carousel */
.hero__carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.carousel__track {
  position: relative;
  aspect-ratio: 1284 / 2778;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 25px 80px -20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: grab;
  user-select: none;
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.95) translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.carousel__slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

.carousel__slide.prev {
  opacity: 0;
  transform: scale(0.95) translateX(-50px);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

.carousel__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.carousel__arrow:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.carousel__arrow:active {
  transform: scale(0.95);
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel__dot:hover {
  opacity: 0.6;
}

.carousel__dot.active {
  opacity: 1;
  background: var(--color-primary);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Reviews Section - Horizontal Swipeable
   -------------------------------------------------------------------------- */
.reviews {
  padding: var(--space-xl) 0;
  background: var(--bg-primary);
}

.reviews__title {
  text-align: center;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.reviews__wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.reviews__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.reviews__arrow:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.reviews__arrow svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .reviews__arrow {
    display: flex;
  }
}

.reviews__ribbon {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  scrollbar-width: none;
}

.reviews__ribbon::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-card__stars {
  color: #FFB800;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

.review-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.review-card__text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.review-card__author {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat__value {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
  background-color: var(--bg-primary);
  padding: var(--space-xl) 0 var(--space-xl);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.features__title {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-3xl);
  letter-spacing: -0.01em;
}

.features__subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Bento Grid Layout for larger screens */
@media (min-width: 768px) {
  .features__grid--bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: var(--space-lg);
  }

  .features__grid--bento .feature-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .features__grid--bento .feature-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .features__grid--bento .feature-card:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .features__grid--bento .feature-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
  }

  .features__grid--bento .feature-card:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
}

@media (min-width: 1024px) {
  .features__grid--bento {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .features__grid--bento .feature-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .features__grid--bento .feature-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .features__grid--bento .feature-card:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .features__grid--bento .feature-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }

  .features__grid--bento .feature-card:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }
}

/* Wide card variant */
.feature-card--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .feature-card--wide {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
  }

  .feature-card--wide .feature-card__image {
    height: 200px;
  }

  .feature-card--wide .feature-card__content {
    padding: var(--space-md);
  }
}

/* Tall card variant */
.feature-card--tall .feature-card__image {
  height: 220px;
}

@media (min-width: 768px) {
  .feature-card--tall {
    display: flex;
    flex-direction: column;
  }

  .feature-card--tall .feature-card__image {
    height: 280px;
    flex-shrink: 0;
  }
}

.feature-card {
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--text-inverse);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.feature-card__description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--text-inverse);
  text-align: center;
  padding: var(--space-xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta__title {
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-3xl);
  position: relative;
}

.cta__subtitle {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--font-size-lg);
  position: relative;
}

.cta__free {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.cta .store-badges {
  justify-content: center;
  position: relative;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
}

.footer__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

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

.footer__copyright {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Content Pages
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  text-align: center;
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.content {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.content__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.content ul, .content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.content img {
  border-radius: var(--border-radius);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

/* Info cards for content pages */
.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
}

.info-card__title {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

.info-card__text {
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Screenshot Placeholder
   -------------------------------------------------------------------------- */
.screenshot-placeholder {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.screenshot-placeholder--phone {
  width: 280px;
  height: 560px;
}

.screenshot-placeholder--wide {
  width: 100%;
  height: 300px;
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: var(--space-2xl);
    align-items: start;
  }

  .hero__content {
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__list {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__phone {
    max-width: 320px;
  }

  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile Menu (below 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-color);
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav-link {
    font-size: var(--font-size-lg);
    padding: var(--space-sm) 0;
  }

  /* Mobile: Reduce hero padding and hide decorative orb */
  .hero {
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .hero::before {
    display: none;
  }

  /* Mobile: Smaller carousel */
  .carousel {
    max-width: 260px;
  }

  /* Mobile: Left-align FREE to match buttons */
  .hero__free {
    text-align: left;
  }

  /* Mobile: Reduce space between carousel and reviews */
  .reviews {
    padding-top: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animation delays for grid children */
.animate-stagger > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.animate-stagger > .animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.animate-stagger > .animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.animate-stagger > .animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.animate-stagger > .animate-on-scroll:nth-child(5) { transition-delay: 400ms; }
.animate-stagger > .animate-on-scroll:nth-child(6) { transition-delay: 500ms; }

/* Fade in from left */
.animate-on-scroll--left {
  opacity: 0;
  transform: translateX(-30px);
}

.animate-on-scroll--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.animate-on-scroll--right {
  opacity: 0;
  transform: translateX(30px);
}

.animate-on-scroll--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.animate-on-scroll--scale {
  opacity: 0;
  transform: scale(0.95);
}

.animate-on-scroll--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll--left,
  .animate-on-scroll--right,
  .animate-on-scroll--scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Section Dividers
   -------------------------------------------------------------------------- */
.section-divider {
  position: relative;
  height: 80px;
  margin-top: -40px;
  margin-bottom: -40px;
  pointer-events: none;
  z-index: 1;
}

.section-divider--wave {
  background: var(--bg-primary);
}

.section-divider--wave::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--bg-surface);
  clip-path: ellipse(60% 70% at 50% 100%);
}

.section-divider--angle {
  height: 60px;
  margin-top: -30px;
  margin-bottom: -30px;
  background: var(--color-primary);
}

.section-divider--angle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

/* --------------------------------------------------------------------------
   Menu Section (Footer Links Grid)
   -------------------------------------------------------------------------- */
.menu-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.menu-category h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-category li {
  margin-bottom: var(--space-sm);
}

.menu-category a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.menu-category a:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Feature Card with Image
   -------------------------------------------------------------------------- */
.feature-card--image {
  overflow: hidden;
}

.feature-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--space-sm);
}

.feature-card__link svg {
  width: 16px;
  height: 16px;
}

.feature-card__link:hover {
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   Hero List
   -------------------------------------------------------------------------- */
.hero__list {
  list-style: none;
  padding: 0;
  margin: 0 auto var(--space-lg);
  text-align: left;
  max-width: 400px;
}

.hero__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(142, 69, 133, 0.3);
}

.hero__free {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Download Buttons Row
   -------------------------------------------------------------------------- */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.download-buttons .store-badge {
  height: 40px;
}

/* Web App Button */
.btn--webapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: #000000;
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--border-radius);
  height: 40px;
  transition: background-color var(--transition-fast);
}

.btn--webapp:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

/* Dark mode: use border style to match store badges */
@media (prefers-color-scheme: dark) {
  .btn--webapp {
    background-color: transparent;
    border: 1px solid #a6a6a6;
    color: #ffffff;
  }

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

[data-theme="dark"] .btn--webapp {
  background-color: transparent;
  border: 1px solid #a6a6a6;
  color: #ffffff;
}

[data-theme="dark"] .btn--webapp:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

[data-theme="light"] .btn--webapp {
  background-color: #000000;
  border: none;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header with Login/Signup buttons
   -------------------------------------------------------------------------- */
.header__buttons {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

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

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

.btn--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .header__buttons {
    display: flex;
  }
}
