@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #108542;
  /* Professional green for buttons/UI */
  --primary-dark: #0d6d36;
  --secondary: #F7C948;
  --bg: #0f172a;
  --surface: #1e293b;
  --card: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --white: #1e293b;
  --border: #334155;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-bg: rgba(15, 23, 42, 0.8);
  --vibrant: #3ade7b;
  /* High-contrast green for dark mode text only */
}

[data-theme="light"] {
  --primary: #0a7037;
  /* Darker, more vibrant green for better contrast */
  --primary-dark: #085a2c;
  --bg: #ffffff;
  --surface: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.8);
  --vibrant: #0a7037;
}



* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Force form controls to inherit the site font (browsers don't do this by default) */
input,
select,
textarea,
button {
  font-family: var(--font);
  font-size: 14px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  text-decoration: none;
}

.brand .mark {
  width: 190px;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .burger {
    display: block;
  }
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Reduced from 28px */
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
  font-size: 14px;
  /* Reduced from 15px */
}

.menu a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  padding: 8px 16px;
  /* Reduced from 12px 24px */
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 14px;
  /* Reduced from 15px */
}

.btn-primary {
  background-color: var(--primary);
  color: white !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background-color: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-login {
  background-color: var(--secondary) !important;
  color: #000000 !important;
  /* Pure black text for maximum contrast */
}

.btn-login:hover {
  filter: brightness(0.95);
}

/* Hero Section */
.hero {
  padding: 50px 0;
  background: radial-gradient(circle at 100% 0%, rgba(16, 133, 66, 0.05), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(247, 201, 72, 0.05), transparent 40%);
  text-align: center;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 133, 66, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto 24px;
  max-width: 850px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero .cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* KPI Section */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  /* Adjusted to 40px */
}

.kpi {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.kpi .num {
  font-size: 36px;
  /* Slightly larger */
  font-weight: 800;
  color: var(--vibrant, var(--primary));
  /* Uses vibrant green in dark mode if available */
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.kpi .label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section {
  padding: 50px 0;
}

.section-bg {
  background-color: var(--surface);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  /* Adjusted to 40px */
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 133, 66, 0.2);
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--vibrant, var(--primary));
  display: flex;
  align-items: center;
  gap: 12px;
}

.card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text);
}

.check-icon {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  filter: invert(34%) sepia(85%) rotate(100deg) brightness(90%) contrast(90%);
  /* Approximate Green */
  background: #fff;
}

/* Pricing Table */
.pricing-card {
  border-top: 4px solid var(--secondary);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.table th {
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--text);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table tfoot td {
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  border: none;
}

/* CTA Bar */
.cta-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 40px;
  /* Adjusted to 40px */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.cta-bar h2 {
  font-size: 32px;
  margin: 0 0 8px;
}

.cta-bar p {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}

.cta-bar .btns {
  display: flex;
  gap: 16px;
}

.cta-bar .btn-secondary {
  background-color: var(--secondary) !important;
  color: #000000 !important;
}

/* Footer */
.footer {
  padding: 30px 0 20px;
  /* Reduced from 60px 0 30px */
  background-color: var(--surface);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  /* Reduced from 80px */
  margin-bottom: 30px;
  /* Reduced from 60px */
}

.footer .brand {
  color: var(--text);
  margin-bottom: 12px;
  /* Reduced from 24px */
}

.footer h4 {
  color: var(--text);
  margin-bottom: 16px;
  /* Reduced from 24px */
  font-size: 18px;
}

.footer .links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
  /* Reduced from 40px */
}

.footer .bottom {
  text-align: center;
  font-size: 14px;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  /* Reduced from 40px */
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0;
  margin-left: 8px;
  /* Spacing from the Get Started button */
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero,
.card,
.kpi,
.cta-bar {
  animation: fadeIn 0.8s ease-out both;
}

.kpi:nth-child(2) {
  animation-delay: 0.1s;
}

.kpi:nth-child(3) {
  animation-delay: 0.2s;
}

.kpi:nth-child(4) {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 40px;
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer .cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-bar {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 40px;
  }

  .menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .kpis {
    grid-template-columns: 1fr;
  }

  .hero .cta {
    flex-direction: column;
  }
}