/* ===== Variables ===== */
:root {
  --color-primary: #5B21B6;
  --color-secondary: #7C3AED;
  --color-accent: #6366F1;
  --color-lilac: #A78BFA;
  --color-light: #EDE9FE;
  --color-light-blue: #E0E7FF;
  --color-dark: #1E1B4B;
  --color-text: #334155;
  --color-text-light: #64748B;
  --color-white: #FFFFFF;
  --gradient-main: linear-gradient(135deg, #6366F1, #7C3AED, #A78BFA);
  --gradient-btn: linear-gradient(135deg, #6366F1, #7C3AED);
  --gradient-avatar: linear-gradient(135deg, #6366F1, #A78BFA);
  --shadow-sm: 0 1px 3px rgba(91, 33, 182, 0.08);
  --shadow-md: 0 4px 20px rgba(91, 33, 182, 0.12);
  --shadow-lg: 0 10px 40px rgba(91, 33, 182, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 72px;
  --transition: 0.3s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-dark);
}

.logo__icon {
  font-size: 1.5rem;
}

.logo__accent {
  color: var(--color-secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-secondary);
}

.nav__link.active {
  background: var(--color-light);
}

.nav__link--cta {
  background: var(--gradient-btn);
  color: var(--color-white) !important;
  margin-left: 8px;
}

.nav__link--cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gradient-btn);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-lilac);
}

.btn--outline:hover {
  background: var(--color-light);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 60px) 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-light-blue) 0%, var(--color-white) 100%);
}

.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.blob--1 {
  width: 400px;
  height: 400px;
  background: var(--color-accent);
  top: -100px;
  right: -100px;
}

.blob--2 {
  width: 300px;
  height: 300px;
  background: var(--color-lilac);
  bottom: 0;
  left: -80px;
}

.blob--3 {
  width: 200px;
  height: 200px;
  background: var(--color-secondary);
  top: 50%;
  left: 40%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-light);
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.stat__number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__image {
  max-width: 360px;
  filter: drop-shadow(var(--shadow-lg));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section--light {
  background: var(--color-light);
}

.section--cta {
  background: var(--gradient-main);
  padding: 80px 0;
}

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

.section__tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-light-blue);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section--light .section__tag {
  background: var(--color-white);
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section--light .feature-card {
  background: var(--color-white);
}

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

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-white);
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-lilac), var(--color-secondary));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--gradient-btn);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light);
  border-radius: 50%;
}

.step__icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-secondary);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.step__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== Recipes ===== */
.recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recipe-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.recipe-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.recipe-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-card__image {
  transform: scale(1.05);
}

.recipe-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.recipe-card__body {
  padding: 20px;
}

.recipe-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.recipe-card__meta {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.recipe-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--color-light);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.testimonial__stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial__text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-avatar);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial__avatar--photo {
  object-fit: cover;
  border: 2px solid var(--color-lilac);
}

.testimonial__name {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ===== Download CTA ===== */
.download {
  text-align: center;
}

.download__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.download__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.download__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-white);
  backdrop-filter: blur(8px);
  transition: background var(--transition), transform var(--transition);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-badge__icon {
  width: 28px;
  height: 28px;
}

.store-badge__text {
  text-align: left;
}

.store-badge__label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.85;
}

.store-badge__store {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}

.logo--footer .logo__text {
  color: var(--color-white);
}

.footer__tagline {
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a:hover {
  color: var(--color-lilac);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.footer__social a:hover {
  background: var(--color-secondary);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

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

  .hero__inner {
    gap: 40px;
  }

  .hero__stats {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: calc(var(--header-height) + 24px) 24px 24px;
    transition: right var(--transition);
  }

  .nav-open .nav {
    right: 0;
  }

  .nav-open .nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link {
    padding: 12px 16px;
  }

  .nav__link--cta {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
  }

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

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

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__image {
    max-width: 280px;
  }

  .features,
  .steps,
  .recipes,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

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

  .footer__nav {
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

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

  .store-badge {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }
}
