:root {
  --ink: #161a18;
  --muted: #66706a;
  --line: #dce2de;
  --line-strong: #c7d0ca;
  --surface: #f4f7f5;
  --green: #17633d;
  --green-2: #238052;
  --green-soft: #e4f1e9;
  --burgundy: #8f2634;
  --burgundy-soft: #f7e7e9;
  --amber: #a86408;
  --amber-soft: #fff0d3;
  --white: #ffffff;
  --max: 1180px;
  --radius: 6px;
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); }
button, a { font: inherit; }
a { color: inherit; }
[id] { scroll-margin-top: 88px; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  width: min(calc(100% - 48px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--green); color: var(--white); border-radius: 4px; font-size: 15px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.site-nav a { text-decoration: none; color: #3d4540; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); }
.nav-action { padding: 10px 15px; background: var(--green); color: var(--white) !important; border-radius: 4px; }

.section-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.hero { padding: 76px 0 34px; }
.hero-copy { max-width: 820px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: 0; max-width: 900px; }
.hero-copy p { max-width: 760px; margin-bottom: 36px; color: #4f5853; font-size: 18px; line-height: 1.6; }

.project-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-meta div { padding: 17px 18px 18px 0; }
.project-meta div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.project-meta dt { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.project-meta dd { margin: 0; font-size: 14px; font-weight: 700; }

.product-window { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: 0 18px 50px rgba(20, 50, 34, .1); }
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.window-title { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.sheet-symbol { width: 19px; height: 23px; position: relative; border-radius: 2px; background: var(--green-2); }
.sheet-symbol::before, .sheet-symbol::after { content: ""; position: absolute; left: 4px; right: 4px; height: 1px; background: rgba(255,255,255,.8); }
.sheet-symbol::before { top: 9px; box-shadow: 0 4px rgba(255,255,255,.8); }
.sheet-symbol::after { top: 5px; width: 7px; }
.window-tools { display: flex; gap: 7px; }
.window-tools span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #aab3ad; }
.report-toolbar { min-height: 72px; padding: 15px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.report-toolbar > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--muted); font-size: 11px; }
.report-toolbar strong { font-size: 15px; }
.report-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.report-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); }
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.kpi-grid article { min-height: 96px; padding: 20px; }
.kpi-grid article + article { border-left: 1px solid var(--line); }
.kpi-grid span { display: block; margin-bottom: 11px; color: var(--muted); font-size: 11px; }
.kpi-grid strong { font-size: clamp(16px, 2vw, 22px); }
.kpi-positive { background: var(--green-soft); }
.kpi-positive strong { color: var(--green); }
.report-body { display: grid; grid-template-columns: 1.7fr 1fr; min-height: 310px; }
.chart-panel, .control-panel { padding: 24px; }
.control-panel { border-left: 1px solid var(--line); background: #fafbfa; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 12px; }
.panel-heading span { color: var(--muted); font-size: 11px; }
.bar-chart { height: 220px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 20px; border-bottom: 1px solid var(--line-strong); }
.bar-chart div { height: var(--bar); min-height: 12px; position: relative; background: var(--green); }
.bar-chart div span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: var(--muted); font-size: 10px; }
.control-panel ul { list-style: none; padding: 0; margin: 0; }
.control-panel li { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.control-panel strong { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 3px; }
.signal-red { color: var(--burgundy); background: var(--burgundy-soft); }
.signal-amber { color: var(--amber); background: var(--amber-soft); }
.data-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; }

.result-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 30px; }
.result-strip div { min-height: 142px; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.result-strip div + div { border-left: 1px solid var(--line); }
.result-strip strong { color: var(--green); font-size: 34px; line-height: 1; }
.result-strip span { margin-top: 10px; color: var(--muted); font-size: 12px; }

.split-section, .screens-section, .tech-section, .result-section { padding-top: 110px; padding-bottom: 110px; }
.section-heading { display: flex; align-items: baseline; gap: 18px; margin-bottom: 46px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.section-index { color: var(--green); font-size: 13px; font-weight: 800; }
.split-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 84px; }
.lead { max-width: 640px; font-size: 25px; line-height: 1.45; }
.challenge-list { border-top: 1px solid var(--line-strong); }
.challenge-list p { margin: 0; padding: 17px 0; border-bottom: 1px solid var(--line); color: #48504b; font-size: 14px; line-height: 1.5; }

.feature-band { padding: 104px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.feature-list article { padding: 27px 26px 8px 0; }
.feature-list article + article { padding-left: 26px; border-left: 1px solid var(--line-strong); }
.feature-list strong { display: block; margin-bottom: 16px; color: var(--green); font-size: 18px; }
.feature-list p { color: #525b55; font-size: 14px; line-height: 1.65; }

.screen-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.screen-tab { padding: 15px 22px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.screen-tab:hover, .screen-tab:focus-visible { color: var(--green); }
.screen-tab.is-active { color: var(--green); border-bottom-color: var(--green); }
.screen-stage { min-height: 520px; }
.screen-view { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 42px; align-items: start; }
.screen-view[hidden] { display: none; }
.screen-copy { padding-top: 18px; }
.screen-copy h3 { margin-bottom: 14px; font-size: 24px; }
.screen-copy p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.sheet-demo { min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: 0 14px 32px rgba(25, 53, 37, .08); }
.demo-title { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.demo-title span { color: var(--muted); font-size: 10px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mini-kpis div { padding: 18px 16px; }
.mini-kpis div + div { border-left: 1px solid var(--line); }
.mini-kpis span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.mini-kpis b { font-size: 17px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
th { padding: 11px 12px; background: var(--green); color: var(--white); text-align: left; font-weight: 700; }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.legend { min-height: 52px; padding: 0 15px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.legend-green::before { background: var(--green-2); }
.legend-amber::before { background: #dfa541; }
.legend-red::before { background: var(--burgundy); }
.row-green td { background: var(--green-soft); }
.row-amber td { background: var(--amber-soft); }
.row-red td { background: var(--burgundy-soft); }
.dual-demo { min-width: 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; }
.expense-row, .expense-total { min-height: 51px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; }
.expense-total { color: var(--white); background: var(--green); border-bottom: 0; }

.automation-band { padding: 108px 0; background: #152a20; color: var(--white); }
.section-heading-light .section-index { color: #78c899; }
.automation-intro { max-width: 760px; margin-bottom: 48px; color: #bdd0c5; font-size: 18px; line-height: 1.6; }
.architecture { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.architecture-node, .architecture-core { min-height: 135px; padding: 22px; border: 1px solid #496257; border-radius: var(--radius); }
.architecture-node { display: flex; flex-direction: column; }
.architecture-node > span { margin-bottom: 24px; color: #78c899; font-size: 11px; font-weight: 800; }
.architecture-node strong { margin-bottom: 7px; }
.architecture-node small { color: #aabdb2; }
.architecture-core { grid-column: 1 / 3; min-height: 86px; display: flex; align-items: center; justify-content: space-between; background: #204332; border-color: #5b826e; }
.architecture-core span { color: #b9d6c6; font-size: 12px; }
.architecture-output { grid-column: 3; grid-row: 2; background: var(--green); border-color: #6aaa84; }
.automation-details { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 1px solid #496257; }
.automation-details div { padding: 23px 22px 0 0; }
.automation-details div + div { padding-left: 22px; border-left: 1px solid #496257; }
.automation-details strong, .automation-details span { display: block; }
.automation-details strong { margin-bottom: 8px; color: #78c899; font-size: 13px; }
.automation-details span { color: #b9c8c0; font-size: 12px; line-height: 1.5; }

.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list span { padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; font-weight: 700; }
.downloads-section { padding-top: 0; }
.downloads-intro { max-width: 720px; margin: 0 0 30px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.download-grid a { min-height: 108px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); background: var(--white); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); text-decoration: none; transition: color .18s ease, background-color .18s ease; }
.download-grid a:hover, .download-grid a:focus-visible { color: var(--white); background: var(--green); }
.download-grid strong { font-size: 14px; }
.download-grid span { color: var(--muted); font-size: 11px; }
.download-grid a:hover span, .download-grid a:focus-visible span { color: #d4e7db; }
.result-section { padding-top: 0; }
.result-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; }
.result-statement { font-size: 28px; line-height: 1.4; }
.result-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.result-list li { position: relative; padding: 16px 0 16px 27px; border-bottom: 1px solid var(--line); color: #414944; font-size: 14px; }
.result-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.contact-band { width: min(calc(100% - 48px), var(--max)); margin: 0 auto 24px; padding: 40px 42px; display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--green); color: var(--white); border-radius: var(--radius); }
.contact-band h2 { margin-bottom: 8px; font-size: 30px; }
.contact-band p { margin-bottom: 0; color: #d4e7db; }
.contact-band a { flex: 0 0 auto; padding: 14px 20px; border: 1px solid rgba(255,255,255,.75); border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 800; }
.contact-band a:hover, .contact-band a:focus-visible { background: var(--white); color: var(--green); }
.site-footer { width: min(calc(100% - 48px), var(--max)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .site-nav { gap: 14px; }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .project-meta div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .project-meta div:nth-child(4) { border-top: 1px solid var(--line); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid article { border-bottom: 1px solid var(--line); }
  .kpi-grid article:nth-child(odd) { border-left: 0; }
  .kpi-grid article:last-child { grid-column: 1 / -1; }
  .report-body, .split-copy, .result-layout { grid-template-columns: 1fr; }
  .control-panel { border-left: 0; border-top: 1px solid var(--line); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-list article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-strong); }
  .feature-list article:nth-child(4) { border-top: 1px solid var(--line-strong); }
  .screen-view { grid-template-columns: 1fr; }
  .screen-copy { max-width: 620px; }
  .dual-demo { grid-template-columns: 1fr; }
  .architecture { grid-template-columns: repeat(2, 1fr); }
  .architecture-core { grid-column: 1 / -1; }
  .architecture-output { grid-column: 1 / -1; grid-row: auto; }
  .automation-details { grid-template-columns: repeat(2, 1fr); }
  .automation-details div:nth-child(3) { border-left: 0; border-top: 1px solid #496257; }
  .automation-details div:nth-child(4) { border-top: 1px solid #496257; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header, .section-shell, .contact-band, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 62px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .site-nav { max-width: calc(100% - 38px); gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { min-width: max-content; padding: 8px 4px; font-size: 9px; }
  .nav-action { padding-inline: 7px !important; }
  .hero { padding-top: 52px; }
  h1 { font-size: 44px; }
  .hero-copy p { font-size: 16px; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta div, .project-meta div + div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .project-meta div:first-child { border-top: 0; }
  .window-bar { padding: 0 12px; }
  .report-toolbar { padding: 13px; }
  .report-status { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid article, .kpi-grid article + article { min-height: 78px; padding: 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .kpi-grid article:last-child { grid-column: auto; }
  .report-body { min-height: 0; }
  .chart-panel, .control-panel { padding: 18px; }
  .bar-chart { height: 170px; gap: 9px; }
  .result-strip { grid-template-columns: repeat(2, 1fr); }
  .result-strip div { min-height: 118px; padding: 20px; }
  .result-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .result-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .split-section, .screens-section, .tech-section, .result-section { padding-top: 76px; padding-bottom: 76px; }
  .feature-band, .automation-band { padding: 76px 0; }
  .section-heading { margin-bottom: 34px; }
  .lead, .result-statement { font-size: 21px; }
  .split-copy, .result-layout { gap: 42px; }
  .feature-list { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .feature-list article, .feature-list article + article { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .screen-tabs { overflow-x: auto; }
  .screen-tab { min-width: max-content; padding: 13px 14px; }
  .screen-stage { min-height: 630px; }
  .screen-view { gap: 22px; }
  .architecture { grid-template-columns: 1fr; }
  .architecture-core, .architecture-output { grid-column: auto; }
  .architecture-core { align-items: flex-start; flex-direction: column; gap: 8px; }
  .automation-details { grid-template-columns: 1fr; }
  .automation-details div, .automation-details div + div { padding: 18px 0; border-left: 0; border-top: 1px solid #496257; }
  .contact-band { padding: 28px; align-items: flex-start; flex-direction: column; }
  .contact-band h2 { font-size: 25px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
