/* ========================================
   GreenIQ — Agricultural Intelligence
   ======================================== */

:root {
  --cream: #F8F5EE;
  --cream-dark: #EEE9DC;
  --green-deep: #1B4D2E;
  --green-mid: #2D7A46;
  --green-light: #3A9D5C;
  --amber: #D4A843;
  --amber-light: #E8C36B;
  --brown: #4A3728;
  --text: #1C1917;
  --text-muted: #6B5F55;
  --white: #FFFFFF;
}

/* --- Reset & Base --- */
*, *::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: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}

/* --- Navbar --- */
.navbar {
  padding: 20px 0;
  border-bottom: 1px solid rgba(27, 77, 46, 0.1);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

/* --- Hero --- */
.hero {
  background: var(--green-deep);
  color: var(--cream);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(58, 157, 92, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(212, 168, 67, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(248, 245, 238, 0.82);
  max-width: 440px;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(212, 168, 67, 0.2);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 20px;
  color: var(--amber-light);
}
.badge-sep { color: rgba(248,245,238,0.3); }

/* Chat Card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.chat-bubble { margin-bottom: 12px; }
.chat-avatar { font-size: 0.8rem; }
.chat-text {
  display: inline-block;
  background: #E8E0D0;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.82rem;
  max-width: 85%;
}
.chat-response {
  background: var(--green-deep);
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 12px 12px 4px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
}
.diagnosis-label {
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 4px;
}
.treatment { margin-bottom: 4px; }
.market-note { color: rgba(248,245,238,0.7); font-size: 0.75rem; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  display: inline-block;
}

/* --- Problem --- */
.problem {
  padding: 100px 0;
  background: var(--cream);
}
.problem-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.problem-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 20px;
}
.problem-headline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 700px;
  margin-bottom: 56px;
  color: var(--green-deep);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.problem-item {
  border-top: 2px solid var(--green-deep);
  padding-top: 24px;
}
.problem-icon { font-size: 1.5rem; margin-bottom: 16px; }
.problem-item h3 {
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}
.problem-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--cream-dark);
}
.features-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.features-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.feature-card {
  background: var(--cream);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(27,77,46,0.08);
}
.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-card h3 {
  font-size: 1rem;
  color: var(--green-deep);
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.features-channel {
  display: flex;
  justify-content: center;
}
.channel-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--green-deep);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 100px;
}
.channel-icon { font-size: 1.4rem; }
.channel-text { display: flex; flex-direction: column; }
.channel-text strong { font-size: 0.95rem; }
.channel-text span { font-size: 0.8rem; opacity: 0.75; }

/* --- Outcomes --- */
.outcomes {
  padding: 100px 0;
  background: var(--green-deep);
  color: var(--cream);
}
.outcomes-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.outcomes-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 48px;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.outcome-card { text-align: left; }
.outcome-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 4px;
}
.outcome-unit {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 12px;
}
.outcome-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(248,245,238,0.7);
}

/* --- Vision --- */
.vision { padding: 80px 0; background: var(--cream); }
.vision-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.vision-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--green-deep);
  line-height: 1.7;
  margin-bottom: 32px;
}
.vision-rule {
  width: 48px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 20px;
}
.vision-attribution {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Closing --- */
.closing {
  padding: 100px 0;
  background: var(--cream-dark);
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-deep);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 32px;
}
.closing-statement {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  padding-top: 24px;
  border-top: 1px solid rgba(27,77,46,0.15);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--green-deep);
  color: rgba(248,245,238,0.7);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-tagline { font-size: 0.82rem; }
.footer-meta { text-align: right; }
.footer-contact { font-size: 0.82rem; }
.footer-built { font-size: 0.75rem; opacity: 0.5; margin-top: 4px; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 280px; }
  .hero { padding: 60px 0 80px; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-meta { text-align: center; }
  .nav-inner, .problem-inner, .features-inner, .outcomes-inner, .vision-inner, .closing-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .outcome-number { font-size: 3rem; }
  .closing-headline { font-size: 1.8rem; }
}