:root {
  --bg: #f4f7f2;
  --ink: #17221e;
  --muted: #607068;
  --panel: #ffffff;
  --line: #d9e2dc;
  --green: #176b4d;
  --green-2: #2f8c6b;
  --blue: #275f9f;
  --gold: #f4b942;
  --coral: #dc6547;
  --shadow: 0 22px 70px rgba(33, 48, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

body::before {
  background:
    linear-gradient(90deg, rgba(23, 107, 77, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(39, 95, 159, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.topbar {
  align-items: center;
  background: rgba(14, 22, 18, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  min-height: 82px;
  justify-content: space-between;
  left: 0;
  padding: 10px clamp(16px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  display: flex;
  gap: 10px;
  font-weight: 850;
  padding: 7px 10px 7px 8px;
}

.brand img {
  border-radius: 6px;
  height: 52px;
  object-fit: contain;
  width: 74px;
}

.brand span {
  color: #133b2b;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 750;
}

.menu-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  width: 48px;
}

.menu-button span {
  background: #fff;
  height: 2px;
  width: 20px;
}

.menu-dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 320px;
  width: calc(100% - 32px);
}

.menu-dialog form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.close-button {
  justify-self: end;
}

.legal-splash {
  background: transparent;
  border: 0;
  max-width: 680px;
  padding: 0;
  width: calc(100% - 32px);
}

.legal-splash::backdrop {
  background:
    linear-gradient(rgba(5, 14, 10, 0.66), rgba(5, 14, 10, 0.78)),
    url("assets/agrishield-drone-hero.png") center / cover;
}

.legal-splash-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 18px;
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: clamp(18px, 4vw, 30px);
}

.legal-brand {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
}

.legal-brand img {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 64px;
  object-fit: contain;
  width: 92px;
}

.legal-brand span {
  color: var(--green);
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-brand strong {
  display: block;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.15;
}

.legal-copy h2 {
  color: var(--ink);
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 12px;
}

.legal-copy p,
.legal-copy li {
  color: #40504a;
  font-size: 16px;
  line-height: 1.55;
}

.legal-copy ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-splash .primary-button {
  justify-self: start;
}

.hero {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  min-height: 96vh;
  overflow: hidden;
  padding: 140px clamp(16px, 5vw, 72px) 52px;
  position: relative;
}

.hero-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(10, 23, 16, 0.82) 0%, rgba(10, 23, 16, 0.56) 44%, rgba(10, 23, 16, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 23, 16, 0.72), transparent 55%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-copy {
  max-width: 820px;
  padding-bottom: 24px;
}

.eyebrow {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: #fff;
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 14px;
}

h3 {
  font-size: 22px;
  line-height: 1.16;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.service-tile:hover {
  box-shadow: 0 10px 30px rgba(23, 107, 77, 0.16);
  transform: translateY(-1px);
}

.quick-card,
.intro-strip,
.choice-panel,
.help-form,
.answer-panel,
.path-grid article,
.plan-board,
.human-section,
.trust-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-card {
  align-self: end;
  backdrop-filter: blur(14px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.quick-card strong {
  flex: 1 0 100%;
  font-size: 22px;
}

.quick-card span {
  background: #eef6f1;
  border: 1px solid #d4e7db;
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
  padding: 9px 10px;
}

.section {
  margin: 0 auto;
  max-width: 1240px;
  padding: 74px clamp(16px, 4vw, 40px);
}

.intro-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -26px;
  overflow: hidden;
  padding: 0;
  position: relative;
  z-index: 3;
}

.intro-strip div {
  padding: 24px;
}

.intro-strip span,
.panel-top span,
.path-grid article span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.intro-strip strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.section-heading {
  margin-bottom: 24px;
  max-width: 820px;
}

.section-heading.compact {
  max-width: 720px;
}

.app-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.9fr 1.1fr 0.9fr;
}

.choice-panel,
.help-form,
.answer-panel {
  padding: 18px;
}

.service-grid {
  display: grid;
  gap: 10px;
}

.service-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 98px;
  padding: 14px;
  text-align: left;
}

.service-tile.active {
  background: #eaf5ef;
  border-color: var(--green-2);
}

.service-tile span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.service-tile strong {
  font-size: 18px;
}

.service-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.help-form {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.help-form label,
.help-form button {
  align-self: start;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 7px;
}

input,
select,
textarea {
  background: #fbfdfb;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

.span-two,
.help-form button {
  grid-column: 1 / -1;
}

.panel-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.panel-top b {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.answer-panel {
  line-height: 1.55;
}

.answer-panel ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.mini-box {
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.mini-box.warning {
  background: #fff7ea;
  border-color: #f1d49a;
}

.path-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.path-grid article {
  min-height: 238px;
  padding: 20px;
}

.path-grid h3 {
  margin-bottom: 10px;
}

.path-grid p {
  color: var(--muted);
  line-height: 1.45;
}

.path-grid strong {
  color: var(--green);
  display: block;
  line-height: 1.4;
}

.plan-board {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr minmax(280px, 390px);
  padding: 20px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  align-items: center;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 16px;
  min-height: 54px;
  padding: 10px 12px;
}

.task-item input {
  min-height: auto;
  width: 20px;
}

.task-item input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.task-form {
  align-content: start;
  display: grid;
  gap: 12px;
}

.human-section {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr minmax(240px, 360px);
}

.human-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.human-section img {
  background: #eef6f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  width: 100%;
}

.trust {
  padding-bottom: 96px;
}

.trust-card {
  padding: clamp(22px, 4vw, 42px);
}

.trust-card p,
.trust-card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.trust-card ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.trust-card strong {
  color: var(--green);
  display: block;
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .hero,
  .app-shell,
  .human-section,
  .plan-board {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .topbar {
    min-height: 74px;
  }

  .brand {
    max-width: calc(100vw - 84px);
    padding: 6px 8px;
  }

  .brand img {
    height: 44px;
    width: 64px;
  }

  .brand span {
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  h1 {
    font-size: 46px;
  }

  .intro-strip,
  .help-form,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}
