:root {
  color-scheme: light;
  --bg: #f5f8f3;
  --surface: #ffffff;
  --surface-strong: #edf4eb;
  --surface-muted: #e4eee4;
  --ink: #0c1d14;
  --muted: #51665a;
  --muted-strong: #34483d;
  --brand: #0d6b42;
  --brand-strong: #084c31;
  --brand-soft: #dcefe4;
  --mint: #20a873;
  --gold: #bc7d18;
  --sky: #3b82a0;
  --field: #0d6b42;
  --danger: #a74722;
  --border: #d7e5d9;
  --shadow: 0 24px 70px rgba(17, 42, 27, 0.12);
  --shadow-soft: 0 14px 42px rgba(17, 42, 27, 0.09);
  --on-dark: #f7fff8;
  --on-dark-muted: #c9d9cf;
  --radius: 8px;
  --max: 1180px;
  --header-h: 76px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06100b;
  --surface: #0c1b12;
  --surface-strong: #102719;
  --surface-muted: #183421;
  --ink: #f2fbf4;
  --muted: #a7b9ad;
  --muted-strong: #d2e1d7;
  --brand: #37c184;
  --brand-strong: #68d89e;
  --brand-soft: #123622;
  --mint: #4ccf94;
  --gold: #e0ab4d;
  --sky: #79bfd8;
  --danger: #ff9f6c;
  --border: #21432e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(32, 168, 115, 0.25);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--gold));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  color: var(--on-dark);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(5, 31, 17, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 7px;
  background: #ffffff;
}

.brand-logo {
  width: 132px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .brand-logo,
:root[data-theme="light"] .site-header.is-scrolled .brand-logo {
  filter: none;
}

:root[data-theme="dark"] .site-header.is-scrolled .brand-logo {
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible {
  background: var(--surface-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.nav-toggle,
.back-to-top {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.icon-button {
  width: 42px;
  height: 42px;
}

.site-header.is-scrolled .icon-button,
.site-header.is-scrolled .nav-toggle {
  border-color: var(--border);
  background: var(--surface);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--mint));
  box-shadow: 0 14px 32px rgba(13, 107, 66, 0.28);
}

.button-soft {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 18%, transparent);
}

.button-ghost {
  color: currentColor;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .button-ghost {
  color: var(--ink);
  border-color: var(--border);
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, rgba(245, 248, 243, 0.9) 82%, var(--bg));
  z-index: -1;
}

:root[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg, transparent, rgba(6, 16, 11, 0.92) 82%, var(--bg));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("https://images.unsplash.com/photo-1523741543316-beb7fc7023d8?auto=format&fit=crop&w=2200&q=82");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 20, 12, 0.92), rgba(4, 32, 18, 0.72) 46%, rgba(5, 24, 16, 0.36)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08) 45%, rgba(3, 20, 12, 0.7));
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.62;
}

.hero-content {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 52px) 0 148px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.58fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2bd55;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--on-dark-muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

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

