/* ═══════════════════════════════════════════════════════
   PalmAgri Forecast — landing.css
   Standalone marketing landing page styles
   Design: Refined editorial × Nigerian agri-fintech
   ═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #F3EFE6;
  color: #16130C;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── TOKENS ─── */
:root {
  --green:       #2A5518;
  --green-mid:   #387522;
  --green-light: #50922E;
  --green-glow:  rgba(42,85,24,.18);
  --amber:       #A85E0A;
  --amber-mid:   #C07318;
  --bg:          #F3EFE6;
  --bg-alt:      #EDEBE2;
  --surface:     #FDFCF8;
  --border:      #D0CABB;
  --text:        #16130C;
  --text-mid:    #4A4234;
  --text-muted:  #7A7060;
  --shadow-sm:   rgba(16,12,4,.08);
  --shadow-md:   rgba(16,12,4,.14);
  --shadow-lg:   rgba(16,12,4,.22);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 32px;
}

/* ─── ACCESSIBILITY ─── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: var(--r-md);
  font-weight: 700; font-size: .85rem;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .22s, opacity .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 2px 14px var(--green-glow), 0 1px 3px var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(42,85,24,.28), 0 2px 6px var(--shadow-sm);
}
.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline-light {
  background: rgba(255,255,255,.12); color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

.hidden { display: none !important; }

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(243,239,230,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px; height: 62px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Lora', Georgia, serif; font-weight: 700;
  font-size: 1.1rem; color: var(--text); letter-spacing: -.01em;
}
.brand-icon { font-size: 22px; }
.brand-name em { font-style: italic; color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  padding: 7px 14px; border-radius: var(--r-sm);
  transition: color .13s, background .13s;
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-cta {
  background: var(--green); color: #fff;
  padding: 8px 20px; border-radius: var(--r-md);
  font-size: .9rem; font-weight: 600;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px var(--green-glow);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(42,85,24,.28); }

.nav-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-mobile-menu {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.mob-nav-link {
  font-size: 1rem; font-weight: 500; color: var(--text-mid);
  padding: 10px 14px; border-radius: var(--r-sm);
}
.mob-nav-link:hover { background: var(--bg-alt); color: var(--text); }
.mob-nav-cta {
  margin-top: 8px; background: var(--green); color: #fff;
  text-align: center; font-weight: 700; border-radius: var(--r-md);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 0;
  min-height: 640px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(72px); opacity: .55;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(42,85,24,.28) 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,94,10,.18) 0%, transparent 70%);
  top: 100px; right: -60px;
  animation: blob-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, 16px) scale(1.06); }
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .6;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
  background: rgba(42,85,24,.08); border: 1px solid rgba(42,85,24,.18);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.03em; color: var(--text);
  margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: var(--green); }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem); color: var(--text-mid);
  line-height: 1.7; margin-bottom: 28px; max-width: 520px; margin-inline: auto;
}
.hero-price-strip {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 12px 22px; margin-bottom: 32px;
  box-shadow: 0 2px 12px var(--shadow-sm);
  flex-wrap: wrap; justify-content: center; gap: 8px 0;
}
.hero-price-item { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.hpi-crop { color: var(--text-muted); font-weight: 500; }
.hpi-val  { color: var(--green); font-weight: 700; font-size: 1rem; }
.hpi-unit { color: var(--text-muted); font-size: .8rem; }
.hero-price-divider {
  width: 1px; height: 28px; background: var(--border); margin: 0 16px;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-footnote {
  font-size: .8rem; color: var(--text-muted); font-weight: 500;
  letter-spacing: .02em;
}

/* Hero screenshot */
.hero-screenshot {
  position: relative; z-index: 1;
  max-width: 960px; margin: 56px auto 0;
  padding: 0 24px;
}
.screenshot-frame {
  position: relative; border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(16,12,4,.18), 0 4px 16px var(--shadow-sm);
  overflow: hidden; background: var(--surface);
}
.screenshot-img { width: 100%; height: auto; display: block; }
.screenshot-glow {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(243,239,230,.9) 100%);
  pointer-events: none;
}

/* ════════════════════════════════════════
   PROOF STRIP
════════════════════════════════════════ */
.proof-strip {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
  margin-top: -1px;
}
.proof-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.proof-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 36px; text-align: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s, transform .5s;
}
.proof-item.in-view { opacity: 1; transform: translateY(0); }
.proof-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem; font-weight: 700; color: var(--green);
}
.proof-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.proof-divider {
  width: 1px; height: 40px; background: var(--border);
}

