/* Home page */

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 45%, var(--green-800) 100%);
  color: #fff; border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.hero__glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.hero__glow::before, .hero__glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero__glow::before { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; right: 2%; top: 8%; background: radial-gradient(closest-side, rgba(224, 135, 163, .30), transparent); }
.hero__glow::after { width: 45vw; height: 45vw; max-width: 620px; max-height: 620px; left: 0; bottom: 0; background: radial-gradient(closest-side, rgba(61, 141, 107, .45), transparent); animation-delay: -6s; }
@keyframes hero-drift { to { transform: translate3d(-4%, 6%, 0) scale(1.08); } }

.hero__inner { display: grid; gap: var(--s-7); align-items: center; padding-block: var(--s-7) var(--s-9); }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: min(78vh, 720px); padding-block: var(--s-8) var(--s-9); } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); width: fit-content;
  padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-200);
}
.hero__eyebrow svg { width: 16px; height: 16px; }
.hero__title { margin-top: var(--s-5); color: #fff; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.hero__title em {
  font-style: normal; color: var(--pink-400); white-space: nowrap;
  background: linear-gradient(transparent 82%, rgba(224, 135, 163, .28) 82%);
}
.hero__text { margin-top: var(--s-5); max-width: 52ch; font-size: var(--fs-md); line-height: 1.7; color: var(--green-200); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__actions .btn { min-height: 54px; padding-inline: var(--s-6); }

.hero__stats { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); margin: var(--s-7) 0 0; padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__stats > div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: var(--fs-sm); color: var(--green-200); }
.hero__stats dd { margin: 0; font-family: var(--font-head); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hero__stats .hero__badge { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(224, 135, 163, .16); color: var(--pink-200); font-size: var(--fs-sm); font-weight: 600; }
.hero__badge svg { width: 18px; height: 18px; }

/* Fanned product cards */
.hero__fan { position: relative; height: clamp(300px, 62vw, 500px); --fan: 0; --spread: 0; }
.hero__fan.is-ready { --fan: 1; }
.hero__card {
  --o: calc(var(--i) - 2);                 /* -2 … 2: position from the centre card */
  position: absolute; left: 50%; bottom: 6%; width: clamp(130px, 34%, 230px); aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
  transform-origin: 50% 120%;
  transform:
    translateX(-50%)
    translateX(calc(var(--o) * (52% + var(--spread) * var(--spread-gain, 14%)) * var(--fan)))
    rotate(calc(var(--o) * (7deg + var(--spread) * 3deg) * var(--fan)));
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
  transition-delay: calc((2 - var(--i)) * -40ms + 200ms);
  z-index: calc(10 - (var(--i) - 2) * (var(--i) - 2));
}
.hero__card img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.hero__card span { padding: 8px 12px; font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--green-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__fan.is-ready .hero__card { transition-delay: 0s; transition-duration: .5s, .3s; }
.hero__fan.is-ready .hero__card:hover { transform: translateX(-50%) translateX(calc(var(--o) * (52% + var(--spread) * var(--spread-gain, 14%)))) rotate(calc(var(--o) * (7deg + var(--spread) * 3deg))) translateY(-18px); z-index: 20; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .6); }
@media (max-width: 999px) { .hero__card { width: clamp(110px, 30%, 200px); } }
@media (max-width: 600px) {
  .hero__inner { gap: var(--s-5); }
  .hero__fan { height: 230px; }
  .hero__card { width: 27%; border-radius: 12px; --spread-gain: 0%; }
  .hero__card span { font-size: 10px; padding: 6px 8px; }
}

.hero__scroll { position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%); display: none; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .35); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pink-400); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1000px) { .hero__scroll { display: block; } }

/* =========================================================
   Ticker
   ========================================================= */
