:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --surface-2: #f1f5f2;
  --ink: #0f1f17;
  --ink-2: #2d3b34;
  --muted: #5b6b62;
  --line: #e3e8e4;
  --line-2: #d2dad4;
  --emerald: #047857;
  --emerald-2: #065f46;
  --emerald-bg: #ecfdf5;
  --slate: #334155;
  --warn-bg: #fef7e6;
  --warn-line: #f0d588;
  --warn-ink: #7a5a05;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4 { font-family: "Inter", sans-serif; letter-spacing: -0.02em; color: var(--ink); margin: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--emerald) 0%, #10b981 100%);
  display: grid; place-items: center; color: white; font-size: 14px; font-weight: 700;
}
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.pill { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--emerald-bg); color: var(--emerald-2); border: 1px solid #b8e8d0; letter-spacing: 0.02em; text-transform: uppercase; }
.pill-slate { background: #eef2f4; color: #334155; border-color: #d4dbe0; }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }

.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; font-weight: 600; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 580px; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--emerald-2); margin-bottom: 10px; }

.hero { padding: 68px 0 24px; }
.hero h1 { font-size: 52px; font-weight: 600; line-height: 1.05; max-width: 950px; }
.hero h1 .accent { color: var(--emerald-2); }
.hero-sub { color: var(--ink-2); font-size: 18px; max-width: 760px; margin-top: 18px; line-height: 1.55; }
.hero-meta { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta .item { font-size: 13px; }
.hero-meta .item .k { color: var(--muted); display: block; margin-bottom: 4px; }
.hero-meta .item .v { font-weight: 600; font-size: 16px; color: var(--ink); }

.disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-left: 3px solid #c08a00;
  border-radius: 8px; padding: 14px 16px; margin-top: 28px;
  font-size: 14px; color: var(--warn-ink);
}
.disclaimer .icon { flex: 0 0 auto; margin-top: 1px; }
.disclaimer strong { color: #5a4204; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.kpi .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .value { font-size: 26px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 12px; color: var(--emerald); margin-top: 4px; }
.kpi .delta.muted { color: var(--muted); }

.synergy-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.synergy-frame img { display: block; width: 100%; height: auto; }
.synergy-caption { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-2); }
.legend .dot { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot::before { content: ""; width: 18px; height: 2px; background: var(--emerald); border-radius: 2px; }
.legend .dot.dashed::before { background: transparent; border-top: 2px dashed #4f7cb8; }

.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.module {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 14px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.15s ease;
  cursor: pointer; position: relative;
}
.module:hover { border-color: var(--emerald); box-shadow: 0 6px 22px -8px rgba(4,120,87,0.18); transform: translateY(-1px); }
.module .num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.04em; }
.module .name { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.module .meta { font-size: 12px; color: var(--muted); margin-top: auto; }
.module .capex { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.module .capex.zero { color: var(--muted); font-weight: 400; }
.module .tag { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.module .tag.crops { background: #ecfdf5; color: var(--emerald-2); }
.module .tag.animal { background: #fef3e6; color: #92400e; }
.module .tag.energy { background: #fef9c3; color: #854d0e; }
.module .tag.process { background: #eef2ff; color: #3730a3; }
.module .tag.service { background: #f1f5f9; color: var(--slate); }

.capex-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px;
}
.capex-bar-list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.capex-bar { display: grid; grid-template-columns: 180px 1fr 130px; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.capex-bar:first-of-type { border-top: 0; }
.capex-bar .lab { font-weight: 500; font-size: 14px; }
.capex-bar .track { background: var(--surface-2); height: 8px; border-radius: 999px; position: relative; overflow: hidden; }
.capex-bar .fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #34d399 0%, var(--emerald) 100%); border-radius: 999px; }
.capex-bar .range-fill { position: absolute; top: 0; bottom: 0; background: rgba(4,120,87,0.18); border-radius: 999px; }
.capex-bar .num { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; font-weight: 500; }
.capex-side { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.capex-side .total { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.capex-side .total small { font-size: 14px; color: var(--muted); font-weight: 400; }
.capex-side .row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-top: 1px dashed var(--line); }
.capex-side .row:first-of-type { border-top: 0; padding-top: 0; }
.capex-side .row span:first-child { color: var(--muted); }
.capex-side .row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }

.calc-block {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px;
}
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.calc-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.calc-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.slider-row { padding: 16px 0; border-top: 1px solid var(--line); }
.slider-row:first-of-type { border-top: 0; padding-top: 4px; }
.slider-row .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-row .head .lab { font-size: 14px; font-weight: 500; }
.slider-row .head .val { font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--emerald-2); }
.slider-row .head .val.warn { color: #b54708; }
.slider-row .head .val.boost { color: var(--emerald); }
.slider-row .head .base { font-size: 11px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.slider-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: var(--line-2); border-radius: 999px; outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 2px solid var(--emerald); cursor: pointer;
  box-shadow: 0 2px 6px rgba(4,120,87,0.25);
  transition: transform 0.1s ease;
}
.slider-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 2px solid var(--emerald); cursor: pointer;
}
.slider-row .ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.results { display: flex; flex-direction: column; gap: 12px; }
.result-card {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: white; border-radius: 14px; padding: 22px 24px; position: relative; overflow: hidden;
}
.result-card.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.result-card .lab { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.result-card .val { font-size: 30px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result-card .val small { font-size: 14px; opacity: 0.75; font-weight: 400; }
.result-card .sub { font-size: 12px; opacity: 0.85; margin-top: 6px; }
.result-card.alt .sub { color: var(--muted); opacity: 1; }

.payback-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.payback-card .lab { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.payback-card .range { font-size: 30px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.payback-card .range small { font-size: 14px; color: var(--muted); font-weight: 400; }
.payback-card .meter { margin-top: 14px; height: 8px; background: var(--surface-2); border-radius: 999px; position: relative; overflow: hidden; }
.payback-card .meter .span {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, #34d399 0%, var(--emerald) 100%);
  border-radius: 999px;
}
.payback-card .meter-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 5px; }

.sources {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}
.sources .head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.sources .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sources .chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }

.checkpoint-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.cp-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; }
.cp-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: start; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--line); }
.cp-row:first-of-type { border-top: 0; }
.cp-row .check {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); margin-top: 2px;
  display: grid; place-items: center; cursor: pointer; transition: all 0.15s ease; background: white;
}
.cp-row .check.checked { background: var(--emerald); border-color: var(--emerald); }
.cp-row .check.checked svg { display: block; }
.cp-row .check svg { display: none; }
.cp-row .body .title { font-size: 14px; font-weight: 600; }
.cp-row .body .desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cp-row .stage { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; align-self: center; }
.cp-row .stage.tech { background: #eef2ff; color: #3730a3; }
.cp-row .stage.legal { background: #fef9c3; color: #854d0e; }
.cp-row .stage.market { background: #fce7f3; color: #9d174d; }
.cp-row .stage.fin { background: var(--emerald-bg); color: var(--emerald-2); }

.cp-side { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.cp-side h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.cp-progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.cp-progress .fill { height: 100%; background: linear-gradient(90deg, #34d399, var(--emerald)); border-radius: 999px; transition: width 0.3s ease; }
.cp-stages { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cp-stage-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; }
.cp-stage-item .num { font-size: 11px; font-weight: 700; color: var(--emerald-2); width: 18px; }
.cp-stage-item .lab { flex: 1; }
.cp-stage-item .status { font-size: 11px; color: var(--muted); }
.cp-stage-item.active { background: var(--emerald-bg); }
.cp-stage-item.active .status { color: var(--emerald-2); font-weight: 600; }

.foot { padding: 36px 0 60px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .capex-block, .calc-block, .checkpoint-block { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .capex-bar { grid-template-columns: 130px 1fr 100px; }
}
