/*
 * Homepage sections. This file is shared verbatim with the static site (site/home.css);
 * public-home.test.ts fails when the two copies differ. Every rule is scoped under .home.
 */
.home {
  --home-navy: #1b2d4f;
  --home-green: #17704f;
  --home-green-dark: #125c41;
  --home-ink: #14223b;
  --home-text: #3f5150;
  --home-muted: #5e6e67;
  --home-line: #dce5de;
  --home-soft: #eef5ec;
  --home-canvas: #f8faf7;
  color: var(--home-ink);
}
.home .home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.home .home-kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  color: #4f6f63;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.home .home-kicker::before {
  content: '';
  flex: 0 0 auto;
  margin-top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-green);
}
.home .home-h1 {
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.home .home-h1 em {
  color: var(--home-green);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.home .home-h2 {
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  font-weight: 630;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.home .home-h3 {
  margin: 0;
  color: var(--home-navy);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.home .home-lead {
  margin: 24px 0 0;
  max-width: 540px;
  color: var(--home-text);
  font-size: 19px;
  line-height: 1.6;
}
.home .home-body {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.home .home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.home .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--home-green);
  border-radius: 10px;
  background: var(--home-green);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.home .home-button:hover {
  background: var(--home-green-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.home .home-button.secondary {
  border-color: #c9d6cc;
  background: #fff;
  color: var(--home-navy);
}
.home .home-button.secondary:hover {
  border-color: var(--home-navy);
  background: #fff;
  color: var(--home-navy);
}
.home .home-button.light {
  border-color: #fff;
  background: #fff;
  color: var(--home-navy);
}
.home .home-button.light:hover {
  background: var(--home-soft);
  color: var(--home-navy);
}
.home .home-button:focus-visible,
.home .home-field input:focus-visible {
  outline: 3px solid #7fb8a0;
  outline-offset: 2px;
}
.home .home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #4f6f63;
  font-size: 14px;
}
.home .home-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home .home-proof li::before {
  content: '';
  width: 14px;
  height: 8px;
  margin-top: -4px;
  border-left: 2px solid var(--home-green);
  border-bottom: 2px solid var(--home-green);
  transform: rotate(-45deg);
}

/* Hero */
.home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.home .home-network {
  position: relative;
  margin: 0;
}
.home .home-network::before {
  content: '';
  position: absolute;
  inset: 4% 2% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #e3efe3 0%, #edf4ea 45%, transparent 70%);
  pointer-events: none;
}
.home .home-network svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}
.home .net-label {
  fill: #5a7268;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.home .net-lines path {
  fill: none;
  stroke: #b7c7bd;
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: home-draw 1.1s ease forwards;
}
.home .net-lines .net-hot {
  stroke: var(--home-green);
  stroke-width: 2;
  stroke-opacity: 0.55;
}
.home .net-lines path:nth-child(1) {
  animation-delay: 0.7s;
}
.home .net-lines path:nth-child(2) {
  animation-delay: 0.8s;
}
.home .net-lines path:nth-child(3) {
  animation-delay: 0.9s;
}
.home .net-lines path:nth-child(4) {
  animation-delay: 1s;
}
.home .net-lines path:nth-child(5) {
  animation-delay: 1.9s;
}
.home .net-lines path:nth-child(6) {
  animation-delay: 2s;
}
.home .net-lines path:nth-child(7) {
  animation-delay: 2.1s;
}
.home .net-lines path:nth-child(8) {
  animation-delay: 2.9s;
}
.home .net-lines path:nth-child(9) {
  animation-delay: 3s;
}
.home .net-lines path:nth-child(10) {
  animation-delay: 3.1s;
}
.home .net-lines path:nth-child(11) {
  animation-delay: 3.9s;
}
.home .net-lines path:nth-child(12) {
  animation-delay: 4s;
}
.home .net-lines path:nth-child(13) {
  animation-delay: 4.1s;
}
.home .net-nodes circle {
  stroke: #fff;
  stroke-width: 4;
  opacity: 0;
  animation: home-pop 0.5s ease forwards;
}
.home .net-operators circle {
  fill: var(--home-navy);
}
.home .net-suppliers circle {
  fill: var(--home-green);
}
.home .net-operators circle:nth-child(1) {
  animation-delay: 0.4s;
}
.home .net-operators circle:nth-child(2) {
  animation-delay: 1.6s;
}
.home .net-operators circle:nth-child(3) {
  animation-delay: 2.6s;
}
.home .net-operators circle:nth-child(4) {
  animation-delay: 3.6s;
}
.home .net-suppliers circle:nth-child(2) {
  animation-delay: 0.1s;
}
.home .net-suppliers circle:nth-child(3) {
  animation-delay: 0.2s;
}
.home .net-suppliers circle:nth-child(4) {
  animation-delay: 0.3s;
}
.home .net-suppliers circle:nth-child(5) {
  animation-delay: 0.4s;
}
.home .net-pulses circle {
  fill: #fff;
  stroke: var(--home-green);
  stroke-width: 2.5;
}
.home .home-network figcaption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: -6px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 40px #1b2d4f14;
}
.home .home-network figcaption::before {
  content: '';
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--home-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317704f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 3 8 7 10 4-2 7-5.5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E")
    center / 20px no-repeat;
}
.home .home-network figcaption strong {
  display: block;
  color: var(--home-navy);
  font-size: 14px;
}
.home .home-network figcaption span {
  color: var(--home-muted);
  font-size: 13px;
}
@keyframes home-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes home-pop {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .net-lines path,
  .home .net-nodes circle {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .home .net-pulses {
    display: none;
  }
}

/* Sections */
.home .home-section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.home .home-band {
  border-block: 1px solid var(--home-line);
  background: #fff;
}
.home .home-heading {
  max-width: 720px;
  margin-bottom: 48px;
}
.home .home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home .home-cards > li {
  padding: 30px 28px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: #fff;
}
.home .home-band .home-cards > li {
  border-color: transparent;
  background: var(--home-canvas);
}
.home .home-number {
  display: block;
  margin-bottom: 18px;
  color: var(--home-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.home .home-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
  padding: 44px 48px;
  border-radius: 18px;
  background: var(--home-navy);
  color: #fff;
}
.home .home-highlight .home-h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.home .home-highlight p {
  margin: 0;
  color: #c9d6dd;
  font-size: 17px;
  line-height: 1.6;
}
.home .home-ecosystem {
  background: var(--home-soft);
  text-align: center;
}
.home .home-ecosystem .home-heading {
  margin: 0 auto;
}
.home .home-ecosystem .home-lead {
  margin-inline: auto;
  max-width: 640px;
}
.home .home-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 48px;
}
.home .home-team .home-lead {
  margin: 0;
  max-width: none;
}

/* Demo request */
.home .home-demo {
  background: var(--home-navy);
  color: #fff;
}
.home .home-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 56px;
}
.home .home-demo .home-h2 {
  color: #fff;
}
.home .home-demo .home-kicker {
  color: #a9c8b8;
}
.home .home-demo .home-kicker::before {
  background: #7fd0a8;
}
.home .home-demo .home-lead {
  color: #c9d6dd;
}
.home .home-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home .home-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 550;
}
.home .home-field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #4a5d7c;
  border-radius: 10px;
  background: #22375c;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.home .home-wide {
  grid-column: 1 / -1;
}
.home .home-form .home-button {
  min-height: 54px;
}
.home .home-form-note {
  margin: 0;
  color: #a7b6c4;
  font-size: 13px;
  line-height: 1.5;
}
.home .home-form-note a {
  color: #fff;
}
.home .home-form-status:empty {
  display: none;
}
.home .home-form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #22375c;
  color: #e2e8f0;
  font-size: 14px;
}

@media (max-width: 960px) {
  .home .home-hero,
  .home .home-highlight,
  .home .home-team,
  .home .home-demo-grid {
    grid-template-columns: 1fr;
  }
  .home .home-hero {
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .home .home-network {
    max-width: 560px;
    margin-inline: auto;
  }
  .home .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .home .home-wrap {
    padding: 0 16px;
  }
  .home .home-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .home .home-lead {
    font-size: 17px;
  }
  .home .home-cards,
  .home .home-form {
    grid-template-columns: 1fr;
  }
  .home .home-highlight {
    padding: 32px 24px;
  }
  .home .home-actions .home-button {
    flex: 1 1 100%;
  }
}
