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

body {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: hsl(var(--foreground));
  line-height: 1.2;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Gradient utilities */
.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-cta {
  background: var(--gradient-cta);
}

/* Shadow utilities */
.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-hero {
  box-shadow: var(--shadow-hero);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: hsla(var(--card) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.75rem 0;
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.navbar-logo img {
  height: 2.25rem;
  width: auto;
}

.navbar-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
}

.navbar-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

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

.navbar-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.navbar-links a.active {
  color: hsl(var(--primary));
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 5rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--card));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-soft);
}

.rating-badge .stars {
  display: flex;
  gap: 0.125rem;
}

.rating-badge .stars svg {
  width: 1rem;
  height: 1rem;
  fill: hsl(var(--accent));
  color: hsl(var(--accent));
}

.rating-badge .rating {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.rating-badge .reviews {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  color: hsl(var(--foreground));
  margin: 0;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, hsl(142, 64%, 38%), hsl(85, 60%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  max-width: 28rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-badges a {
  display: block;
  transition: opacity 0.3s ease;
}

.store-badges a:hover {
  opacity: 0.8;
}

.store-badges img {
  height: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats .stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* iPhone Mockups */
.hero-mockups {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .hero-mockups {
    gap: 1rem;
  }
}

.iphone-mockup {
  position: relative;
  border: 6px solid hsla(var(--foreground) / 0.9);
  background-color: hsla(var(--foreground) / 0.9);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.iphone-mockup .notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 0.875rem;
  background-color: hsla(var(--foreground) / 0.9);
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  z-index: 10;
}

.iphone-mockup .screen {
  border-radius: 1.5rem;
  overflow: hidden;
}

.iphone-mockup .screen img {
  width: 100%;
  height: auto;
  display: block;
}

.iphone-mockup.lift {
  margin-top: -2rem;
}

.iphone-mockup-small {
  width: 28%;
}

.iphone-mockup-medium {
  width: 34%;
}

.iphone-mockup-large {
  width: 28%;
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-title .gradient-text {
  background: linear-gradient(135deg, hsl(142, 64%, 38%), hsl(85, 60%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.feature-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin: 0;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.step-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hero);
  color: hsl(var(--primary-foreground));
}

.step-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.step-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.step-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.step-item p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  margin: 0;
}

/* Reviews Section */
.reviews-section {
  background-color: hsl(var(--secondary));
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.review-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-stars {
  display: flex;
  gap: 0.125rem;
}

.review-stars svg {
  width: 1rem;
  height: 1rem;
  fill: hsl(var(--accent));
  color: hsl(var(--accent));
}

.review-text {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  line-height: 1.75;
  margin: 0;
}

.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* CTA Section */
.cta-section {
  background-color: hsl(var(--background));
}

.cta-card {
  background: var(--gradient-cta);
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-hero);
  max-width: 56rem;
  margin: 0 auto;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 768px) {
  .cta-card {
    padding: 4rem;
  }
}

.cta-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-card h2 {
    font-size: 3rem;
  }
}

.cta-card p {
  font-size: 1.125rem;
  color: hsla(var(--primary-foreground) / 0.9);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

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

/* Footer */
footer {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0;
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.footer-logo img {
  height: 2rem;
  width: auto;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: hsl(var(--foreground));
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-bottom a {
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .hero-mockups {
    flex-direction: row;
  }

  .iphone-mockup-small,
  .iphone-mockup-medium,
  .iphone-mockup-large {
    width: 30%;
  }

  .iphone-mockup.lift {
    margin-top: 0;
  }
}

/* Animations (fade in on scroll) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
