/* ===== CSS Variables ===== */
:root {
  /* Colors - matching app theme */
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #D1FAE5;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --background: #FAFAFA;
  --card: #FFFFFF;
  --border: #E5E7EB;

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

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-xxxl: 48px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 24px;
}

/* ===== Reset ===== */
*, *::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(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

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

/* ===== Hero Section ===== */
.hero {
  padding: calc(64px + var(--space-xxxl)) 0 var(--space-xxxl);
  background: linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
}

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

.hero-text h1 {
  margin-bottom: var(--space-xl);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xxl);
  max-width: 480px;
}

.store-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.store-btn img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.store-btn:hover img {
  transform: scale(1.05);
}

.coming-soon-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: var(--text);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-mockup img {
  border-radius: 28px;
  width: 100%;
}

/* ===== Section Styles ===== */
section {
  padding: var(--space-xxxl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xxxl);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ===== Problem/Solution Section ===== */
.problem-solution {
  background-color: var(--card);
}

.problem-solution .section-header {
  margin-bottom: 0;
}

/* ===== Features Section ===== */
.features {
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

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

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xxl);
}

.step {
  text-align: center;
}

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

.step h3 {
  margin-bottom: var(--space-sm);
}

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

/* ===== Screenshot Gallery Section ===== */
.screenshot-gallery {
  background-color: var(--background);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  justify-items: center;
}

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

.gallery-item .phone-mockup {
  width: 200px;
  margin-bottom: var(--space-lg);
  transition: transform 0.3s ease;
}

.gallery-item:hover .phone-mockup {
  transform: translateY(-8px);
}

.gallery-caption {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== Download CTA Section ===== */
.download-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

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

.cta-content h2 {
  color: white;
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.cta-content .store-buttons {
  justify-content: center;
}

.cta-content .coming-soon-note {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--text);
  color: white;
  padding: var(--space-xxxl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xxl);
}

.footer-brand .logo-text {
  color: white;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-item .phone-mockup {
    width: 180px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .store-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .gallery-item .phone-mockup {
    width: 150px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  h1 {
    font-size: 2rem;
  }

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

  .store-btn img {
    height: 40px;
  }
}
