/* ============================================
   CAMPO — Landing Page Styles
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --forest: #1E5631;
  --forest-dark: #143D22;
  --forest-light: #ecfdf5;

  --emerald-500: #10b981;
  --emerald-600: #059669;

  --indigo: #6366F1;
  --indigo-dark: #4F46E5;
  --indigo-light: #818cf8;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon { width: 36px; height: 36px; border-radius: 8px; }

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.logo-dot { color: var(--indigo); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--slate-900); }

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid var(--slate-300);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-demo:hover {
  border-color: var(--slate-900);
  background: var(--slate-900);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-700);
}

/* ========== HERO ========== */
.hero {
  padding: 156px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--indigo);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero h1 .hi {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--slate-600);
  margin-bottom: 40px;
  max-width: 500px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-primary svg { width: 18px; height: 18px; }

/* --- AI Prescription Card --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.ai-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 430px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.06),
    0 0 80px rgba(99, 102, 241, 0.1);
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.ai-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ai-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--indigo-50);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-card-badge svg { width: 14px; height: 14px; }

.ai-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.ai-card-status-dot {
  width: 7px; height: 7px;
  background: var(--emerald-500);
  border-radius: 50%;
}

.ai-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.ai-card-sub {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 20px;
}

.ai-card-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.ai-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--slate-50);
  border-radius: 12px;
}

.ai-row-label {
  font-size: 13px;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-row-label svg { width: 15px; height: 15px; color: var(--slate-400); }

.ai-row-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-800);
}

.ai-row-val.indigo { color: var(--indigo); }

.ai-card-cta {
  width: 100%;
  padding: 14px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-card-cta:hover { background: var(--forest-dark); }
.ai-card-cta svg { width: 16px; height: 16px; }

/* Floaters */
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: hfloat 4s ease-in-out infinite;
}

.hero-float svg { width: 18px; height: 18px; }

.float-rain {
  top: 10px; right: -16px;
  color: var(--indigo);
  animation-delay: 0s;
}

.float-soil {
  bottom: 20px; left: -24px;
  color: var(--forest);
  animation-delay: 1.5s;
}

@keyframes hfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== PAIN POINTS ========== */
.pain-points { padding: 100px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.section-label.green { color: var(--forest); }
.section-label.indigo { color: var(--indigo); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-sub {
  font-size: 16px;
  color: var(--slate-500);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 52px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 30px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.pain-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.pain-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.pain-icon.green { background: var(--forest-light); color: var(--forest); }
.pain-icon.indigo { background: var(--indigo-50); color: var(--indigo); }
.pain-icon svg { width: 24px; height: 24px; }

.pain-old {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ========== HOW IT WORKS ========== */
.how-it-works { padding: 100px 0; }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 52px;
}

.how-card {
  border-radius: 24px;
  padding: 44px 36px;
}

.how-card.producer {
  background: var(--forest-light);
  border: 1px solid rgba(30, 86, 49, 0.08);
}

.how-card.agro {
  background: var(--indigo-50);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.how-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 8px;
}

.how-card.producer .how-label {
  background: rgba(30, 86, 49, 0.1);
  color: var(--forest);
}

.how-card.agro .how-label {
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-dark);
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.how-card.producer h3 { color: var(--forest-dark); }
.how-card.agro h3 { color: var(--indigo-dark); }

.how-card > p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.how-card.producer > p { color: var(--forest); opacity: 0.75; }
.how-card.agro > p { color: var(--indigo-dark); opacity: 0.7; }

.how-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.how-feat-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-feat-icon svg { width: 16px; height: 16px; }

.how-card.producer .how-feat-icon {
  background: rgba(30, 86, 49, 0.1);
  color: var(--forest);
}

.how-card.producer .how-feat { color: var(--forest-dark); }

.how-card.agro .how-feat-icon {
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo);
}

.how-card.agro .how-feat { color: var(--indigo-dark); }

/* ========== SOCIAL PROOF ========== */
.social-proof {
  padding: 100px 0;
  text-align: center;
}

.social-proof .section-title {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 52px;
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.metric-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 28px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.metric-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.metric-val.green { color: var(--forest); }
.metric-val.indigo { color: var(--indigo); }
.metric-val.dark { color: var(--slate-900); }

.metric-label {
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: var(--slate-900);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(30,86,49,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta-icon {
  width: 52px; height: 52px;
  margin: 0 auto 28px;
  border-radius: 14px;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.final-cta p {
  font-size: 16px;
  color: var(--slate-400);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
  box-shadow: 0 4px 24px rgba(30, 86, 49, 0.3);
}

.btn-green:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 86, 49, 0.4);
}

.btn-green svg { width: 18px; height: 18px; }

.final-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.final-note svg { width: 14px; height: 14px; }

/* Footer bar */
.footer-bar {
  background: var(--slate-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate-400);
  font-size: 15px;
}

.footer-logo img { width: 24px; height: 24px; border-radius: 6px; opacity: 0.6; }

.footer-copy {
  font-size: 13px;
  color: var(--slate-500);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .pain-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .hero-float { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .ai-card { padding: 24px; }
  .how-card { padding: 28px 22px; }
  .container { padding: 0 18px; }
}
