:root {
  --bg-main: #eef4f0;
  --bg-soft: #dbe8e1;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --surface-deep: #f0f5f2;
  --text-strong: #102126;
  --text-body: #2f454d;
  --text-muted: #556c73;
  --line: #c2d6cc;
  --line-strong: #9db9ad;
  --brand: #0f8f64;
  --brand-strong: #0b6a4b;
  --accent: #e57f3b;
  --accent-soft: #efb183;
  --shadow: 0 20px 42px rgba(12, 51, 40, 0.12);
  --shadow-soft: 0 12px 24px rgba(12, 51, 40, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text-body);
  background:
    radial-gradient(circle at 8% -8%, rgba(36, 149, 105, 0.17), transparent 38%),
    radial-gradient(circle at 86% 16%, rgba(229, 127, 59, 0.16), transparent 32%),
    linear-gradient(180deg, #edf4f0 0%, #e5f0ea 40%, #f8fbf9 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(5px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.78;
  animation: orb-float 8.8s ease-in-out infinite;
}

.bg-orb-a {
  width: 430px;
  height: 430px;
  left: -120px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, #93e4c5, transparent 66%);
}

.bg-orb-b {
  width: 470px;
  height: 470px;
  right: -130px;
  top: 140px;
  background: radial-gradient(circle at 40% 40%, #ffd2a7, transparent 72%);
  animation-delay: 1.4s;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(239, 246, 242, 0.86);
  border-bottom: 1px solid rgba(177, 206, 194, 0.7);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(44vw, 210px);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 120deg, #14a56f, #f28a2b, #14a56f);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.08rem;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}

.brand-eyebrow {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.26rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions .btn {
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
  background: #f4faf7;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-body);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.lang-btn.active {
  background: var(--brand);
  color: #ffffff;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1.18rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #11a979 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 143, 100, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 16px 34px rgba(15, 143, 100, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-strong);
  border: 1px solid var(--line);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #f2faf6;
}

.btn-quiet {
  background: #ebf6f1;
  color: var(--text-strong);
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 2.3rem;
  align-items: center;
  padding: 4.3rem 0 2.4rem;
}

.eyebrow {
  margin: 0 0 0.68rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-strong);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.06;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 57ch;
  color: var(--text-body);
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.hero-cta-note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.kpi-strip {
  margin-top: 1.5rem;
  border: 1px solid rgba(157, 185, 173, 0.7);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.kpi-strip-title {
  margin: 0;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-kpi-grid {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.kpi-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0.7rem;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(12, 51, 40, 0.08);
}

.kpi-value {
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1rem;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.kpi-label {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-flow-shell {
  position: relative;
  width: min(100%, 660px);
  aspect-ratio: 920 / 430;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(188, 210, 200, 0.9);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 248, 244, 0.96) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-flow-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flow-glow {
  opacity: 0.26;
  transform-origin: center;
}

.flow-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.75;
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
}

.flow-line-input {
  stroke: url(#line-input-gradient);
}

.flow-line-output {
  stroke: url(#line-output-gradient);
}

.flow-node {
  opacity: 0;
  transform-origin: center;
}

.flow-node-input {
  fill: #d0554a;
}

.flow-node-output {
  fill: #14b985;
}

.flow-card {
  position: absolute;
  z-index: 4;
  border-radius: 13px;
  border: 1px solid #c5d8cf;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(14, 56, 44, 0.1);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transform-origin: center;
  padding: clamp(0.5rem, 0.8vw, 0.75rem);
}

.flow-card p {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
  line-height: 1.3;
  font-weight: 600;
}

.flow-card-input,
.flow-card-output {
  width: 24%;
  min-height: 12%;
  display: flex;
  align-items: center;
}

.flow-card-input {
  left: 2.4%;
  justify-content: flex-start;
  text-align: left;
  gap: clamp(0.45rem, 0.9vw, 0.62rem);
  padding-inline: clamp(0.52rem, 0.85vw, 0.76rem);
}

.flow-card-input-a {
  top: 7%;
}

.flow-card-input-b {
  top: 32%;
}

.flow-card-input-c {
  top: 57%;
}

.flow-card-input p {
  flex: 1;
}

.flow-input-icon {
  position: relative;
  width: clamp(28px, 3.1vw, 36px);
  height: clamp(28px, 3.1vw, 36px);
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(205, 99, 80, 0.36);
  background: linear-gradient(180deg, #fff6f3 0%, #feece7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 8px rgba(128, 63, 52, 0.18);
  display: grid;
  place-items: center;
}

.flow-input-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 1px solid rgba(198, 90, 73, 0.45);
  opacity: 0;
  transform: scale(0.84);
}

.flow-input-icon-svg {
  width: clamp(16px, 1.9vw, 21px);
  height: clamp(16px, 1.9vw, 21px);
}

.flow-input-icon-svg path {
  fill: none;
  stroke: #c55a49;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-card-input-b .flow-input-icon {
  border-color: rgba(62, 126, 154, 0.36);
  background: linear-gradient(180deg, #f4fbff 0%, #e7f4fc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 8px rgba(48, 95, 116, 0.16);
}

.flow-card-input-b .flow-input-icon::after {
  border-color: rgba(64, 136, 161, 0.42);
}

.flow-card-input-b .flow-input-icon-svg path {
  stroke: #2f7e9b;
}

.flow-card-input-c .flow-input-icon {
  border-color: rgba(43, 145, 107, 0.34);
  background: linear-gradient(180deg, #ecfbf4 0%, #dff4e8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 8px rgba(33, 110, 81, 0.16);
}

.flow-card-input-c .flow-input-icon::after {
  border-color: rgba(43, 145, 107, 0.42);
}

.flow-card-input-c .flow-input-icon-svg path {
  stroke: #25906a;
}

.flow-card-core {
  left: 33%;
  top: 18%;
  width: 31%;
  height: 50%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  border-color: rgba(132, 182, 160, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 30px rgba(14, 56, 44, 0.18);
  background:
    radial-gradient(circle at 20% 14%, rgba(30, 163, 116, 0.12), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #ecf6f1 100%);
  padding: clamp(0.55rem, 1vw, 0.9rem);
}

.flow-core-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
}

.flow-core-tag {
  display: inline-flex;
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(15, 143, 100, 0.28);
  color: var(--brand-strong);
  padding: 0.18rem 0.5rem;
  font-weight: 700;
  background: rgba(15, 143, 100, 0.08);
}

.flow-core-state {
  width: clamp(14px, 1.6vw, 18px);
  height: clamp(14px, 1.6vw, 18px);
  border-radius: 999px;
  border: 1px solid rgba(28, 151, 108, 0.4);
  background: radial-gradient(circle at 38% 34%, #93f0c7 0%, #33ba86 52%, #19845e 100%);
  box-shadow:
    0 0 0 0 rgba(33, 177, 127, 0.38),
    0 4px 10px rgba(20, 118, 86, 0.3);
  animation: core-state-ping 2.2s ease-in-out infinite;
}

.flow-core-processing {
  margin-top: clamp(0.35rem, 0.8vw, 0.65rem);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.34rem;
  border: 1px solid rgba(127, 174, 154, 0.34);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(236, 247, 241, 0.92));
  padding: clamp(0.42rem, 0.75vw, 0.66rem);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.flow-core-chip {
  position: relative;
  height: clamp(22px, 3.6vw, 34px);
  border-radius: 9px;
  border: 1px solid rgba(39, 147, 106, 0.34);
  background:
    linear-gradient(180deg, rgba(229, 249, 239, 0.9) 0%, rgba(212, 241, 228, 0.95) 100%);
  overflow: hidden;
}

.flow-core-chip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(25, 132, 95, 0.34);
  transform: translate(-50%, -50%) rotate(0deg);
  background: radial-gradient(circle at center, rgba(27, 156, 111, 0.15), rgba(27, 156, 111, 0.02) 70%);
  animation: core-chip-spin 6s linear infinite;
}

.flow-core-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 145, 104, 0.1) 0%, rgba(25, 145, 104, 0) 26%, rgba(25, 145, 104, 0.1) 52%, rgba(25, 145, 104, 0) 78%, rgba(25, 145, 104, 0.1) 100%);
  background-size: 200% 100%;
  animation: core-chip-lines 2.3s linear infinite;
}

.flow-core-pulse {
  position: relative;
  height: clamp(14px, 2.3vw, 20px);
  border-radius: 10px;
  border: 1px solid rgba(34, 141, 101, 0.18);
  background: linear-gradient(90deg, rgba(24, 149, 107, 0.08), rgba(24, 149, 107, 0.18), rgba(24, 149, 107, 0.08));
  overflow: hidden;
}

.flow-core-pulse::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -34%;
  width: 30%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  animation: core-scan 1.8s ease-in-out infinite;
}

.flow-core-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  align-content: end;
}

.flow-core-grid span {
  height: clamp(6px, 0.85vw, 9px);
  border-radius: 999px;
  background: rgba(20, 145, 104, 0.18);
  animation: core-chip 1.7s ease-in-out infinite;
}

.flow-core-grid span:nth-child(2) {
  animation-delay: 0.08s;
}

.flow-core-grid span:nth-child(3) {
  animation-delay: 0.16s;
}

.flow-core-grid span:nth-child(4) {
  animation-delay: 0.24s;
}

.flow-core-grid span:nth-child(5) {
  animation-delay: 0.32s;
}

.flow-core-grid span:nth-child(6) {
  animation-delay: 0.4s;
}

.flow-core-grid span:nth-child(7) {
  animation-delay: 0.48s;
}

.flow-core-grid span:nth-child(8) {
  animation-delay: 0.56s;
}

.flow-card-output {
  right: 2.4%;
  border-color: rgba(56, 171, 126, 0.33);
  background: linear-gradient(180deg, #ffffff 0%, #f2fcf8 100%);
}

.flow-card-output-report {
  top: 20%;
  width: 24%;
  min-height: 56%;
  align-items: stretch;
  overflow: hidden;
  border-color: rgba(48, 164, 118, 0.44);
  box-shadow: 0 12px 28px rgba(19, 101, 73, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #ecf9f2 100%);
  padding: clamp(0.6rem, 1vw, 0.86rem);
}

.flow-bridge {
  position: absolute;
  z-index: 3;
  left: 64.5%;
  top: 50%;
  width: 10.2%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2aa97b 0%, #13ba8b 100%);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  opacity: 0.9;
}

.flow-bridge::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 36% 36%, #a9f4d6 0%, #20b784 55%, #12845f 100%);
  transform: translateY(-50%) scale(0.92);
}

.flow-output-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.62rem;
  width: 100%;
}

.flow-report-badge {
  width: clamp(32px, 4.3vw, 42px);
  height: clamp(32px, 4.3vw, 42px);
  border-radius: 12px;
  border: 1px solid rgba(35, 148, 105, 0.28);
  background: linear-gradient(180deg, #ebfaf3 0%, #ddf2e8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 10px rgba(17, 92, 67, 0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.flow-report-icon {
  width: clamp(18px, 2.4vw, 23px);
  height: clamp(18px, 2.4vw, 23px);
}

.flow-report-icon path {
  fill: none;
  stroke: #17966b;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-output-copy {
  min-width: 0;
  max-width: 100%;
}

.flow-output-kicker {
  display: block;
  color: #2c8f6a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.58rem, 0.72vw, 0.66rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.flow-output-title {
  margin: 0.18rem 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(0.86rem, 1.15vw, 1.06rem);
  line-height: 1.15;
  font-weight: 700;
  color: #14262c;
  overflow-wrap: anywhere;
}

.hero-flow-shell.is-animated .flow-report-badge {
  animation: report-badge-pulse 2.5s ease-in-out infinite;
  animation-delay: 1.1s;
}

.hero-flow-shell.is-animated .flow-card-input .flow-input-icon {
  animation: flow-input-icon-float 2.8s ease-in-out infinite;
  animation-delay: calc(var(--flow-delay, 0s) + 0.8s);
}

.hero-flow-shell.is-animated .flow-card-input-b .flow-input-icon {
  animation-duration: 3.1s;
}

.hero-flow-shell.is-animated .flow-card-input-c .flow-input-icon {
  animation-duration: 3.4s;
}

.hero-flow-shell.is-animated .flow-card-input .flow-input-icon::after {
  animation: flow-input-icon-ring 2.8s ease-out infinite;
  animation-delay: calc(var(--flow-delay, 0s) + 1s);
}

.hero-flow-shell.is-animated .flow-card {
  animation: flow-card-in 0.6s cubic-bezier(0.2, 0.75, 0.3, 1) forwards;
  animation-delay: var(--flow-delay, 0s);
}

.hero-flow-shell.is-animated .flow-bridge {
  animation: flow-bridge-reveal 0.46s ease forwards;
  animation-delay: 0.66s;
}

.hero-flow-shell.is-animated .flow-bridge::after {
  animation: flow-bridge-node 2.3s ease-in-out infinite;
  animation-delay: 1.1s;
}

.hero-flow-shell.is-animated .flow-line {
  animation: flow-draw 0.88s ease forwards;
}

.hero-flow-shell.is-animated .flow-line-input:nth-of-type(1) {
  animation-delay: 0.22s;
}

.hero-flow-shell.is-animated .flow-line-input:nth-of-type(2) {
  animation-delay: 0.32s;
}

.hero-flow-shell.is-animated .flow-line-input:nth-of-type(3) {
  animation-delay: 0.42s;
}

.hero-flow-shell.is-animated .flow-line-output-main {
  animation-delay: 0.64s;
}

.hero-flow-shell.is-animated .flow-node {
  animation: flow-node-pop 0.4s ease forwards, flow-node-pulse 2.4s ease-in-out infinite;
  animation-delay: 0.62s, 1s;
}

.hero-flow-shell.is-animated .flow-node-output {
  animation-delay: 0.85s, 1.2s;
}

.hero-flow-shell.is-animated .flow-glow {
  animation: flow-glow 4.2s ease-in-out infinite;
}

.section {
  padding: 4rem 0 1.1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.72rem, 4vw, 2.4rem);
  line-height: 1.12;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(12, 51, 40, 0.09);
}

.card h3,
.case-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.08rem;
  line-height: 1.24;
}

.card p,
.case-card p {
  margin: 0.52rem 0 0;
}

.card-grid.four .card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.72rem;
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-grid.four .card:nth-child(1) {
  --solution-delay: 0.08s;
}

.card-grid.four .card:nth-child(2) {
  --solution-delay: 0.16s;
}

.card-grid.four .card:nth-child(3) {
  --solution-delay: 0.24s;
}

.card-grid.four .card:nth-child(4) {
  --solution-delay: 0.32s;
}

.card-grid.four .card:hover,
.card-grid.four .card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(12, 51, 40, 0.16);
  border-color: var(--line-strong);
}

.card-grid.four .card h3,
.card-grid.four .card p {
  margin: 0;
}

.solution-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.12rem;
}

.solution-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(35, 148, 105, 0.28);
  background: linear-gradient(180deg, #ebfaf3 0%, #ddf2e8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 12px rgba(17, 92, 67, 0.12);
  display: grid;
  place-items: center;
  color: #178664;
  transition: transform 0.28s ease;
}

.solution-icon svg {
  width: 22px;
  height: 22px;
}

.solution-icon path,
.solution-icon line,
.solution-icon polyline,
.solution-icon rect,
.solution-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solution-picture {
  position: relative;
  height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(36, 125, 96, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 244, 0.95) 100%);
  overflow: hidden;
}

.solution-picture svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.32s ease;
}

.solution-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 78%);
  transform: translateX(-120%);
  pointer-events: none;
}

