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

:root {
  --green-primary: #2D6A4F;
  --green-light: #40916C;
  --green-dark: #1B4332;
  --green-secondary: #52B788;

  --bg: #ffffff;
  --bg-alt: #f8faf9;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #777;
  --border: #e0e0e0;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.06);
  --hero-gradient: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 50%, var(--green-light) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --bg-alt: #1a1a1a;
    --text: #e8e8e8;
    --text-muted: #aaa;
    --text-light: #888;
    --border: #333;
    --card-bg: #1e1e1e;
    --card-shadow: rgba(0, 0, 0, 0.3);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* === Layout === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* === Hero === */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: #fff;
  color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === Features === */
.features {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.features .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 20px var(--card-shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--green-primary);
}

@media (prefers-color-scheme: dark) {
  .feature-card h3 {
    color: var(--green-secondary);
  }
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copyright {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* === Legal Pages === */
.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.legal .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--green-primary);
}

@media (prefers-color-scheme: dark) {
  .legal h2 {
    color: var(--green-secondary);
  }
}

.legal p,
.legal ul {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* === Responsive === */
@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .features {
    padding: 3rem 0;
  }

  .features h2 {
    font-size: 1.5rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }
}
