:root {
  --green: #1f7a4f;
  --green-dark: #176442;
  --green-light: #eef7f2;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #fafafa;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.75;
  background: #fff;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; font-weight: 600; }
h2 { font-size: 2.3rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 500; }

p { color: var(--text-muted); }

/* LAYOUT */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 120px 0;
}

section:nth-of-type(even) {
  background: var(--bg-soft);
}

/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

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

.logo img { height: 48px; }

nav a {
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
}

nav a:hover { color: var(--green); }

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--green-light), #fff);
  padding: 160px 0;
}

/* HERO LOAD ANIMATION */
.hero-fade > * {
  opacity: 0;
  transform: translateY(60px);
  animation: heroReveal 1.8s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hero-fade h1 { animation-delay: 0.1s; }
.hero-fade p { animation-delay: 0.35s; }
.hero-fade .btn { animation-delay: 0.6s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 15px 40px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

/* SECTION INTRO */
.section-intro {
  margin-bottom: 90px;
}

/* GRID & CARDS */
.grid {
  display: grid;
  gap: 48px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  transition: box-shadow 0.4s ease;
}

.card:hover {
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

/* HIGHLIGHT */
.highlight {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 130px 20px;
}

.highlight p { color: rgba(255,255,255,0.95); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-soft);
}

/* ===== UNIVERSAL SCROLL FADE-UP (THIS IS THE KEY FIX) ===== */
.fade-up {
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 1.6s cubic-bezier(0.16,1,0.3,1),
    transform 1.6s cubic-bezier(0.16,1,0.3,1);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.9rem; }
}