.solution-picture .pic-base {
  fill: rgba(255, 255, 255, 0.52);
  stroke: rgba(144, 190, 169, 0.45);
  stroke-width: 1;
}

.solution-picture .pic-fill {
  fill: rgba(156, 213, 187, 0.42);
}

.solution-picture .pic-fill-alt {
  fill: rgba(125, 192, 163, 0.52);
}

.solution-picture .pic-line,
.solution-picture .pic-line-soft {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
}

.solution-picture .pic-line {
  stroke: #2c9a72;
  stroke-width: 2.2;
}

.solution-picture .pic-line-soft {
  stroke: #7db89f;
  stroke-width: 1.8;
}

.solution-picture .pic-dot {
  fill: #d8784d;
}

.card-tone-b .solution-icon {
  color: #2f86b9;
  border-color: rgba(52, 131, 185, 0.28);
  background: linear-gradient(180deg, #eff7ff 0%, #e5f1fb 100%);
}

.card-tone-b .solution-picture .pic-line {
  stroke: #2d89be;
}

.card-tone-b .solution-picture .pic-line-soft {
  stroke: #89b8d8;
}

.card-tone-b .solution-picture .pic-fill {
  fill: rgba(141, 195, 229, 0.36);
}

.card-tone-c .solution-icon {
  color: #be7a38;
  border-color: rgba(191, 129, 76, 0.3);
  background: linear-gradient(180deg, #fff5eb 0%, #fce8d6 100%);
}

.card-tone-c .solution-picture .pic-line {
  stroke: #c57b3d;
}

.card-tone-c .solution-picture .pic-line-soft {
  stroke: #d8a676;
}

.card-tone-c .solution-picture .pic-fill {
  fill: rgba(244, 194, 141, 0.34);
}

.card-tone-d .solution-icon {
  color: #198b5f;
  border-color: rgba(40, 149, 107, 0.28);
  background: linear-gradient(180deg, #ecf9f2 0%, #dcf0e5 100%);
}

.card-tone-d .solution-picture .pic-line {
  stroke: #1e9868;
}

.card-tone-d .solution-picture .pic-line-soft {
  stroke: #75b897;
}

.card-grid.four .card:hover .solution-icon,
.card-grid.four .card:focus-within .solution-icon {
  transform: translateY(-2px) scale(1.04);
}

.card-grid.four .card:hover .solution-picture svg,
.card-grid.four .card:focus-within .solution-picture svg {
  transform: scale(1.04) translateX(1%);
}

.reveal.is-visible .card-grid.four .card {
  opacity: 0;
  animation: solution-card-rise 0.62s cubic-bezier(0.2, 0.74, 0.28, 1) forwards;
  animation-delay: var(--solution-delay, 0s);
}

.reveal.is-visible .card-grid.four .card .solution-icon {
  animation: solution-icon-breathe 2.7s ease-in-out infinite;
  animation-delay: calc(var(--solution-delay, 0s) + 0.82s);
}

.reveal.is-visible .card-grid.four .card .solution-picture::after {
  animation: solution-picture-sheen 3.2s ease-in-out infinite;
  animation-delay: calc(var(--solution-delay, 0s) + 0.42s);
}

.reveal.is-visible .card-grid.four .card .solution-picture .pic-line,
.reveal.is-visible .card-grid.four .card .solution-picture .pic-line-soft {
  animation: solution-line-draw 0.9s ease forwards;
  animation-delay: calc(var(--solution-delay, 0s) + 0.26s);
}

.card-tone-a {
  background: linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);
}

.card-tone-b {
  background: linear-gradient(180deg, #ffffff 0%, #eef8ff 100%);
}

.card-tone-c {
  background: linear-gradient(180deg, #ffffff 0%, #fff5eb 100%);
}

.card-tone-d {
  background: linear-gradient(180deg, #ffffff 0%, #eef9f0 100%);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.support-visual {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  box-shadow: var(--shadow-soft);
  padding: 1.05rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: center;
}

.support-copy h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  line-height: 1.22;
}

.support-copy p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.support-svg {
  width: 100%;
  height: auto;
  display: block;
}

.support-frame {
  fill: #f7fcf9;
  stroke: #caded4;
  stroke-width: 2;
}

.support-chip {
  fill: #ffffff;
  stroke: #c3d9cf;
  stroke-width: 2;
}

.support-chip-out {
  fill: #f2fbf7;
  stroke: #a9d4bf;
}

.support-core {
  fill: #ffffff;
  stroke: #adcbbd;
  stroke-width: 2;
}

.support-link {
  fill: none;
  stroke: #d46856;
  stroke-width: 3;
  stroke-linecap: round;
}

.support-link-out {
  stroke: #26a578;
}

.support-panel {
  fill: #ffffff;
  stroke: #c2d6cd;
  stroke-width: 2;
}

.support-panel-highlight {
  fill: #f4fbf8;
  stroke: #9ec7b3;
}

.support-map-line {
  fill: none;
  stroke: #d8794f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-map-point {
  fill: #ce5e4a;
}

.support-chart-line {
  fill: none;
  stroke: #2e9e78;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-bar {
  fill: #cde9db;
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.trusted-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.95rem;
  text-decoration: none;
  color: var(--text-body);
  box-shadow: 0 10px 24px rgba(12, 51, 40, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trusted-card:hover,
.trusted-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(12, 51, 40, 0.14);
}

.trusted-card img {
  width: 100%;
  max-width: 180px;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.trusted-logo-esa {
  clip-path: inset(16% 14%);
}

.trusted-card span {
  text-align: center;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 98px;
}

.contact-panel {
  display: grid;
  gap: 0.92rem;
}

.text-link {
  color: var(--brand-strong);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.booking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 244, 0.96) 100%);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}

.booking-eyebrow {
  margin-bottom: 0.48rem;
}

.booking-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.booking-lead {
  margin: 0.52rem 0 0;
  color: var(--text-body);
}

.booking-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.booking-status {
  margin: 0.72rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Calendly popup close button contrast override */
.calendly-overlay .calendly-popup .calendly-popup-close,
.calendly-popup .calendly-popup-close {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(15, 143, 100, 0.9) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(6, 38, 28, 0.26) !important;
  opacity: 1 !important;
}

.calendly-overlay .calendly-popup .calendly-popup-close:hover,
.calendly-overlay .calendly-popup .calendly-popup-close:focus-visible,
.calendly-popup .calendly-popup-close:hover,
.calendly-popup .calendly-popup-close:focus-visible {
  background: #e9f7f1 !important;
  transform: scale(1.04);
}

.contact-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--text-strong);
  font-weight: 500;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.78rem;
  font: inherit;
  color: var(--text-strong);
  background: #fcfefd;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 143, 100, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
  color: var(--text-body);
}

.consent-check input {
  margin-top: 0.2rem;
}

.consent-check a {
  color: var(--brand-strong);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
}

.form-status.success {
  color: #0b7a53;
}

.form-status.error {
  color: #b13c24;
}

.form-status.info {
  color: #325d66;
}

.site-footer {
  margin-top: 4.2rem;
  border-top: 1px solid var(--line);
  background: #f1f8f4;
}

.footer-wrap {
  padding: 1.2rem 0 1.6rem;
  display: grid;
  gap: 0.45rem;
}

.footer-tagline,
.footer-meta {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a,
.footer-button {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-button:hover,
.footer-button:focus-visible {
  color: var(--brand-strong);
}

.cookie-banner {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 36px rgba(16, 54, 44, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  z-index: 60;
}

.cookie-copy {
  max-width: 72ch;
}

.cookie-title {
  margin: 0 0 0.22rem;
  color: var(--text-strong);
  font-weight: 700;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.cookie-copy p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 33, 27, 0.45);
  display: grid;
  place-items: center;
  z-index: 70;
  padding: 1rem;
}

.cookie-modal-card {
  width: min(640px, 100%);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px rgba(9, 45, 35, 0.25);
  padding: 1.1rem;
}

.cookie-modal-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.consent-option {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--surface-soft);
}

.consent-option label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.consent-option p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.solution-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.36rem;
}

.solution-action-btn {
  padding: 0.4rem 0.72rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-strong);
  background: #f4faf7;
}

.solution-action-btn:hover,
.solution-action-btn:focus-visible {
  border-color: var(--line-strong);
  background: #eaf6f0;
}

.productivity-modal {
  z-index: 120;
}

.productivity-modal-card {
  width: min(1120px, 100%);
  max-height: 90vh;
  overflow: auto;
}

.productivity-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.productivity-tabs {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
}

.productivity-tab {
  border: 1px solid var(--line);
  background: #f4faf7;
  color: var(--text-strong);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.productivity-tab.is-active {
  background: #dcf3e8;
  border-color: var(--line-strong);
}

.productivity-panel {
  margin-top: 0.9rem;
}

.productivity-inline-note {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.productivity-map {
  position: relative;
  margin-top: 0.65rem;
  height: min(58vh, 520px);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.productivity-legend {
  position: absolute;
  right: 0.7rem;
  bottom: 2.1rem;
  z-index: 550;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 254, 253, 0.96);
  padding: 0.6rem 0.72rem;
  font-size: 0.86rem;
  min-width: 245px;
  box-shadow: 0 6px 15px rgba(14, 65, 50, 0.15);
}

.productivity-legend-bar {
  margin-top: 0.38rem;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
}

.productivity-legend-classes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.legend-class {
  display: block;
  height: 12px;
}

.legend-class.class-1 {
  background: #a50026;
}

.legend-class.class-2 {
  background: #f46d43;
}

.legend-class.class-3 {
  background: #fee08b;
}

.legend-class.class-4 {
  background: #a6d96a;
}

.legend-class.class-5 {
  background: #1a9850;
}

.productivity-legend-ticks {
  margin-top: 0.32rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.productivity-legend-ticks span {
  text-align: center;
}

.productivity-chart-wrap {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfefd;
  padding: 0.7rem;
}

.productivity-chart-wrap canvas {
  width: 100%;
  height: 380px;
}

.ndvi-compare-modal-card {
  width: min(1180px, 100%);
}

.weather-alerts-modal-card {
  width: min(860px, 100%);
}

.weather-alerts-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.62rem;
}

.weather-alert-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: #f8fcfa;
}

.weather-alert-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.weather-alert-card-head time {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.weather-alert-card h3 {
  margin: 0.5rem 0 0.32rem;
  color: var(--text-strong);
  font-size: 1rem;
}

.weather-alert-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.92rem;
}

.weather-alert-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.weather-alert-severity.severity-high {
  background: #fde9e6;
  color: #9d2f21;
  border-color: #f3c6c0;
}

.weather-alert-severity.severity-medium {
  background: #fff4df;
  color: #9a661a;
  border-color: #efd59f;
}

.weather-alert-severity.severity-low {
  background: #e7f6ee;
  color: #206c4d;
  border-color: #bddfcf;
}

.ndvi-compare-controls {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.ndvi-compare-controls label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ndvi-compare-controls input {
  width: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.38rem 0.45rem;
  font: inherit;
}

.ndvi-compare-map-wrap {
  margin-top: 0.75rem;
  position: relative;
}

.ndvi-compare-map {
  margin-top: 0;
}

.ndvi-map-side-label {
  position: absolute;
  top: 0.72rem;
  z-index: 560;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 600;
}

.ndvi-map-side-label-left {
  left: 0.7rem;
}

.ndvi-map-side-label-right {
  right: 0.7rem;
}

.ndvi-compare-map .leaflet-top.leaflet-right {
  top: 2.6rem;
}

.ndvi-compare-legend {
  min-width: 232px;
}

.ndvi-compare-legend-bar {
  margin-top: 0.42rem;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, #a50026, #fdae61, #ffffbf, #a6d96a, #006837);
}

.ndvi-compare-legend-ticks {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ndvi-compare-legend-ticks span {
  text-align: center;
}

.ndvi-compare-loading {
  position: absolute;
  top: 0.72rem;
  right: 50%;
  transform: translateX(50%);
  z-index: 560;
  border-radius: 999px;
  background: rgba(6, 29, 23, 0.82);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.24rem 0.58rem;
}

.ndvi-compare-error {
  position: absolute;
  top: 2.45rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 560;
  border: 1px solid #f7bbb5;
  border-radius: 8px;
  background: #ffeceb;
  color: #9c1f1f;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.legal-main {
  padding-top: 1.4rem;
}

.legal-section {
  max-width: 880px;
}

.legal-copy {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(13, 66, 51, 0.08);
}

.legal-copy h3 {
  margin: 1.1rem 0 0.32rem;
  color: var(--text-strong);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.legal-copy h3:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--text-body);
}

.legal-copy ul {
  margin: 0.2rem 0 0.8rem;
  padding-left: 1.1rem;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(16px);
  }
}

@keyframes flow-card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flow-input-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes flow-input-icon-ring {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }

  24% {
    opacity: 0.36;
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes flow-draw {
  from {
    stroke-dashoffset: 330;
    opacity: 0.45;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
}

@keyframes flow-node-pop {
  from {
    opacity: 0;
    transform: scale(0.45);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flow-node-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(20, 185, 133, 0));
  }

  50% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 8px rgba(20, 185, 133, 0.46));
  }
}

@keyframes flow-glow {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes core-scan {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(470%);
  }
}

@keyframes core-chip {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.88);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes core-state-ping {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(33, 177, 127, 0.38),
      0 4px 10px rgba(20, 118, 86, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(33, 177, 127, 0),
      0 5px 11px rgba(20, 118, 86, 0.33);
    transform: scale(1.05);
  }
}

@keyframes core-chip-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes core-chip-lines {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes report-badge-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 5px 10px rgba(17, 92, 67, 0.14);
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 14px rgba(17, 92, 67, 0.2);
  }
}

@keyframes flow-bridge-reveal {
  from {
    transform: translateY(-50%) scaleX(0);
    opacity: 0.2;
  }

  to {
    transform: translateY(-50%) scaleX(1);
    opacity: 0.95;
  }
}

@keyframes flow-bridge-node {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(24, 170, 120, 0.34);
    transform: translateY(-50%) scale(0.92);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(24, 170, 120, 0);
    transform: translateY(-50%) scale(1.02);
  }
}