.hero .button-soft {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-metrics {
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 35, 21, 0.55);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  color: #ffffff;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

.command-panel {
  min-height: 520px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(4, 29, 18, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-topline,
.signal-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-topline span,
.signal-grid span {
  color: var(--on-dark-muted);
  font-size: 0.84rem;
}

.panel-topline strong {
  color: #b5f3c6;
  font-size: 0.82rem;
}

.map-preview {
  position: relative;
  height: 350px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, rgba(25, 116, 72, 0.42), rgba(2, 34, 22, 0.86));
  background-size: 38px 38px, 38px 38px, auto;
}

.field {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(60, 203, 130, 0.28);
  clip-path: polygon(8% 12%, 88% 2%, 100% 68%, 56% 100%, 4% 78%);
  box-shadow: inset 0 0 28px rgba(166, 242, 178, 0.2);
}

.field-one {
  top: 34px;
  left: 28px;
  width: 44%;
  height: 32%;
}

.field-two {
  top: 58px;
  right: 26px;
  width: 36%;
  height: 42%;
  background: rgba(231, 177, 77, 0.24);
}

.field-three {
  left: 46px;
  bottom: 38px;
  width: 38%;
  height: 34%;
  background: rgba(78, 181, 212, 0.24);
}

.field-four {
  right: 36px;
  bottom: 42px;
  width: 34%;
  height: 28%;
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  animation: scanMap 5s ease-in-out infinite;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.signal-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

.agri-motion {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 2;
  height: 96px;
  pointer-events: none;
  overflow: hidden;
}

.field-row {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(207, 230, 179, 0.3) 0 72px, rgba(132, 176, 95, 0.55) 72px 148px);
  animation: fieldRowSlide 16s linear infinite;
}

.row-one {
  bottom: 28px;
}

.row-two {
  bottom: 10px;
  opacity: 0.7;
  animation-duration: 22s;
}

.machine {
  position: absolute;
  bottom: 30px;
  width: 132px;
  height: 60px;
}

.tractor {
  left: -150px;
  animation: tractorDrive 24s linear infinite;
}

.tractor-body,
.tractor-cab,
.sprayer-body,
.sprayer-arm,
.wheel,
.dust,
.spray {
  position: absolute;
  display: block;
}

.tractor-body {
  left: 30px;
  bottom: 16px;
  width: 74px;
  height: 30px;
  border-radius: 7px 10px 5px 5px;
  background: linear-gradient(135deg, #d99a22, #995b13);
}

.tractor-cab {
  left: 72px;
  bottom: 43px;
  width: 34px;
  height: 26px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(135deg, #e9f6fb, #83bbca);
  border: 4px solid #12391f;
}

.wheel {
  bottom: 0;
  border-radius: 50%;
  border: 5px solid #132115;
  background: radial-gradient(circle, #e6d19a 0 20%, #293326 22% 42%, #111 44%);
  animation: wheelSpin 700ms linear infinite;
}

.wheel-back {
  left: 22px;
  width: 42px;
  height: 42px;
}

.wheel-front {
  right: 15px;
  width: 30px;
  height: 30px;
}

.dust {
  bottom: 6px;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(239, 213, 148, 0.55);
  animation: dustPulse 1.8s ease-in-out infinite;
}

.dust-one {
  left: -8px;
}

.dust-two {
  left: 8px;
  animation-delay: 400ms;
}

.sprayer {
  left: -220px;
  width: 190px;
  animation: sprayerDrive 30s linear infinite 6s;
}

.sprayer-body {
  right: 44px;
  bottom: 18px;
  width: 68px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4fbf8a, #126b45);
}

.sprayer-arm {
  left: 0;
  right: 72px;
  bottom: 42px;
  height: 5px;
  border-radius: 999px;
  background: #d7ece1;
}

.spray {
  width: 2px;
  height: 22px;
  bottom: 18px;
  background: linear-gradient(180deg, rgba(181, 239, 214, 0.9), transparent);
  animation: sprayBlink 1.1s ease-in-out infinite;
}

.spray-one {
  left: 34px;
}

.spray-two {
  left: 78px;
  animation-delay: 300ms;
}

.outcome-strip {
  width: min(var(--max), calc(100% - 44px));
  margin: -52px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow-soft);
}

.outcome-strip div {
  padding: 24px;
  background: var(--surface);
}

.outcome-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.outcome-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 136px) 0;
}

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

.section-heading p:not(.eyebrow),
.split-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.module-grid,
.impact-layout,
.partner-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card,
.impact-card,
.partner-card,
.price-card,
.workflow-step {
  position: relative;
  overflow: hidden;
  min-height: 218px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(32, 168, 115, 0.16), transparent 44%);
  transition: opacity 160ms ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.module-icon,
.workflow-step span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 42px;
  border-radius: var(--radius);
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-weight: 900;
}

.module-card p,
.impact-card p,
.partner-card p,
.price-card p,
.workflow-step p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.ethiopia-band,
.security-section {
  width: 100%;
  max-width: none;
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
  background: var(--surface-strong);
}

.split-copy {
  max-width: 600px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted-strong);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.split-visual {
  position: relative;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: var(--on-dark);
  background: rgba(4, 29, 18, 0.78);
  backdrop-filter: blur(14px);
}

.visual-caption strong,
.visual-caption span {
  display: block;
}

.visual-caption span {
  margin-top: 4px;
  color: var(--on-dark-muted);
  font-size: 0.93rem;
}

.government-section {
  width: 100%;
  max-width: none;
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
  color: var(--on-dark);
  background:
    linear-gradient(135deg, rgba(6, 45, 28, 0.94), rgba(9, 72, 48, 0.9)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1800&q=78") center/cover;
}

.government-section h2,
.government-section h3 {
  color: var(--on-dark);
}

.government-section .section-heading p:not(.eyebrow),
.government-section .impact-card p {
  color: var(--on-dark-muted);
}

.government-section .impact-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: steps;
}

.architecture-section {
  padding-bottom: 70px;
}

.partners-section {
  padding-top: 70px;
}

.capability-list {
  display: grid;
  gap: 12px;
}

.capability-list div {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.capability-list strong,
.capability-list span {
  display: block;
}

.capability-list span {
  margin-top: 5px;
  color: var(--muted);
}

.pricing-section {
  padding-bottom: 70px;
}

.price-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.plan-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.price-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.price-featured {
  color: var(--on-dark);
  background: linear-gradient(145deg, var(--brand-strong), #0d7a4f);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.price-featured h3,
.price-featured p {
  color: var(--on-dark);
}

.price-featured .plan-label {
  color: #f6c46a;
}

.contact-section {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.78fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
  padding-left: max(22px, calc((100vw - var(--max)) / 2));
  padding-right: max(22px, calc((100vw - var(--max)) / 2));
  background: var(--surface-strong);
}

.contact-copy {
  max-width: 620px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--brand-strong);
  font-weight: 800;
}

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  color: var(--muted);
}

.footer-logo {
  width: 148px;
  margin-bottom: 12px;
  filter: none;
}

:root[data-theme="dark"] .footer-logo {
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 460px;
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted-strong);
  font-weight: 800;
}

.footer-meta {
  font-size: 0.9rem;
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  color: #ffffff;
  border-color: transparent;
  background: var(--brand);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal-up,
.reveal-left,
.reveal-right,
.reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-left {
  transform: translateX(-26px);
}

.reveal-right {
  transform: translateX(26px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-section.visible,
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-section.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes scanMap {
  0%, 100% { left: 5%; opacity: 0.2; }
  45%, 55% { opacity: 1; }
  100% { left: 94%; }
}

@keyframes tractorDrive {
  from { transform: translateX(-170px); }
  to { transform: translateX(calc(100vw + 220px)); }
}

@keyframes sprayerDrive {
  from { transform: translateX(-240px); }
  to { transform: translateX(calc(100vw + 260px)); }
}

@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}

@keyframes dustPulse {
  0%, 100% { transform: translateX(0) scale(0.6); opacity: 0; }
  45% { transform: translateX(-28px) scale(1); opacity: 0.7; }
}

@keyframes fieldRowSlide {
  from { transform: translateX(0); }
  to { transform: translateX(148px); }
}

@keyframes sprayBlink {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(5px); }
}

@media (max-width: 1060px) {
  .login-link {
    display: none;
  }

  .hero-content,
  .section-split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .command-panel {
    min-height: auto;
  }

  .map-preview {
    height: 280px;
  }

  .module-grid,
  .impact-layout,
  .partner-grid,
  .pricing-grid,
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 118px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--header-h) - 1px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .hero-content {
    width: min(100% - 32px, var(--max));
    padding-top: calc(var(--header-h) + 34px);
    padding-bottom: 132px;
  }

  .hero-metrics,
  .signal-grid,
  .outcome-strip,
  .module-grid,
  .impact-layout,
  .partner-grid,
  .pricing-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .outcome-strip {
    width: min(100% - 32px, var(--max));
  }

  .section {
    width: min(100% - 32px, var(--max));
  }

  .ethiopia-band,
  .security-section,
  .government-section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    width: min(100% - 32px, var(--max));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 68px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-logo {
    width: 104px;
  }

  .icon-button,
  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 3.9rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .command-panel {
    padding: 14px;
  }

  .map-preview {
    height: 230px;
  }

  .module-card,
  .impact-card,
  .partner-card,
  .price-card,
  .workflow-step,
  .contact-form {
    padding: 20px;
  }

  .agri-motion {
    bottom: 18px;
    transform: scale(0.82);
    transform-origin: left bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Compatibility for the existing blog page. */
.blog-hero,
.blog-grid,
.blog-layout,
.blog-content,
.blog-side,
.blog-card,
.featured-post,
.newsletter-box,
.toc-card {
  color: var(--ink);
}

.blog-card,
.featured-post,
.newsletter-box,
.toc-card,
.featured-post-card,
.search-wrap,
.blog-post,
.sidebar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