/* ════════════════════════════════════════
   FEATURES
════════════════════════════════════════ */
.features { padding: 100px 24px; background: var(--bg); }
.features-inner { max-width: 1160px; margin: 0 auto; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -.025em;
  color: var(--text); margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--green); }
.section-desc {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.7; max-width: 580px; margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px;
  transition: transform .22s, box-shadow .22s;
  opacity: 0; transform: translateY(20px);
  overflow: hidden;
}
.feat-card.in-view { opacity: 1; transform: translateY(0); }
.feat-card:nth-child(2) { transition-delay: .08s; }
.feat-card:nth-child(3) { transition-delay: .16s; }
.feat-card:nth-child(4) { transition-delay: .06s; }
.feat-card:nth-child(5) { transition-delay: .12s; }
.feat-card:nth-child(6) { transition-delay: .18s; }
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
}
.feat-card.feat-primary {
  grid-column: span 2;
  background: linear-gradient(135deg, #EDF5E9 0%, #FDFCF8 60%);
  border-color: rgba(42,85,24,.2);
}
.feat-icon-wrap {
  font-size: 2rem; margin-bottom: 16px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.feat-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.feat-desc {
  font-size: .9rem; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 20px;
}
.feat-screenshot {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px var(--shadow-sm);
  margin-top: 4px;
}
.feat-screenshot img { width: 100%; height: auto; }
.feat-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .88rem; font-weight: 700; color: var(--green);
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 2px;
  transition: gap .15s;
}
.feat-cta:hover { gap: 8px; }

/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
.how-it-works {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
}
.how-inner { max-width: 1000px; margin: 0 auto; }

.steps-grid {
  display: flex; align-items: flex-start; gap: 0;
  margin: 56px 0 60px; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 200px;
  padding: 28px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s, transform .5s;
}
.step-card.in-view { opacity: 1; transform: translateY(0); }
.step-card:nth-child(3) { transition-delay: .1s; }
.step-card:nth-child(5) { transition-delay: .2s; }
.step-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 3rem; font-weight: 700; color: rgba(42,85,24,.15);
  line-height: 1; margin-bottom: 12px;
}
.step-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.step-desc {
  font-size: .9rem; color: var(--text-muted); line-height: 1.65;
}
.step-arrow {
  font-size: 1.8rem; color: var(--border);
  padding-top: 28px; flex-shrink: 0; align-self: flex-start;
}

.how-screenshot {
  border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 60px var(--shadow-md);
}
.how-img { width: 100%; height: auto; display: block; }

/* ════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════ */
.cta-section {
  background: var(--green); color: #fff;
  padding: 100px 24px;
  position: relative; overflow: hidden;
}
.cta-blob {
  position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
.cta-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .7; pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto; text-align: center;
}
.cta-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -.025em;
  color: #fff; margin-bottom: 18px;
}
.cta-title em { font-style: italic; color: rgba(255,255,255,.75); }
.cta-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  line-height: 1.7; margin-bottom: 36px;
}
.cta-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.cta-credits {
  font-size: .78rem; color: rgba(255,255,255,.5); line-height: 1.7;
}
.cta-credits a {
  color: rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.25);
}
.cta-credits a:hover { color: #fff; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Lora', Georgia, serif;
  font-size: .95rem; font-weight: 700; color: var(--text);
}
.footer-brand em { font-style: italic; color: var(--green); }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-link {
  font-size: .83rem; color: var(--text-muted);
  padding: 5px 10px; border-radius: var(--r-sm);
  transition: color .13s, background .13s;
}
.footer-link:hover { color: var(--text); background: var(--bg-alt); }
.footer-copy {
  font-size: .78rem; color: var(--text-muted);
  margin-left: auto;
}

/* ════════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .feat-card, .step-card, .proof-item { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card.feat-primary { grid-column: span 2; }
  .proof-divider { display: none; }
  .proof-inner { gap: 16px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card.feat-primary { grid-column: span 1; }
  .steps-grid { flex-direction: column; }
  .step-arrow { display: none; }
  .hero { padding: 60px 20px 0; }
  .hero-price-strip { flex-direction: column; gap: 12px; padding: 16px; }
  .hero-price-divider { width: 80px; height: 1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { margin-left: 0; }
}
