:root {
  --hero-bg: transparent;
  --hero-badge-bg: #f3d36b;
  --hero-badge-text: #5c3d2e;
  --hero-title-primary: #4a3728;
  --hero-title-accent: #8b7355;
  --hero-description: #6e6259;
  --hero-btn-primary-bg: #f5d76e;
  --hero-btn-primary-hover: #e8c95f;
  --hero-btn-primary-text: #5c3d2e;
  --hero-btn-secondary-bg: #f0d9c8;
  --hero-btn-secondary-hover: #e8cbb5;
  --hero-btn-secondary-text: #5c3d2e;
}

.home-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--site-header-height, 7rem));
  padding-top: var(--site-header-height, 7rem);
  background:
    radial-gradient(ellipse 70% 45% at 8% 12%, rgba(245, 215, 110, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 96% 8%, rgba(232, 196, 240, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 60% 38% at 90% 72%, rgba(245, 184, 154, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 6% 78%, rgba(186, 220, 196, 0.28) 0%, transparent 58%),
    linear-gradient(180deg, #fff6e8 0%, #f7e9f4 38%, #eef3ff 68%, #fff3e4 100%);
}

.home-page > :not(.home-page__decor):not(.home-nuti-intro) {
  position: relative;
  z-index: 1;
}

.home-page__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-page__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.home-page__blob--peach {
  top: 18%;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(245, 184, 154, 0.45);
}

.home-page__blob--gold {
  top: -7rem;
  left: 22%;
  width: 18rem;
  height: 18rem;
  background: rgba(245, 215, 110, 0.46);
}

.home-page__blob--lilac-top {
  top: -6rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  background: rgba(232, 196, 240, 0.4);
}

.home-page__blob--lilac {
  bottom: 8%;
  left: -7rem;
  width: 24rem;
  height: 24rem;
  background: rgba(186, 168, 230, 0.32);
}

.home-page__blob--mint {
  bottom: -4rem;
  right: 18%;
  width: 18rem;
  height: 18rem;
  background: rgba(168, 214, 186, 0.34);
}

.home-page__stars,
.home-page__dots {
  position: absolute;
  inset: 0;
}

.home-page__stars {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 1.4px, transparent 1.55px),
    radial-gradient(circle, rgba(245, 215, 110, 0.85) 1.2px, transparent 1.35px);
  background-size: 48px 48px, 72px 72px;
  background-position: 10px 8px, 28px 30px;
  opacity: 0.7;
}

.home-page__dots {
  background-image:
    radial-gradient(circle, rgba(139, 90, 43, 0.12) 1.1px, transparent 1.25px);
  background-size: 34px 34px;
  background-position: 0 0;
  opacity: 0.55;
}

.home-page__sparkle {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  background: #f5d76e;
  transform: rotate(45deg);
  border-radius: 0.08rem;
  box-shadow: 0 0 0.65rem rgba(245, 215, 110, 0.55);
  animation: home-sparkle 2.8s ease-in-out infinite;
}

.home-page__sparkle--1 {
  top: 12%;
  left: 8%;
}

.home-page__sparkle--2 {
  top: 28%;
  right: 10%;
  width: 0.5rem;
  height: 0.5rem;
  background: #ffffff;
  animation-delay: 0.6s;
}

.home-page__sparkle--3 {
  bottom: 22%;
  left: 14%;
  background: #e8c4f0;
  animation-delay: 1.1s;
}

.home-page__sparkle--4 {
  bottom: 12%;
  right: 16%;
  width: 0.55rem;
  height: 0.55rem;
  background: #f5b89a;
  animation-delay: 1.7s;
}

.home-page__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.home-page__cloud::before,
.home-page__cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.home-page__cloud--1 {
  top: 8%;
  right: 22%;
  width: 5.5rem;
  height: 1.45rem;
  opacity: 0.7;
}

.home-page__cloud--1::before {
  width: 2.2rem;
  height: 2.2rem;
  top: -1.15rem;
  left: 0.7rem;
}

.home-page__cloud--1::after {
  width: 2.8rem;
  height: 2.8rem;
  top: -1.55rem;
  left: 2.1rem;
}

.home-page__cloud--2 {
  top: 62%;
  left: 6%;
  width: 4.4rem;
  height: 1.2rem;
  opacity: 0.5;
}

.home-page__cloud--2::before {
  width: 1.8rem;
  height: 1.8rem;
  top: -0.95rem;
  left: 0.55rem;
}

.home-page__cloud--2::after {
  width: 2.3rem;
  height: 2.3rem;
  top: -1.25rem;
  left: 1.6rem;
}

@keyframes home-sparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(45deg) scale(0.85);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page__sparkle {
    animation: none;
  }
}

.hero {
  background-color: var(--hero-bg);
  padding: 2.5rem 0 4rem;
}

.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background-color: var(--hero-badge-bg);
  color: var(--hero-badge-text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  animation: hero-badge-bounce 2.2s ease-in-out infinite;
}

.hero-badge__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@keyframes hero-badge-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-title {
  margin: 1.25rem 0 1rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title__primary {
  display: inline;
  color: var(--hero-title-primary);
}

.hero-title__accent {
  display: inline;
  color: var(--hero-title-accent);
  font-style: italic;
  font-weight: 500;
}

.hero-description {
  max-width: 28rem;
  margin: 0 0 2rem;
  color: var(--hero-description);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.hero-btn--primary {
  background-color: var(--hero-btn-primary-bg);
  color: var(--hero-btn-primary-text);
}

.hero-btn--primary:hover,
.hero-btn--primary:focus-visible {
  background-color: var(--hero-btn-primary-hover);
  color: var(--hero-btn-primary-text);
  transform: translateY(-1px);
}

.hero-btn--secondary {
  background-color: var(--hero-btn-secondary-bg);
  color: var(--hero-btn-secondary-text);
}

.hero-btn--secondary:hover,
.hero-btn--secondary:focus-visible {
  background-color: var(--hero-btn-secondary-hover);
  color: var(--hero-btn-secondary-text);
  transform: translateY(-1px);
}

.hero__visual {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: home-hero-enter-left 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero__visual {
    animation: home-hero-enter-right 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  }
}

@keyframes home-hero-enter-left {
  from {
    opacity: 0;
    transform: translate3d(-28px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-hero-enter-right {
  from {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-slider {
  width: 100%;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(74, 55, 40, 0.12);
  background-color: #fff8ef;
}

.hero-slider__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 728 / 408;
}

.hero-slider__static {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-img-shimmer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f3ebe3 0%, #e8ddd4 100%);
}

.home-img-shimmer__shimmer {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    110deg,
    #ebe2da 8%,
    #f7f0ea 18%,
    #ebe2da 33%
  );
  background-size: 200% 100%;
  animation: home-img-shimmer 1.35s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.home-img-shimmer.is-loaded .home-img-shimmer__shimmer {
  opacity: 0;
}

.home-img-shimmer > img:not(.hero-slider__slide) {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.home-img-shimmer.is-loaded > img:not(.hero-slider__slide) {
  opacity: 1;
}

@keyframes home-img-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  z-index: 1;
}

.hero-slider__slide.is-active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slider__slide.is-exiting {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-slider__slide:not(.is-active):not(.is-exiting) {
  transform: translateX(100%);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-img-shimmer__shimmer {
    animation: none;
    background: #ebe2da;
  }

  .hero-slider__slide {
    transition: none;
  }

  .hero-slider__slide:not(.is-active) {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hero {
    padding: 2rem 0 3rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero-description {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-btn {
    flex: 1 1 auto;
    min-width: 10rem;
  }
}

@media (max-width: 575.98px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge {
    animation: none;
  }

  .hero__content,
  .hero__visual {
    animation: none;
  }

  .friends-card {
    transition: none;
  }

  .friends-card:hover {
    transform: none;
    box-shadow: none;
  }

  .learning-card {
    transition: none;
  }

  .learning-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Friends section */
.friends {
  background-color: transparent;
  padding: 3.5rem 0 5rem;
}

.friends__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.friends__title {
  margin: 0 0 1rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: #5c5a35;
  letter-spacing: -0.02em;
}

.friends__description {
  max-width: 42rem;
  margin: 0 auto 3rem;
  color: #8a7f72;
  font-size: 1.05rem;
  line-height: 1.75;
}

.friends__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.friends-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.75rem 2.25rem;
  border-radius: 2rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.friends-card:hover {
  transform: translate3d(0, -6px, 0) scale(1.03);
  box-shadow: 0 16px 40px rgba(74, 55, 40, 0.12);
}

.friends-card--love {
  background-color: #f8ede4;
}

.friends-card--growth {
  background-color: #f5d76e;
}

.friends-card--magic {
  background-color: #ebe4f5;
}

.friends-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.friends-card__icon svg,
.friends-card__icon-image {
  width: 1.35rem;
  height: 1.35rem;
}

.friends-card__icon--love {
  background-color: #e8a54b;
  color: #5c3d2e;
}

.friends-card__icon--growth {
  background-color: #5c3d2e;
  color: #ffffff;
}

.friends-card__icon--magic {
  background-color: #7b5ea8;
  color: #ffffff;
}

.friends-card__title {
  margin: 0 0 0.75rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #5c3d2e;
}

.friends-card__title--magic {
  color: #5c4a7a;
}

.friends-card__text {
  margin: 0;
  max-width: 16rem;
  color: #6e6259;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  .friends__grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin: 0 auto;
  }

  .friends {
    padding: 3rem 0 4rem;
  }
}

/* Learning section */
.learning {
  background-color: transparent;
  padding: 3.5rem 0 5rem;
}

.learning__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.learning__title {
  margin: 0 0 3rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: #5c5a35;
  letter-spacing: -0.02em;
}

.learning__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: left;
}

.learning-card {
  background-color: #ffffff;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(74, 55, 40, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.learning-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 24px 52px rgba(74, 55, 40, 0.16);
}

.learning-card__media {
  position: relative;
}

.learning-card__image {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.learning-card__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.learning-card__badge--ages {
  background-color: #6c6114;
}

.learning-card__badge--nutrition {
  background-color: #a06a45;
}

.learning-card__badge--wellness {
  background-color: #7b5ea8;
}

.learning-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.learning-card__title {
  margin: 0 0 0.65rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2d2a26;
}

.learning-card__text {
  margin: 0 0 1.15rem;
  color: #6e6259;
  font-size: 0.92rem;
  line-height: 1.65;
}

.learning-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5c3d2e;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.learning-card__link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.learning-card__link:hover,
.learning-card__link:focus-visible {
  color: #a06a45;
  gap: 0.55rem;
}

@media (max-width: 991.98px) {
  .learning__grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin: 0 auto;
  }

  .learning {
    padding: 3rem 0 4rem;
  }

  .learning__title {
    margin-bottom: 2rem;
  }
}

/* Expert insight section */
.expert {
  background-color: transparent;
  padding: 4rem 0 5rem;
}

.expert__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.expert-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 3.5rem;
  background-color: #ffffff;
  border-radius: 2.5rem;
  box-shadow: 0 16px 48px rgba(74, 55, 40, 0.1);
  overflow: hidden;
}

.expert-card__decor {
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background-color: #f3efff;
  pointer-events: none;
}

.expert-card__avatar {
  flex-shrink: 0;
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f5ebe3;
}

.expert-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.expert-card__content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.expert-card__label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9d8a7f;
}

.expert-card__quote {
  margin: 0 0 1rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
  color: #2d2a26;
}

.expert-card__text {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: #6e6259;
}

.expert-card__footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.expert-card__name {
  font-style: normal;
  font-size: 1rem;
  font-weight: 700;
  color: #a34e36;
}

.expert-card__role {
  font-size: 0.88rem;
  color: #9a9088;
}

@media (max-width: 767.98px) {
  .expert {
    padding: 3rem 0 4rem;
  }

  .expert-card {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .expert-card__avatar {
    width: 8rem;
    height: 8rem;
  }

  .expert-card__content {
    text-align: center;
  }

  .expert-card__footer {
    align-items: center;
  }
}

/* Homepage Nuti intro video */
.home-nuti-intro {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 900;
  width: clamp(7.5rem, 18vw, 12.5rem);
  max-width: 12.5rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  transform: translate3d(0, 105%, 0);
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.home-nuti-intro.is-ready {
  visibility: visible;
}

.home-nuti-intro.is-visible {
  opacity: 1;
  transform: translate3d(0, 6%, 0);
}

.home-nuti-intro.is-finished {
  opacity: 0;
  transform: translate3d(0, 20%, 0);
  transition:
    transform 0.55s ease,
    opacity 0.45s ease;
}

.home-nuti-intro__video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .home-nuti-intro {
    width: clamp(6.5rem, 30vw, 10rem);
    max-width: 10rem;
  }

  .home-nuti-intro.is-visible {
    transform: translate3d(0, 10%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-nuti-intro {
    display: none;
  }
}
