:root {
  scroll-behavior: smooth;
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.2, .9, .25, 1.15);
}

body.motion-site-ready #root {
  animation: site-enter 650ms var(--ease-out-expo) both;
}

@keyframes site-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-scroll-progress {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, #1f6038, #72a447, #ce6949);
  box-shadow: 0 1px 10px rgba(50, 118, 66, .3);
}

header {
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
}

a, button, input, select, textarea {
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 260ms var(--ease-out-expo),
    opacity 180ms ease, transform 260ms var(--ease-out-expo);
}

button:not(:disabled):hover,
a[role="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 59, 36, .14);
}

button:not(:disabled):active,
a[role="button"]:active { transform: translateY(0) scale(.97); }

nav a { position: relative; }
nav a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-out-expo);
}
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

input:focus, select:focus, textarea:focus {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(31, 96, 56, .11), 0 10px 28px rgba(35, 63, 43, .08);
}

/* Visible scroll reveal across the real page structure. */
.motion-section {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms var(--ease-out-expo), transform 720ms var(--ease-out-expo);
}
.motion-section.motion-visible { opacity: 1; transform: translateY(0); }

.motion-card {
  opacity: 0;
  transform: translateY(22px) scale(.975);
}
.motion-visible .motion-card,
.motion-card.motion-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: card-enter 580ms var(--ease-out-expo) backwards;
  animation-delay: calc(min(var(--motion-index, 0), 7) * 65ms);
}
@keyframes card-enter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Product interaction remains visible after the entrance animation. */
.curated-offers-grid > *,
main [class*="grid-cols"] > a,
main [class*="grid-cols"] > article,
main [class*="grid-cols"] > div[class*="rounded"] {
  transition: transform 360ms var(--ease-out-expo), box-shadow 360ms var(--ease-out-expo),
    border-color 220ms ease, background-color 220ms ease;
}
.curated-offers-grid > *:hover,
main [class*="grid-cols"] > a:hover,
main [class*="grid-cols"] > article:hover,
main [class*="grid-cols"] > div[class*="rounded"]:hover {
  transform: translateY(-8px) scale(1.008);
  border-color: rgba(31, 96, 56, .42);
  box-shadow: 0 24px 54px rgba(25, 49, 33, .15);
}
.curated-offers-grid img,
main [class*="grid-cols"] img {
  transition: transform 650ms var(--ease-out-expo), filter 350ms ease;
}
.curated-offers-grid > *:hover img,
main [class*="grid-cols"] > *:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

/* Soft moving light gives the opening area life without adding heavy video. */
main > section:first-child { position: relative; overflow: hidden; isolation: isolate; }
main > section:first-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  right: -14%;
  top: -32%;
  border-radius: 50%;
  opacity: .5;
  background: radial-gradient(circle, rgba(124, 164, 84, .22), rgba(206, 105, 73, .08) 45%, transparent 70%);
  filter: blur(8px);
  animation: ambient-drift 9s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(.96); }
  to { transform: translate3d(5%, 7%, 0) scale(1.08); }
}

@media (hover: none) {
  .curated-offers-grid > *:hover,
  main [class*="grid-cols"] > *:hover { transform: none; box-shadow: none; }
  .curated-offers-grid > *:hover img,
  main [class*="grid-cols"] > *:hover img { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .motion-section, .motion-card { opacity: 1; transform: none; }
  .site-scroll-progress { display: none; }
}
