/* ===== TaniHub — Tema AgriTech Hijau ===== */
:root {
  --green-900: #14351f;
  --green-700: #1e5631;
  --green-600: #2d7a45;
  --green-500: #3da35d;
  --green-100: #e3f4e8;
  --green-50: #f2faf4;
  --amber: #f2a33c;
  --ink: #1d2b21;
  --muted: #5b6e60;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 53, 31, 0.1);
  --shadow-lg: 0 20px 50px rgba(20, 53, 31, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

/* ===== Tombol ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 122, 69, 0.35);
}
.btn-outline {
  border-color: var(--green-600);
  color: var(--green-700);
  background: transparent;
}
.btn-outline:hover { background: var(--green-100); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-full { width: 100%; border: none; font-size: 1rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(20, 53, 31, 0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-600); }
.nav-links a.btn { color: var(--white); }
.nav-links a.btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--green-700);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 90px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(61, 163, 93, 0.15), transparent 60%),
    linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.highlight {
  color: var(--green-600);
  position: relative;
}
.highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: rgba(242, 163, 60, 0.35);
  z-index: -1;
  border-radius: 4px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--green-700); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: min(340px, 100%);
  animation: floaty 5s ease-in-out infinite;
}
.hero-emoji { font-size: 4.5rem; margin-bottom: 12px; }
.hero-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.hero-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.price-row { display: flex; justify-content: center; align-items: baseline; gap: 12px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--green-600); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }

.floating-badge {
  position: absolute;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.fb-1 { top: 6%; right: 4%; animation: floaty 6s ease-in-out infinite 0.8s; }
.fb-2 { bottom: 8%; left: 0%; animation: floaty 6s ease-in-out infinite 1.6s; }

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

/* ===== Section umum ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--green-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  color: var(--green-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); }

/* ===== Kartu ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.4rem; display: block; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.problem-card { border-top: 5px solid #d9655f; }
.solution-card { border-top: 5px solid var(--green-500); }

.check-list { list-style: none; margin-top: 8px; }
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
}
.check-list li::before {
  content: "✔";
  position: absolute; left: 0;
  color: var(--green-600);
  font-weight: 800;
}
.check-list.cross li::before { content: "✖"; color: #d9655f; }

/* ===== Grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* ===== Statistik band ===== */
.stats-band {
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  color: var(--white);
  padding: 64px 0;
}
.stat-band-item { text-align: center; }
.stat-band-item strong { display: block; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.stat-band-item span { opacity: 0.85; font-size: 0.95rem; }

/* ===== Cara kerja ===== */
.steps .step {
  text-align: center;
  padding: 40px 28px;
  position: relative;
}
.step-num {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(45, 122, 69, 0.35);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== Tim ===== */
.team-card { text-align: center; }
.avatar {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.team-card .role {
  display: block;
  color: var(--green-600);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ===== Testimoni ===== */
.testimonial p { font-style: italic; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.avatar-sm {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { color: var(--muted); font-size: 0.85rem; }

/* ===== CTA / Kontak ===== */
.section-cta {
  background:
    radial-gradient(500px 260px at 10% 100%, rgba(61, 163, 93, 0.12), transparent 60%),
    var(--green-50);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 16px; }
.cta-text p { color: var(--muted); margin-bottom: 28px; }
.contact-info { list-style: none; }
.contact-info li { padding: 6px 0; font-weight: 600; color: var(--green-700); }

.cta-form .form-group { margin-bottom: 18px; }
.cta-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d5e4d9;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(61, 163, 93, 0.15);
}
.cta-form textarea { resize: vertical; }
.form-success {
  display: none;
  margin-top: 14px;
  color: var(--green-700);
  font-weight: 700;
  text-align: center;
}
.form-success.show { display: block; }

/* ===== Model Bisnis ===== */
.pricing-card { text-align: center; position: relative; }
.pricing-card.popular {
  border: 2px solid var(--green-500);
  transform: scale(1.03);
}
.pricing-card.popular:hover { transform: scale(1.03) translateY(-6px); }
.ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green-700);
  margin: 6px 0 14px;
}
.pricing-num span { font-size: 1.4rem; color: var(--green-500); }

/* ===== Roadmap / Timeline ===== */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 8px; bottom: 8px;
  width: 3px;
  background: linear-gradient(var(--green-500), var(--green-100));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -40px; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid #c4dcc9;
}
.timeline-dot.done { border-color: var(--green-500); background: var(--green-500); }
.timeline-dot.active {
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(61, 163, 93, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 163, 93, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(61, 163, 93, 0.08); }
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.timeline-when {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.timeline-content h3 { margin-bottom: 6px; }
.timeline-content p { color: var(--muted); font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green-600);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 26px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-900);
  color: var(--white);
  padding: 48px 0;
}
.footer-inner { text-align: center; }
.footer .logo { color: var(--white); justify-content: center; margin-bottom: 8px; }
.footer p { opacity: 0.8; margin-bottom: 18px; }
.copyright { font-size: 0.82rem; opacity: 0.55; }

/* ===== Animasi reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsif ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .two-col, .cta-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 18px;
    box-shadow: 0 16px 30px rgba(20, 53, 31, 0.12);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .floating-badge { display: none; }
}