@keyframes solution-card-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes solution-icon-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 5px 12px rgba(17, 92, 67, 0.12);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 16px rgba(17, 92, 67, 0.2);
  }
}

@keyframes solution-picture-sheen {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(150%);
  }
}

@keyframes solution-line-draw {
  from {
    stroke-dashoffset: 180;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    gap: 1.4rem;
  }

  .hero-flow-shell {
    width: min(100%, 730px);
  }

  .support-visual {
    grid-template-columns: 1fr;
  }
}

.hero-flow-shell {
  aspect-ratio: auto;
  height: auto;
  padding: 0.85rem;
  display: grid;
  gap: 0.58rem;
}

.hero-flow-svg {
  display: none;
}

.flow-card {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  min-height: 0;
  transform: translateY(8px) scale(0.985);
}

.flow-bridge {
  display: none;
}

.flow-card-input,
.flow-card-output {
  width: 100%;
}

.flow-card-input-a {
  order: 1;
}

.flow-card-input-b {
  order: 2;
}

.flow-card-input-c {
  order: 3;
}

.flow-card-core {
  order: 4;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0.85rem;
}

.hero-flow-shell.is-animated .flow-card-core {
  transform: translateY(0) scale(1);
}

.flow-card-output-report {
  order: 5;
  width: 100%;
  min-height: 0;
}

