:root {
  --green: #1a3c2a;
  --green-700: #142e20;
  --green-300: #4f7d63;
  --green-50: #eef4f0;
  --ink: #16201b;
  --muted: #5d6b63;
  --line: #e2e8e4;
  --bg: #ffffff;
  --bg-alt: #f6f8f6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 46, 32, 0.05), 0 8px 24px rgba(20, 46, 32, 0.06);
  --maxw: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-50);
  color: var(--green);
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
}
.nav-cta:hover {
  background: var(--green-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.18s ease, box-shadow 0.2s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, #2f8f5b 0%, var(--green) 70%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(26, 60, 42, 0.28);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(26, 60, 42, 0.38);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--green-50);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.95rem;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  padding: 120px 0 96px;
}
/* Faint dot grid over the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(26, 60, 42, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(
    120% 90% at 70% 0%,
    #000 30%,
    transparent 75%
  );
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%);
}
/* Animated aurora blobs */
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle at 30% 30%, #6fbf8f, #1a3c2a);
  animation: drift1 16s ease-in-out infinite;
}
.blob-2 {
  width: 420px;
  height: 420px;
  top: 40px;
  right: 220px;
  background: radial-gradient(circle at 50% 50%, #9fe0c0, #2f8f5b);
  opacity: 0.4;
  animation: drift2 20s ease-in-out infinite;
}
.blob-3 {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle at 50% 50%, #cdeede, #4f7d63);
  opacity: 0.35;
  animation: drift3 18s ease-in-out infinite;
}
@keyframes drift1 {
  50% {
    transform: translate(-40px, 50px) scale(1.1);
  }
}
@keyframes drift2 {
  50% {
    transform: translate(60px, 40px) scale(0.92);
  }
}
@keyframes drift3 {
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
}
/* Gradient accent on the headline */
.grad {
  background: linear-gradient(110deg, #1a3c2a 0%, #2f8f5b 45%, #4f7d63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-300);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 40px;
}

/* ---------- App grid ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.app-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.app-card:not(.app-card--coming):hover {
  transform: translateY(-5px);
  border-color: var(--green-300);
  box-shadow: 0 20px 44px rgba(20, 46, 32, 0.14);
}
/* Gradient sheen along the top edge on hover */
.app-card:not(.app-card--coming)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #2f8f5b, #6fbf8f, #2f8f5b);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.app-card:not(.app-card--coming):hover::after {
  opacity: 1;
}
.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.app-badge {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f8f5b, var(--green));
  box-shadow: 0 6px 16px rgba(26, 60, 42, 0.25);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.app-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.app-tagline {
  margin: 2px 0 0;
  color: var(--green-300);
  font-weight: 600;
  font-size: 0.92rem;
}
.app-desc {
  color: var(--muted);
  margin: 0 0 18px;
}
.app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
}
.app-features li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 0.96rem;
}
.app-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-300);
}
.app-actions {
  margin-top: auto;
}

/* Coming-soon card */
.app-card--coming {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.coming-inner {
  max-width: 260px;
}
.coming-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-300);
  margin-bottom: 12px;
}
.app-card--coming h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-intro {
  position: sticky;
  top: 96px;
}
.contact-direct {
  color: var(--muted);
  margin-top: 18px;
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-300);
  box-shadow: 0 0 0 3px rgba(79, 125, 99, 0.15);
}
.field textarea {
  resize: vertical;
}
/* Only flag fields the user has actually interacted with and left invalid */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #c0392b;
}
/* Honeypot — visually hidden but reachable to bots */
.hp {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.form-status {
  margin: 16px 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.form-status.success {
  color: var(--green);
  font-weight: 600;
}
.form-status.error {
  color: #c0392b;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  background: var(--green);
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .brand-name {
  color: #fff;
}
.footer-meta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.site-footer a {
  color: #fff;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.footer-links {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #fff;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 72px 0 88px;
}
.legal-inner {
  max-width: 760px;
}
.legal .back-link {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 6px;
}
.legal .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.legal .disclaimer {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-300);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}
.legal p,
.legal li {
  color: #2e3a33;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal li {
  margin-bottom: 7px;
}
.legal a {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    order: 2;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .section {
    padding: 56px 0;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-intro {
    position: static;
  }
}
