/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #243018;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #cdeffb 0%, #e9fbe0 55%, #d6f3c9 100%);
}
#page { position: relative; }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- hero (over the field photo) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 64px;
  gap: 18px;
  overflow: hidden;
  background: #bfe3f5 url("/static/img/background.png") center / cover no-repeat;
}
/* live demo field (flowers + butterflies + dragonflies) over the photo */
#demoCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
}
/* soft wash so the white logo + text stay legible on the bright field */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,45,15,0.18) 0%, rgba(20,45,15,0.05) 35%, rgba(20,45,15,0.30) 100%);
  z-index: 0;
}
/* very faint sun rays from the top-left, echoing the live display */
.hero-rays {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,248,214,0.30) 0%, rgba(255,246,205,0.08) 26%, rgba(255,246,205,0) 52%),
    repeating-conic-gradient(from 6deg at 0% 0%, rgba(255,250,225,0.06) 0deg 2.2deg, rgba(255,250,225,0) 2.2deg 9deg);
}
.hero > * { position: relative; z-index: 1; }

.hero-logo {
  width: min(380px, 72vw);
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.35));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-headline {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 0;
  color: #fff; text-shadow: 0 2px 22px rgba(20,50,15,0.55), 0 1px 4px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.3rem); line-height: 1.6; margin: 0;
  color: #f3fff0; max-width: 600px; text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.hero-cta {
  display: inline-block; margin-top: 6px; padding: 14px 42px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em;
  color: #fff; background: #e23b6d; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 0 #b3245a, 0 10px 24px rgba(180,40,90,0.35);
  transition: transform 0.12s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b3245a, 0 14px 30px rgba(180,40,90,0.45); }
.hero-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #b3245a; }

/* ---- features ---- */
.features { padding: 80px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 12px;
  color: #2e7d32; text-align: center;
}
.section-sub {
  font-size: 1.05rem; color: #4a6a3a; margin: 0 auto 40px; max-width: 640px;
  text-align: center; line-height: 1.6;
}

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.feat-card {
  background: rgba(255,255,255,0.86); border: 1px solid rgba(46,125,50,0.14);
  border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 8px 22px rgba(80,120,60,0.12);
}
.feat-img {
  width: 100%; border-radius: 14px; object-fit: cover; max-height: 240px;
  border: 1px solid rgba(46,125,50,0.12); background: #eaf6ff;
}
.feat-card h3 { font-size: 1.25rem; font-weight: 800; margin: 0; color: #2e7d32; }
.feat-card p { font-size: 0.96rem; line-height: 1.65; margin: 0; color: #44603a; }

.feat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  display: inline-block; padding: 8px 18px;
  background: rgba(46,125,50,0.12); border: 1px solid rgba(46,125,50,0.28);
  border-radius: 999px; font-size: 0.86rem; font-weight: 700; color: #2e7d32;
}

/* ---- contact ---- */
.contact-section { padding: 70px 0 90px; }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 700; color: #3a5230; }
.required-mark { color: #e23b6d; }
.form-group input, .form-group textarea {
  background: #fff; border: 2px solid #9fd08a; border-radius: 12px; color: #243018;
  font-size: 1rem; font-family: inherit; padding: 12px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #9bb58a; }
.form-group input:focus, .form-group textarea:focus {
  border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,0.18);
}
.form-submit {
  align-self: flex-start; padding: 13px 38px; font-size: 1rem; font-weight: 800;
  color: #fff; background: #2e7d32; border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 0 #1e5a22; transition: transform 0.12s, box-shadow 0.2s; font-family: inherit;
}
.form-submit:hover:not(:disabled) { transform: translateY(-1px); }
.form-submit:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #1e5a22; }
.form-submit:disabled { opacity: 0.55; cursor: default; }
.form-result { font-size: 0.95rem; font-weight: 700; min-height: 1.4em; margin: 0; }
.form-result-ok  { color: #2e7d32; }
.form-result-err { color: #c0392b; }

/* ---- footer ---- */
.footer {
  background: #2e7d32; padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.footer-logo { height: 48px; width: auto; }
.footer-legal { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin: 0; }

/* ---- responsive ---- */
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.2rem; }
}
