:root {
  --green-900: #0d2b1f;
  --green-800: #123825;
  --green-700: #1b4d33;
  --green-600: #276b46;
  --green-500: #35895c;
  --green-100: #e5f3ea;
  --amber-600: #d98e2b;
  --amber-500: #f0a93c;
  --amber-400: #f7c368;
  --amber-100: #fdf1dc;
  --ink: #14201a;
  --paper: #faf8f3;
  --paper-2: #f2efe6;
  --line: #dfe3da;
  --muted: #5b6b60;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(13, 43, 31, 0.10);
  --shadow-lg: 0 20px 60px rgba(13, 43, 31, 0.16);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-700);
  background: var(--green-100);
  border: 1px solid rgba(39, 107, 70, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand .logo-badge { width: 36px; height: 36px; }
.brand small {
  display: block;
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-800);
}
.nav-links a { opacity: 0.8; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-700);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  margin-inline-end: 4px;
}
.mobile-menu {
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 85% -10%, rgba(240, 169, 60, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(39, 107, 70, 0.18), transparent 60%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.15;
  margin: 18px 0 20px;
  color: var(--green-900);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--amber-600);
  background: linear-gradient(180deg, transparent 62%, var(--amber-100) 62%);
}
.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(27, 77, 51, 0.3);
}
.btn-ghost {
  background: var(--white);
  color: var(--green-800);
  border: 1px solid var(--line);
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.6rem;
  color: var(--green-800);
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-art {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- Section basics ---------- */
section { padding: 84px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--green-900);
  margin: 14px 0 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.left { text-align: right; margin: 0 0 44px; }

.bg-alt { background: var(--paper-2); }
.bg-dark {
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: var(--white);
}
.bg-dark .section-head p { color: #cfe3d6; }
.bg-dark .eyebrow { background: rgba(255,255,255,0.08); color: var(--amber-400); border-color: rgba(255,255,255,0.2); }

/* ---------- Mission / value cards ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.value-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--green-900); }
.value-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Phases timeline ---------- */
.phases {
  display: grid;
  gap: 20px;
}
.phase-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.phase-num {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--green-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.phase-card.active .phase-num { background: var(--amber-500); color: var(--green-900); }
.phase-body h3 {
  font-size: 1.3rem;
  color: var(--green-900);
  margin-bottom: 6px;
}
.phase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-600);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.phase-list { margin-top: 14px; display: grid; gap: 10px; }
.phase-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.96rem;
}
.phase-list li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  margin-top: 8px;
  flex-shrink: 0;
}
.phase-icon { width: 74px; opacity: 0.9; }

/* ---------- Data engine tasks ---------- */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.task-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 24px;
}
.task-card .task-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--amber-400);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.task-card h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--white); }
.task-card p { font-size: 0.9rem; color: #cfe3d6; }

/* ---------- System build grid ---------- */
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.system-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.system-card .icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--amber-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.system-card h4 { color: var(--green-900); font-size: 1.02rem; margin-bottom: 6px; }
.system-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Digital Twin demo ---------- */
.check-list { margin-top: 22px; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.98rem;
}
.check-list li .tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dashboard-mock {
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.dashboard-mock svg { width: 100%; height: auto; display: block; }

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.demo-tab:hover { transform: translateY(-1px); }
.demo-tab.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow);
}
.demo-stage { max-width: 760px; margin: 0 auto; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }

/* Field map panel — Agronomic Risk Map */
.field-map-card {
  background: var(--green-900);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
}
.map-mono {
  font-family: "SF Mono", "Courier New", Consolas, monospace;
}
.map-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.map-header h4 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
}
.map-header span {
  color: #7f9c8c;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.map-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.map-meta-item .meta-label {
  display: block;
  color: #7f9c8c;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.map-meta-item .meta-value {
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
}
.map-layers {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.map-layer-btn {
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: #cfe3d6;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.map-layer-btn.active {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--green-900);
}
.map-grid-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0a1f15 url("assets/field-aerial.jpg") center/cover no-repeat;
}
.map-grid-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,21,0.35), rgba(10,31,21,0.55));
  pointer-events: none;
}
.map-grid {
  position: relative;
  z-index: 1;
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(var(--map-cols, 10), 1fr);
  gap: 3px;
  padding: 3px;
}
.map-cell {
  aspect-ratio: 1.15 / 1;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: outline .15s;
}
.map-cell.healthy { background: rgba(53,137,92,0.55); }
.map-cell.watch { background: rgba(240,169,60,0.6); }
.map-cell.elevated { background: rgba(217,142,43,0.68); }
.map-cell.critical { background: rgba(226,87,76,0.7); }
.map-cell.dim { background: rgba(53,137,92,0.18); }
.map-cell.highlight { outline: 2px solid var(--amber-400); outline-offset: -2px; }
.map-stat-float {
  position: absolute;
  z-index: 2;
  background: rgba(10,31,21,0.82);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 12px 18px;
}
.map-stat-float.top-start { top: 14px; inset-inline-start: 14px; }
.map-stat-float.bottom-end { bottom: 14px; inset-inline-end: 14px; }
.map-stat-float b { display: block; color: var(--amber-400); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.map-stat-float span { color: #9fbcaa; font-size: 0.62rem; letter-spacing: 0.06em; }
.map-pins-svg { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--green-900);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green-900);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.map-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.8rem;
  color: #cfe3d6;
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* Dashboard panel */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dash-kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.dash-kpi span { display: block; font-size: 0.76rem; color: var(--muted); margin-bottom: 6px; }
.dash-kpi b { font-size: 1.35rem; color: var(--green-900); }
.dash-kpi b.amber { color: var(--amber-600); }
.dash-chart-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.dash-chart-card .demo-card-title { font-size: 0.85rem; color: var(--green-800); margin-bottom: 14px; }
.dash-chart-card svg { width: 100%; height: auto; display: block; }
.automation-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 18px;
  box-shadow: var(--shadow);
}
.automation-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--ink);
}
.automation-list li + li { border-top: 1px solid var(--line); }
.automation-list .status-ok { color: var(--green-600); font-weight: 700; font-size: 0.78rem; }
.automation-list .status-pending { color: var(--amber-600); font-weight: 700; font-size: 0.78rem; }

