:root {
  --color-primary: #16a34a;
  --color-primary-soft: #dcfce7;
  --color-primary-dark: #15803d;
  --color-bg: #f9fafb;
  --color-card-bg: #ffffff;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.04);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.24s ease-out;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #ecfdf3 0, #f9fafb 42%, #f3f4f6 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

/* subtle global glow */
body::before {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 60%);
  top: -140px;
  right: -180px;
  pointer-events: none;
  filter: blur(4px);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Navbar */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(249, 250, 251, 0.88);
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* subtle sheen on header */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-30%);
  animation: headerSheen 4s ease-in-out infinite 1.5s;
}

@keyframes headerSheen {
  0% {
    opacity: 0;
    transform: translateX(-40%);
  }
  15% {
    opacity: 1;
    transform: translateX(-5%);
  }
  40% {
    opacity: 0;
    transform: translateX(40%);
  }
  100% {
    opacity: 0;
    transform: translateX(40%);
  }
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: conic-gradient(from 180deg, #22c55e, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f9fafb;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.02rem;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  position: relative;
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #22c55e);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-text);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-med), color var(--transition-med),
              box-shadow var(--transition-med), transform var(--transition-fast),
              border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, #16a34a, #22c55e);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(22, 163, 74, 0.45);
}

.btn-outline {
  background: #ffffff;
  border-color: #d1d5db;
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: #16a34a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(209, 213, 219, 0.7);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.03);
}

.btn-icon {
  font-size: 1rem;
}

/* Hero */

.hero {
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.7rem 0.2rem 0.3rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.5);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  width: fit-content;
}

.eyebrow-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #bbf7d0, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecfdf3;
  font-size: 0.8rem;
  box-shadow: 0 5px 16px rgba(22, 163, 74, 0.6);
}

.eyebrow-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(3rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #16a34a, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas .btn {
  padding-inline: 1.25rem;
}

.hero-stats-card {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-subtle);
  font-size: 0.86rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-stats-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.hero-stats-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-stats-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stats-number {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: var(--color-primary-dark);
}

.hero-stats-number:hover {
  text-decoration: underline;
}

.hero-stats-link {
  font-weight: 500;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.hero-stats-link span {
  font-size: 1rem;
}

.hero-right {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #ecfdf3, #ffffff);
  padding: .5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.7);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-card-inner {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.hero-card-inner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.4s ease-out, opacity 0.25s ease-out;
}

.hero-card-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #f9fafb;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-card-caption-title {
  font-weight: 600;
  font-size: 0.82rem;
}

.hero-card-caption-sub {
  color: rgba(209, 213, 219, 0.96);
}

.hero-badge-floating {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.4rem 0.8rem;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.26);
}

.hero-card:hover .hero-card-inner img {
  transform: scale(1.04);
  opacity: 0.94;
}
.hero-stats-wrapper {
  display: flex;
  gap: 26px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-stats-card {
  flex: 1;
  min-width: 260px;
  background: #fff;
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.12);
  transition: .22s ease;
  border: 1px solid rgba(148,163,184,0.25);
}

.hero-stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15,23,42,0.20);
}

.hero-stats-label {
  font-size: .95rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.hero-stats-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #3c7df0;
  letter-spacing: -1px;
}

.hero-stats-link {
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #3c7df0;
}
.hero-stats-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media(max-width:700px){
  .hero-stats-wrapper {
    flex-direction: column;
  }
}

/* Sections */

main {
  flex: 1;
}

section {
  padding: 3rem 0;
}

.section-header {
  max-width: 620px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* How it works */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.2rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.step-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.15rem 0 0.3rem;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
}

/* For Farmers & Buyers */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.role-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.role-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.role-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.role-title {
  font-weight: 600;
  margin: 0;
  font-size: 1.02rem;
}

.role-body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.role-footer {
  margin-top: 0.5rem;
}

.role-footer .btn {
  width: fit-content;
  padding-inline: 1.1rem;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
}

/* Final CTA */

.cta-card {
  background: linear-gradient(120deg, #ecfdf3, #ffffff);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(74, 222, 128, 0.55);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(22, 163, 74, 0.28);
}

/* Footer */

footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.2rem 0 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: #f9fafb;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right {
    order: -1;
  }
  .nav-right {
    gap: 0.75rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2.2rem;
  }

  section {
    padding: 2.4rem 0;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-inner img {
    height: 220px;
  }

  .hero-stats-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* === Leaf cursor trail (polished) === */

.leaf-trail {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  font-size: 18px;
  opacity: 0;
  animation: leafFloat 0.9s ease-out forwards;
  transform-origin: center;
  will-change: transform, opacity;
}

@keyframes leafFloat {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) translateY(0) scale(0.95)
               rotate(var(--leaf-rot, 0deg));
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-10px) scale(1.05)
               rotate(calc(var(--leaf-rot, 0deg) + 6deg));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-26px) scale(0.9)
               rotate(calc(var(--leaf-rot, 0deg) + 14deg));
  }
}

/* Optional: subtle cursor glow following the mouse */
.cursor-glow {
  position: fixed;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.18), transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.07s linear;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .leaf-trail,
  .cursor-glow {
    animation: none !important;
    transition: none !important;
  }
}