@media (max-width: 980px) {
  .header-wrap {
    flex-wrap: wrap;
  }

  .card-grid.four,
  .card-grid.three,
  .case-grid,
  .trusted-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .site-nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.1rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.5rem;
  }

  .header-actions .btn {
    padding: 0.6rem 0.9rem;
  }

  .brand-logo {
    height: 36px;
    max-width: min(56vw, 180px);
  }

  .hero-kpi-grid,
  .card-grid.four,
  .card-grid.three,
  .case-grid,
  .trusted-grid {
    grid-template-columns: 1fr;
  }

  .hero-flow-shell {
    aspect-ratio: auto;
    height: auto;
    padding: 0.85rem;
    display: grid;
    gap: 0.58rem;
  }

  .hero-flow-svg {
    display: none;
  }

  .flow-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    min-height: 0;
    transform: translateY(8px) scale(0.985);
  }

  .flow-bridge {
    display: none;
  }

  .flow-card-input,
  .flow-card-output {
    width: 100%;
  }

  .flow-card-input-a {
    order: 1;
  }

  .flow-card-input-b {
    order: 2;
  }

  .flow-card-input-c {
    order: 3;
  }

  .flow-card-core {
    order: 4;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.85rem;
  }

  .hero-flow-shell.is-animated .flow-card-core {
    transform: translateY(0) scale(1);
  }

  .flow-card-output-report {
    order: 5;
    width: 100%;
    min-height: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 0.7rem;
    right: 0.7rem;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .productivity-modal-card {
    max-height: 92vh;
  }

  .productivity-map {
    height: min(50vh, 420px);
  }

  .productivity-chart-wrap canvas {
    height: 300px;
  }

  .productivity-legend {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 2.4rem;
    min-width: 0;
  }

  .ndvi-compare-controls input {
    width: 82px;
  }

  .ndvi-map-side-label {
    font-size: 0.72rem;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-line {
    stroke-dashoffset: 0;
  }

  .flow-node,
  .flow-card {
    opacity: 1;
    transform: none;
  }
}
