/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #4e9834;
  --green-dark: #3a7a28;
  --navy: #00203C;
  --text: #131b10;
  --light-gray: #f7f7f7;
  --border: #e5e5e5;
  --max-width: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

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

.logo img { max-height: 44px; width: auto; }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

nav ul li a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}
nav ul li a:hover { color: var(--green); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text) !important;
  font-size: 14px;
}
.dropdown a:hover { background: var(--light-gray); color: var(--green) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav ul li a {
  display: block;
  padding: 10px 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li:last-child a { border-bottom: none; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a4f2e 0%, #2d7a4f 50%, #4e9834 100%);
  padding: 80px 0;
  overflow: hidden;
}

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

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 460px;
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--green) !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #e8f5e2;
  transform: translateY(-1px);
}

.hero-image img {
  border-radius: 8px;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
}

/* ── TRUSTED BY ── */
.trusted {
  background: #fff;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.trusted h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 36px;
  font-weight: 600;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.trusted-logos img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: opacity 0.2s, filter 0.2s;
}
.trusted-logos img:hover { opacity: 1; filter: none; }

/* ── FEATURES TABS ── */
.features {
  background: var(--light-gray);
  padding: 72px 0;
}

.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 48px;
  font-weight: 700;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-btn:hover { color: var(--green); }

.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.tab-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.tab-content ul {
  padding-left: 0;
  list-style: none;
  margin-top: 16px;
}
.tab-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: #444;
}
.tab-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.tab-image img {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: 100%;
}

/* ── TESTIMONIALS ── */
.testimonials {
  background: #fff;
  padding: 72px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 48px;
  font-weight: 700;
}

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

.testimonial-card {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 28px;
  border: 1px solid var(--border);
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card blockquote::before { content: "\201C"; color: var(--green); font-size: 2rem; line-height: 0; vertical-align: -0.5rem; margin-right: 4px; }

.testimonial-screenshot {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.testimonial-author strong { display: block; color: var(--text); font-weight: 600; }
.testimonial-author span { font-size: 13px; color: #777; }

/* ── FEATURES ICONS ── */
.features-icons {
  background: var(--light-gray);
  padding: 72px 0;
}

.features-icons h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 48px;
  font-weight: 700;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.icon-item img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.icon-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #1a4f2e 0%, #4e9834 100%);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 28px;
  font-weight: 700;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { filter: brightness(0) invert(1); max-height: 36px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); }

footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.15s; }
footer ul li a:hover { color: #fff; }

.social-icons { display: flex; gap: 16px; margin-top: 4px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  font-size: 16px;
  transition: background 0.15s;
}
.social-icon:hover { background: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 300px; margin: 0 auto; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel.active { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { height: 60px; }

  .hero { padding: 52px 0; }
  .trusted-logos { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tab-nav { flex-direction: column; }
  .tab-btn { border-left: 2px solid transparent; border-bottom: none; margin: 0; }
  .tab-btn.active { border-left-color: var(--green); border-bottom-color: transparent; }
}