/* Phone frame (mobile alert) */
.phone-frame {
  width: 260px;
  margin: 0 auto;
  background: var(--green-900);
  border-radius: 36px;
  padding: 14px 10px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: linear-gradient(180deg, #fdf1dc, #e5f3ea);
  border-radius: 24px;
  min-height: 420px;
  padding: 18px 12px;
  position: relative;
  overflow: hidden;
}
.phone-screen .phone-time { text-align: center; color: var(--green-900); font-weight: 800; font-size: 1.6rem; margin-bottom: 4px; }
.phone-screen .phone-date { text-align: center; color: var(--muted); font-size: 0.75rem; margin-bottom: 18px; }
.notif-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 6px 16px rgba(13,43,31,0.12);
}
.notif-card .notif-top { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; color: var(--green-700); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.notif-card .notif-body { font-size: 0.8rem; color: var(--ink); line-height: 1.4; }
.notif-card .notif-time { font-size: 0.65rem; color: var(--muted); }
.wa-bubble {
  background: #dcf3d5;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #1c3a24;
  margin-top: 18px;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(13,43,31,0.10);
}
.wa-bubble .wa-head { font-weight: 700; font-size: 0.72rem; color: var(--green-700); margin-bottom: 4px; }

/* Agent conversation panel */
.chat-window {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.chat-header {
  background: var(--green-800);
  color: var(--white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header .chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--green-900);
  flex-shrink: 0;
}
.chat-header .chat-title { font-weight: 700; font-size: 0.9rem; }
.chat-header .chat-status { font-size: 0.7rem; color: #a9d4b8; display: flex; align-items: center; gap: 5px; }
.chat-header .chat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6bd18c; display: inline-block; }
.chat-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--paper-2);
}
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.5; }
.msg.user { justify-self: end; background: var(--green-700); color: var(--white); border-bottom-right-radius: 4px; }
.msg.agent { justify-self: start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
[dir="rtl"] .msg.user { justify-self: start; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .msg.agent { justify-self: end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.msg-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.msg-actions button {
  border: none;
  background: var(--amber-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.msg-actions button:hover { background: var(--amber-400); }
.msg.confirmed { background: var(--green-100); border: 1px solid rgba(39,107,70,0.25); color: var(--green-800); }

/* Report panel */
.report-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.report-head {
  background: var(--green-800);
  color: var(--white);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.report-head h3 { font-size: 1.1rem; margin-bottom: 4px; }
.report-head p { font-size: 0.78rem; color: #cfe3d6; }
.report-body { padding: 24px 26px; }
.report-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.report-kpi-row .kpi { text-align: center; padding: 14px 8px; background: var(--paper-2); border-radius: 12px; }
.report-kpi-row .kpi b { display: block; font-size: 1.2rem; color: var(--green-900); }
.report-kpi-row .kpi span { display: block; font-size: 0.72rem; color: var(--muted); }
.report-kpi-row .kpi .delta { font-size: 0.72rem; font-weight: 700; color: var(--green-600); }
.report-chart-wrap { margin-bottom: 22px; }
.report-chart-wrap svg { width: 100%; height: auto; display: block; }
.report-list { display: grid; gap: 10px; margin-bottom: 6px; }
.report-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink);
}
.report-list li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 800;
  flex-shrink: 0;
}
.report-foot {
  border-top: 1px solid var(--line);
  padding: 14px 26px;
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Calculator ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
.calc-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.calc-field { margin-bottom: 18px; }
.calc-field:last-of-type { margin-bottom: 0; }
.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 8px;
}
.calc-field label span { color: var(--amber-600); font-weight: 800; }
.calc-field select,
.calc-field input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.92rem;
  font-family: inherit;
}
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--green-700);
  height: 6px;
}
.calc-hint { font-size: 0.74rem; color: var(--muted); margin-top: 6px; }
.calc-recommend {
  margin-top: 20px;
  background: var(--green-100);
  border: 1px solid rgba(39,107,70,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--green-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.calc-recommend b { color: var(--green-900); }
.calc-optimal-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.calc-total {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.calc-total > span:first-child { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.calc-total b { display: block; font-size: 2.1rem; color: var(--green-900); }
.calc-uplift { display: inline-block; margin-top: 8px; font-size: 0.82rem; font-weight: 700; color: var(--green-600); }
.calc-bar {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 12px;
}
.calc-bar-crop { background: var(--green-600); height: 100%; transition: width .25s ease; }
.calc-bar-energy { background: var(--amber-500); height: 100%; transition: width .25s ease; }
.calc-bar-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.calc-bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calc-bar-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.calc-bar-legend i.crop { background: var(--green-600); }
.calc-bar-legend i.energy { background: var(--amber-500); }
.calc-bar-legend b { color: var(--green-900); }
.calc-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.calc-sub-row > div {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.calc-sub-row span { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 4px; }
.calc-sub-row b { font-size: 1.05rem; color: var(--green-900); }
.calc-disclaimer { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

/* ---------- Flywheel / scale up ---------- */
.flywheel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.flywheel-art svg { width: 100%; height: auto; }
.flywheel-copy .stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.flywheel-copy .stat-box {
  background: var(--green-100);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.flywheel-copy .stat-box b { display: block; font-size: 1.4rem; color: var(--green-800); }
.flywheel-copy .stat-box span { font-size: 0.78rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  color: var(--green-900);
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta p { max-width: 50ch; margin: 0 auto 26px; opacity: 0.85; }
.cta .btn-primary { background: var(--green-900); }

/* ---------- Footer ---------- */
footer {
  background: var(--green-900);
  color: #cfe3d6;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 0.95rem; }
.footer-grid ul { display: grid; gap: 10px; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #9fbcaa;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ================= Responsive ================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: 1fr; }
  .flywheel { grid-template-columns: 1fr; }
  .flywheel-art { order: -1; max-width: 420px; margin: 0 auto; }
  .calc-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .mobile-menu {
    flex-direction: column;
    gap: 4px;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--line);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 12px 6px;
    font-weight: 600;
    color: var(--green-800);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a.btn { border-bottom: none; }
  .mobile-menu .btn { margin-top: 12px; justify-content: center; }
  .mobile-menu .btn-primary { color: var(--white); }
  .hero { padding: 40px 0 24px; }
  .hero-stats { gap: 18px; }
  .hero-stats .stat b { font-size: 1.3rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .phase-card { grid-template-columns: auto 1fr; }
  .phase-icon { display: none; }
  .cta { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .demo-tabs { gap: 8px; }
  .demo-tab { padding: 9px 14px; font-size: 0.82rem; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpis .dash-kpi:last-child { grid-column: 1 / -1; }
  .report-kpi-row { grid-template-columns: 1fr 1fr; }
  .report-kpi-row .kpi:last-child { grid-column: 1 / -1; }
  .phone-frame { width: 100%; max-width: 260px; }
  .report-head { padding: 18px 20px; }
  .report-body { padding: 20px; }
  .calc-panel { padding: 20px; }
  .calc-total b { font-size: 1.7rem; }
  .field-map-card { padding: 16px; }
  .map-header h4 { font-size: 1.05rem; }
  .map-meta { grid-template-columns: 1fr 1fr; padding: 12px 14px; gap: 12px; }
  .map-stat-float { padding: 8px 12px; }
  .map-stat-float b { font-size: 1.2rem; }
  .map-pin { width: 20px; height: 20px; font-size: 0.6rem; }
}