.ticker { overflow: hidden; padding-block: var(--s-5); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { list-style: none; display: flex; flex: none; }
.ticker li { display: flex; align-items: center; gap: var(--s-5); padding-right: var(--s-5); font-family: var(--font-head); font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 600; color: var(--green-900); white-space: nowrap; }
.ticker li::after { content: ""; width: 10px; height: 10px; border: 2px solid var(--pink-400); transform: rotate(45deg); border-radius: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   What we sell — product groups
   ========================================================= */
.offerings { padding-top: var(--s-7); }
.groups { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.group {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3); overflow: hidden;
  padding: var(--s-6); border-radius: var(--radius-lg);
  transition: box-shadow .35s var(--ease);
}
.group:hover { box-shadow: var(--shadow-lg); }
.group--npk { background: var(--green-900); color: #fff; }
.group--micro { background: var(--pink-100); color: var(--ink); }
.group--organic { background: #ece5d6; color: var(--ink); }
.group__count { width: fit-content; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; background: rgba(255, 255, 255, .7); color: var(--green-900); }
.group--npk .group__count { background: rgba(255, 255, 255, .1); color: var(--pink-200); }
.group__title { font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; color: var(--green-900); }
.group--npk .group__title { color: #fff; }
.group__text { line-height: 1.65; opacity: .85; }
.group__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-3); }
.group__chips span { padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 500; background: rgba(255, 255, 255, .7); color: var(--green-900); }
.group--npk .group__chips span { background: rgba(255, 255, 255, .1); color: #fff; }
.group__chips .group__more { font-weight: 700; }
.group__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: auto;
  padding: 10px 18px; border-radius: var(--radius-pill); background: #fff; color: var(--green-900);
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow);
}
.group__link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.group:hover .group__link svg { transform: translateX(3px); }

/* =========================================================
   Crops
   ========================================================= */
.crops__grid { display: grid; gap: var(--s-6); }
.crops__head { display: grid; gap: var(--s-3); align-content: start; }
.crops__head h2 { font-size: var(--fs-xl); }
.crops__head p { color: var(--muted); max-width: 42ch; }
@media (min-width: 1000px) {
  .crops__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); }
  .crops__head { position: sticky; top: 120px; }
}
.crops__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 720px) { .crops__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.crop { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s var(--ease); }
.crop:hover { border-color: var(--green-200); box-shadow: var(--shadow); }
.crop__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-2); border-radius: 16px; background: var(--green-100); color: var(--green-700); transition: background-color .25s, color .25s; }
.crop:hover .crop__icon { background: var(--green-900); color: var(--pink-200); }
.crop__icon svg { width: 26px; height: 26px; }
.crop__title { font-family: var(--font-head); font-weight: 600; color: var(--green-900); }
.crop__examples { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
@media (max-width: 480px) { .crop { padding: var(--s-4); } .crop__examples { font-size: var(--fs-xs); } }

/* =========================================================
   Spotlight
   ========================================================= */
.spotlight { padding-block: var(--s-8); }
.spotlight__inner {
  display: grid; gap: var(--s-6); align-items: center; overflow: hidden;
  padding: var(--s-6) var(--s-5); border-radius: clamp(24px, 3vw, 36px);
  background: radial-gradient(120% 120% at 0% 0%, var(--green-700), var(--green-950) 70%); color: #fff;
}
@media (min-width: 960px) { .spotlight__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); padding: var(--s-8); } }
.spotlight__media { position: relative; display: grid; place-items: center; }
.spotlight__ring { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 135, 163, .35), transparent 70%); }
.spotlight__ring::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spotlight__media img { position: relative; width: min(100%, 380px); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.spotlight__copy { display: grid; gap: var(--s-4); justify-items: start; }
.spotlight__copy .eyebrow { color: var(--pink-200); }
.spotlight__copy h2 { color: #fff; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.02em; }
.spotlight__copy h2 span { color: var(--pink-400); }
.spotlight__copy > p { color: var(--green-200); line-height: 1.7; max-width: 52ch; }
.spotlight__npk { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.spotlight__npk span { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; }
.spotlight__npk b { font-size: var(--fs-xs); font-weight: 600; color: var(--pink-200); }
.spotlight__npk .is-me { font-size: var(--fs-sm); font-weight: 600; }
.spotlight__points { list-style: none; display: grid; gap: var(--s-2); }
.spotlight__points li { display: flex; align-items: center; gap: var(--s-2); }
.spotlight__points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--pink-500); color: #fff; }

/* =========================================================
   Product rail
   ========================================================= */
.rail { padding-top: var(--s-6); overflow: hidden; }
.section__head--row > .rail__nav { display: flex; align-items: center; gap: var(--s-2); }
.rail__btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--green-900); transition: background-color .2s, color .2s, border-color .2s, opacity .2s; }
.rail__btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.rail__btn:disabled { opacity: .35; pointer-events: none; }
.rail__btn svg { width: 20px; height: 20px; }
.rail__btn[data-rail="-1"] svg { transform: rotate(180deg); }
.rail__nav .link-arrow { margin-left: var(--s-3); }
@media (min-width: 768px) { .rail__btn { display: grid; } }
.rail__track {
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 62vw, 270px); gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 4px var(--edge) var(--s-5);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track .pcat { scroll-snap-align: start; }

/* =========================================================
   Why us
   ========================================================= */
.why__list { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .why__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why__list { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.why__item { padding: var(--s-6) var(--s-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.why__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-4); border-radius: 16px; background: var(--pink-100); color: var(--pink-600); }
.why__item:nth-child(even) .why__icon { background: var(--green-100); color: var(--green-700); }
.why__icon svg { width: 26px; height: 26px; }
.why__item h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.why__item p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; }

/* =========================================================
   Steps
   ========================================================= */
.steps__list { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); position: relative; }
  .steps__list::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; border-top: 2px dashed var(--line-strong); }
}
.step { position: relative; display: grid; gap: var(--s-2); justify-items: start; }
@media (min-width: 900px) { .step { justify-items: center; text-align: center; } }
.step__num { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s-3); border-radius: 50%; background: var(--bg); border: 2px solid var(--pink-400); color: var(--pink-600); font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; position: relative; z-index: 1; }
.step h3 { font-size: var(--fs-md); }
.step p { color: var(--muted); max-width: 34ch; }
.steps__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-7); }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
  .hero__glow::before, .hero__glow::after, .spotlight__ring::after { animation: none; }
}
