/* ============ AgroWeb - Static Styles ============ */
:root {
  --bg: hsl(140 10% 97%);
  --fg: hsl(220 30% 12%);
  --card: #ffffff;
  --border: hsl(140 10% 88%);
  --muted: hsl(220 10% 46%);
  --primary: hsl(142 60% 40%);
  --primary-fg: #fff;
  --primary-glow: hsl(142 70% 50%);
  --secondary: hsl(220 25% 14%);
  --secondary-fg: #fafafa;
  --accent: hsl(45 90% 55%);
  --dark-bg: hsl(225 25% 14%);
  --dark-fg: hsl(210 20% 95%);
  --radius: 0.75rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.muted-light { color: rgba(255,255,255,0.6); }

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section-light { background: var(--bg); color: var(--fg); }
.section-dark  { background: var(--dark-bg); color: var(--dark-fg); }
.relative { position: relative; overflow: hidden; }

.section-head { text-align: center; margin-bottom: 4rem; }
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 0.5rem; font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 0.75rem; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: hsl(142 60% 36%); }
.btn-secondary { background: var(--secondary); color: var(--secondary-fg); }
.btn-secondary:hover { background: hsl(220 25% 20%); }
.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--fg); }
.btn-outline:hover { background: hsl(140 10% 94%); }
.btn-white-strong {
  background: #fff; color: var(--dark-bg); font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 2px solid rgba(255,255,255,0.3);
}
.btn-white-strong:hover { background: rgba(255,255,255,0.92); }
.glow-green { box-shadow: 0 0 30px hsl(142 70% 50% / 0.3); }
.text-gradient-green {
  background: linear-gradient(135deg, hsl(142 60% 40%), hsl(142 70% 55%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(225 25% 14% / 0.95); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo img { height: 40px; }
.nav-desktop { display: none; gap: 1.5rem; align-items: center; }
.nav-desktop > a { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 0.2s; }
.nav-desktop > a:hover { color: #fff; }
.nav-toggle { color: #fff; display: inline-flex; }
.nav-mobile {
  display: none; flex-direction: column; gap: 0.5rem; padding: 1rem;
  background: var(--dark-bg); border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.6rem 0.75rem; color: rgba(255,255,255,0.85); }
.nav-mobile .btn { justify-content: center; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ============ Hero ============ */
.hero { padding: 7rem 0 5rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 9rem 0 7rem; } }
.hero-glow {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: radial-gradient(circle at 70% 30%, hsl(142 70% 50% / 0.4), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; text-align: center; }
.badge-pill {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  background: hsl(142 60% 40% / 0.15); color: var(--primary); border: 1px solid hsl(142 60% 40% / 0.3);
  margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; margin-bottom: 1.5rem; }
.hero-sub { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: 2rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }

/* ============ Credibility ============ */
.credibility { background: var(--primary); padding: 1.25rem 0; color: #fff; }
.credibility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 768px) { .credibility-grid { grid-template-columns: repeat(4, 1fr); } }
.cred-value { font-size: 1.75rem; font-weight: 800; }
@media (min-width: 768px) { .cred-value { font-size: 2rem; } }
.cred-label { font-size: 0.8rem; opacity: 0.9; }

/* ============ Features ============ */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem; background: hsl(142 60% 40% / 0.1);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.875rem; }

/* ============ Segments ============ */
.segments-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; }
.segment-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; transition: transform 0.3s; }
.segment-item:hover { transform: translateY(-4px); }
.segment-icon {
  width: 5rem; height: 5rem; border-radius: 1rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.segment-item:hover .segment-icon { background: hsl(142 60% 40% / 0.15); border-color: hsl(142 60% 40% / 0.4); }
.segment-item span { font-size: 0.875rem; color: rgba(255,255,255,0.85); font-weight: 500; }

/* ============ Testimonials ============ */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; color: var(--accent); }
.stars .star svg { fill: currentColor; }
.testimonial-text { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: hsl(142 60% 40% / 0.15); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.author-name { font-size: 0.875rem; font-weight: 600; }
.author-role { font-size: 0.75rem; color: var(--muted); }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem; display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.plan-highlight {
  background: hsl(142 60% 40% / 0.05);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: scale(1.03);
}
.plan-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg);
  font-size: 0.7rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 9999px;
}
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.plan-price { margin-bottom: 1.5rem; }
.plan-price .amount { font-size: 2.25rem; font-weight: 800; }
.plan-price .period { color: var(--muted); font-size: 0.875rem; }
.plan-features { list-style: none; flex: 1; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.625rem; }
.plan-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.plan-features .check { color: var(--primary); display: inline-flex; flex-shrink: 0; }

/* ============ Benefits ============ */
.benefits-glow {
  position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  background-image: radial-gradient(circle at 30% 70%, hsl(142 70% 50% / 0.4), transparent 60%);
}
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 64rem; margin: 0 auto; position: relative; z-index: 1; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.5rem; transition: all 0.3s;
}
.benefit-card:hover { background: rgba(255,255,255,0.07); border-color: hsl(142 60% 40% / 0.4); }
.benefit-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem; background: hsl(142 60% 40% / 0.15);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.benefit-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.benefit-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

/* ============ FAQ ============ */
.faq { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1rem; font-size: 0.9rem; font-weight: 600; text-align: left; color: var(--fg);
}
.faq-chev { transition: transform 0.2s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  color: var(--muted); font-size: 0.875rem;
}
.faq-a > p { padding: 0 1rem 1rem; }

/* ============ Footer ============ */
.footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { height: 40px; margin-bottom: 1rem; }
.footer-about { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer h4 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-grid > div > a, .footer-grid > div > span {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-grid > div > a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ============ Floating WhatsApp ============ */
.fab-whatsapp {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; background: #25D366; color: #fff;
  border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.fab-whatsapp:hover { transform: scale(1.1); }

/* ============ Dialog ============ */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.dialog-overlay[hidden] { display: none; }
.dialog {
  position: relative; background: var(--card); color: var(--fg); border-radius: 0.75rem;
  padding: 1.5rem; max-width: 28rem; width: 100%; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: zoomIn 0.2s ease;
}
.dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem; color: var(--muted); padding: 0.25rem;
  border-radius: 0.25rem;
}
.dialog-close:hover { color: var(--fg); }
.dialog h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.dialog-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }
.dialog form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.dialog form input[type="text"] {
  width: 100%; height: 2.5rem; padding: 0 0.75rem; font-size: 0.875rem;
  border: 1px solid var(--border); border-radius: 0.375rem; background: var(--bg); color: var(--fg);
}
.dialog form input[type="text"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.dialog-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.5rem; }
@media (max-width: 480px) {
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
