/* AgriVolt landing page. Palette and type follow the pitch deck (Poppins, forest green on paper). */

:root {
  --paper: #efefea;
  --paper-2: #e5e6df;
  --surface: #f8f8f4;
  --ink: #173f45;
  --ink-soft: #3d5f63;
  --green: #2f7350;
  --green-dark: #245c40;
  --leaf: #4c9a2a;
  --sky: #8fd6e3;
  --sun: #e9b949;
  --line: #d3d6cc;
  --error: #b3261e;

  --radius: 12px;
  --wrap: 1160px;
  --gutter: 16px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* Subtle paper grain, as in the deck */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--green); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 18ch; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 16px; }

.eyebrow { margin: 0 0 16px; font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 54ch; margin-top: 24px; }
.section__intro { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; margin: 24px 0 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(239, 239, 234, .94); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--green); text-decoration: none; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav__links a:hover { color: var(--green); }
@media (max-width: 880px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero { padding: 64px 0 80px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.1fr 1fr; } .hero { padding: 96px 0 112px; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__note { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; font-size: .875rem; color: var(--ink-soft); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(76, 154, 42, .2); }
.hero__art { margin: 0; }
.hero__art svg { width: 100%; height: auto; }
.hero__art figcaption { margin-top: 8px; font-size: .875rem; color: var(--ink-soft); text-align: center; }
.sun { fill: var(--sun); }

/* Panels are drawn centred on their pivot, so rotating around the box centre keeps them on the post. */
.tilt { transform-box: fill-box; transform-origin: center; animation: tilt 9s ease-in-out infinite alternate; }
.block + .block .tilt { animation-delay: -3s; }
@keyframes tilt { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.waves path { animation: pulse 2.4s ease-out infinite; }
.waves path:nth-child(2n) { animation-delay: .4s; }
@keyframes pulse { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tilt, .waves path { animation: none; }
  .team a, .team__arrow { transition: none; }
}

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section--band { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #dfe9e8; }
.section--dark h2 { color: #fff; }
.eyebrow--light { color: var(--sky); }
.section--dark h2 { max-width: 22ch; }
.section__intro--light { color: #c4d6d6; margin-bottom: 0; }

/* Problem section: lettering filled with a cracked dry-soil photo (images/dry.jpg), clipped to the text. */
.section--dry { --soil: #a46a36; }
.section--dry .eyebrow { color: var(--soil); }
.section--dry h2,
.section--dry .stat {
  color: var(--soil);
  background: var(--soil) url("/images/dry.jpg") center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section--dry .card { border-color: #dccdb8; }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.split h2 { margin-bottom: 24px; }
.prose { font-size: 1.0625rem; color: var(--ink-soft); }

/* Cards */
.cards { display: grid; gap: 24px; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.cards--2 { margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card--plain { background: var(--paper); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.stat { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--green); margin-bottom: 16px; }
.stat--word { color: var(--ink); }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); transform-origin: 30% 60%; }
.ticks strong { color: var(--ink); font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 24px; counter-reset: none; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 32px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green); margin-bottom: 24px; }
.step__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__num { position: absolute; top: 32px; right: 24px; font-weight: 700; font-size: .875rem; color: var(--leaf); letter-spacing: .05em; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

/* Evidence */
.evidence { margin-top: 48px; padding: 32px; border-radius: var(--radius); background: var(--ink); color: #dfe9e8; }
.evidence__label { font-weight: 600; color: var(--sky); margin-bottom: 24px; }
.evidence__grid { display: grid; gap: 24px; margin: 0 0 24px; }
@media (min-width: 720px) { .evidence__grid { grid-template-columns: repeat(3, 1fr); } }
.evidence dt { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.evidence dd { margin: 4px 0 0; font-size: .9375rem; }
.evidence__note { margin: 0; font-size: .8125rem; color: #a9c2c3; max-width: 72ch; }

/* Features */
.features { display: grid; gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { background: var(--paper); padding: 32px; }
.features h3 { margin-bottom: 8px; }
.features p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

/* Status */
.status { margin-top: 48px; padding: 32px; border: 1px dashed var(--green); border-radius: var(--radius); }
.status h3 { margin-bottom: 16px; }
.status__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .status__list { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.status__list li { position: relative; padding-left: 24px; font-size: .9375rem; color: var(--ink-soft); }
.status__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.status__list .is-done::before { background: var(--green); border-color: var(--green); }
.status__list .is-now { color: var(--ink); font-weight: 500; }
.status__list .is-now::before { border-color: var(--leaf); box-shadow: inset 0 0 0 3px var(--paper); background: var(--leaf); }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.team a {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4;
  transition: border-color .15s ease, background-color .15s ease;
}
.team a:hover { border-color: var(--green); background: #fff; color: var(--ink-soft); }
.team strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.team__arrow { flex: none; width: 20px; height: 20px; margin-left: auto; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.team a:hover .team__arrow { transform: translate(2px, -2px); }

/* Form */
.contact-direct { color: var(--ink-soft); }
.form { display: grid; gap: 20px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid #b9beb2; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(76, 154, 42, .35); outline-offset: 0; border-color: var(--leaf); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; font-size: .8125rem; color: var(--error); }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9375rem; min-height: 1.5em; }
.form__status.is-ok { color: var(--green); font-weight: 500; }
.form__status.is-err { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { padding: 48px 0 32px; background: var(--ink); color: #c4d6d6; }
.footer .brand { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer__inner p { margin: 12px 0 0; max-width: 40ch; font-size: .9375rem; }
.footer__contact { display: grid; gap: 4px; }
.footer a { color: #fff; }
.footer__legal { margin-top: 32px; font-size: .8125rem; color: #8fa9aa; }
