/* ============================================================
   KitchUp — Home / Landing Page
   ============================================================ */

/* ----- Hero ----- */

#features,
#how-it-works,
#faq,
#download {
  scroll-margin-top: 7.5rem;
}

@media (min-width: 768px) {
  #features,
  #how-it-works,
  #faq,
  #download {
    scroll-margin-top: 8.5rem;
  }
}

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

@media (min-width: 768px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(212, 54, 27, 0.05), rgba(238, 83, 135, 0.05), transparent);
  pointer-events: none;
}

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

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

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Hero Badge */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  background-color: rgba(212, 54, 27, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Hero Title */

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-title .gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Hero Subtitle */

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.25rem; }
}

/* Hero CTA */

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
}

/* Hero Checks */

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-check {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-check svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* Hero Screenshots / Phone Mockup */

.hero-screenshots {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-carousel { width: 18rem; }
}

@media (min-width: 1024px) {
  .hero-carousel { width: 20rem; }
}

.hero-carousel::before {
  content: '';
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to bottom, rgba(212, 54, 27, 0.2), rgba(238, 83, 135, 0.2));
  border-radius: 3rem;
  filter: blur(2rem);
  transform: scale(1.1);
  z-index: -1;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 2.5rem;
  border: 8px solid rgba(23, 23, 23, 0.1);
  background-color: var(--card);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-carousel-slide.active {
  opacity: 1;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(23, 23, 23, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel-dot.active {
  background-color: var(--primary);
  width: 1.5rem;
  border-radius: 9999px;
}

/* ============================================================
   Feature Badges
   ============================================================ */

.feature-badges {
  padding: 4rem 0;
  background-color: rgba(245, 245, 245, 0.5);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--background);
  border: 1px solid rgba(229, 229, 229, 0.5);
  transition: all 0.3s ease;
}

.badge-card:hover {
  border-color: rgba(212, 54, 27, 0.3);
  box-shadow: var(--shadow-lg);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(212, 54, 27, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.badge-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.badge-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ============================================================
   Features Showcase (alternating)
   ============================================================ */

.features {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-title {
  color: var(--foreground);
}

.section-title .gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 768px) {
  .feature-block--reverse .feature-text {
    order: 2;
  }
  .feature-block--reverse .feature-image {
    order: 1;
  }
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 1rem;
  background-color: rgba(212, 54, 27, 0.1);
  color: var(--recipes);
}

.feature-label svg {
  display: none;
}

#feature-mealplan .feature-label {
  background-color: rgba(232, 97, 89, 0.1);
  color: var(--mealplan);
}

#feature-groceries .feature-label {
  background-color: rgba(46, 128, 71, 0.1);
  color: var(--groceries);
}

#feature-track .feature-label {
  background-color: rgba(54, 150, 98, 0.1);
  color: var(--track);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .feature-title { font-size: 1.875rem; }
}

.feature-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(23, 23, 23, 0.8);
  line-height: 1.5;
}

.feature-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

#feature-recipes .feature-list li svg { color: var(--recipes); }
#feature-mealplan .feature-list li svg { color: var(--mealplan); }
#feature-groceries .feature-list li svg { color: var(--groceries); }
#feature-track .feature-list li svg { color: var(--track); }

.feature-image {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
}

.feature-image--placeholder {
  background-color: rgba(212, 54, 27, 0.05);
  border: 1px solid rgba(212, 54, 27, 0.1);
  padding: 2rem;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image--placeholder .placeholder-inner {
  text-align: center;
}

.feature-image--placeholder .placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: rgba(212, 54, 27, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-image--placeholder .placeholder-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

#feature-mealplan .feature-image--placeholder {
  background-color: rgba(232, 97, 89, 0.05);
  border-color: rgba(232, 97, 89, 0.1);
}

#feature-mealplan .feature-image--placeholder .placeholder-icon {
  background-color: rgba(232, 97, 89, 0.1);
  color: var(--mealplan);
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: contain;
}

/* ============================================================
   How It Works
   ============================================================ */

.how-it-works {
  padding: 6rem 0;
  background-color: rgba(245, 245, 245, 0.3);
}

.how-it-works .section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 4rem;
}

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

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

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--background);
  border: 1px solid rgba(229, 229, 229, 0.5);
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(212, 54, 27, 0.3);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: rgba(212, 54, 27, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
  order: -1;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(212, 54, 27, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3rem;
    right: -1rem;
    width: 2rem;
    height: 0;
    border-top: 2px dashed var(--border);
  }
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.testimonials .section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.testimonials-marquee {
  position: relative;
}

.testimonials-marquee::before,
.testimonials-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}

.testimonials-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent);
}

.testimonials-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent);
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 320px;
  flex-shrink: 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--card);
  border: 1px solid rgba(229, 229, 229, 0.5);
  transition: border-color 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(212, 54, 27, 0.2);
}

.testimonial-stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 1rem;
  color: #facc15;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
}

.testimonial-quote {
  font-size: 0.875rem;
  color: rgba(23, 23, 23, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  color: var(--foreground);
  display: block;
}

.testimonial-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.testimonial-feature {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(212, 54, 27, 0.7);
  background-color: rgba(212, 54, 27, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  padding: 6rem 0;
  background-color: rgba(245, 245, 245, 0.3);
}

.faq .container {
  max-width: 48rem;
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(229, 229, 229, 0.5);
  background-color: var(--background);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: '';
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ============================================================
   Download CTA
   ============================================================ */

.download-cta {
  padding: 6rem 0;
}

.download-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, var(--primary), var(--primary), var(--secondary));
  padding: 3rem 2rem;
  text-align: center;
}

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

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.download-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.download-title {
  position: relative;
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .download-title { font-size: 2.25rem; }
}

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

.download-subtitle {
  position: relative;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.download-card .btn-white {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background-color: white;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.download-card .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  color: var(--foreground);
}

.download-card .btn-white .app-store-text {
  text-align: left;
}

.download-card .btn-white .app-store-label {
  display: block;
  font-size: 0.625rem;
  line-height: 1;
  opacity: 0.7;
  font-weight: 400;
}

.download-card .btn-white .app-store-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.download-platforms {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.download-dot {
  width: 1px;
  height: 1rem;
  background-color: rgba(255, 255, 255, 0.3);
}
