:root {
  --green: #4c7b63;
  --green-dark: #3d765d;
  --ink: #101719;
  --muted: #2f3938;
  --line: rgba(96, 112, 103, 0.22);
  --panel: rgba(255, 255, 255, 0.56);
  --cream: #f8f7f3;
  --button-radius: 4px;
  --font-headline: "Canela", "Canela Text", "Bodoni 72", "Bodoni 72 Oldstyle", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-page {
  position: relative;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background-color: var(--cream);
  background-image: url("./assets/leads-crm-bg-web.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
}

.brand {
  position: absolute;
  top: 26px;
  left: 31px;
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.brand strong {
  color: var(--green-dark);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  will-change: transform;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.feature:focus-visible,
.powered-by a:focus-visible,
.brand:focus-visible {
  outline: 2px solid rgba(61, 118, 93, 0.42);
  outline-offset: 4px;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(61, 118, 93, 0.12);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #426e58;
  box-shadow: 0 14px 26px rgba(61, 118, 93, 0.18);
}

.button-secondary {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.32);
  border-color: var(--green-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #ffffff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button-arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.header-button {
  position: absolute;
  top: 16px;
  right: 34px;
  width: 187px;
  font-size: 13px;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(160px, 21vh, 215px);
  left: 49px;
  width: 590px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 240px;
  margin: 0 0 25px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(234, 241, 232, 0.78);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  width: 650px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-headline);
  font-size: 62px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.accent-word {
  position: relative;
  display: inline-block;
  color: var(--green-dark);
  font-style: italic;
}

.partner-underline {
  position: absolute;
  left: 4%;
  bottom: -16px;
  width: 96%;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero-body {
  width: 480px;
  margin: 35px 0 31px;
  color: #263132;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-actions .button {
  width: 186px;
  font-size: 13px;
}

.funnel {
  position: absolute;
  z-index: 1;
  top: clamp(165px, 19.9vh, 204px);
  left: 49.85%;
  width: min(49.2vw, 708px);
  max-width: 708px;
  aspect-ratio: 708 / 418;
}

.funnel img,
.moving-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.funnel img {
  display: block;
}

.moving-dots {
  overflow: visible;
  pointer-events: none;
}

.flow-dot {
  filter: drop-shadow(0 0 1px rgba(61, 118, 93, 0.16));
}

.source-pulses {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.2;
  pointer-events: none;
}

.features {
  position: absolute;
  z-index: 3;
  top: clamp(570px, 75vh, 768px);
  left: 31px;
  right: 31px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 22px;
  min-height: 108px;
  padding: 0 27px 0 7px;
  border-radius: 8px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 1px;
  height: 107px;
  background: var(--line);
}

.feature img {
  width: 74px;
  height: 74px;
  transition: transform 180ms ease, filter 180ms ease;
}

.feature h2 {
  margin: 8px 0 5px;
  color: #121a1b;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.feature p {
  max-width: 245px;
  margin: 0;
  color: #263132;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.feature:hover,
.feature:focus-visible {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(61, 118, 93, 0.08);
  transform: translateY(-6px);
}

.feature:hover img,
.feature:focus-visible img {
  filter: saturate(1.05);
  transform: scale(1.06);
}

.powered-by {
  position: absolute;
  z-index: 3;
  left: 31px;
  right: 31px;
  bottom: clamp(22px, 6.45vh, 66px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  color: rgba(37, 46, 45, 0.48);
  font-size: 14px;
  line-height: 1;
}

.powered-by span {
  height: 1px;
  background: rgba(96, 112, 103, 0.22);
}

.powered-by p {
  margin: 0;
}

.powered-by a {
  color: rgba(37, 46, 45, 0.62);
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.powered-by a:hover,
.powered-by a:focus-visible {
  color: var(--green-dark);
  border-color: currentColor;
}

@media (max-width: 1080px) and (min-width: 701px) {
  .funnel {
    opacity: 0.7;
    left: 48%;
  }

  .hero-copy {
    width: 54vw;
  }

  h1 {
    width: auto;
    font-size: clamp(56px, 6vw, 72px);
  }

  .features {
    gap: 16px;
  }

  .feature {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 16px;
    padding-right: 16px;
    padding-left: 0;
  }

  .feature img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 700px) {
  .landing-page {
    height: auto;
    min-height: 1506px;
    background-image: url("./assets/leads-crm-bg-mobile.png");
    background-position: top center;
    background-size: 390px 1506px;
  }

  .site-header {
    height: 77px;
  }

  .brand {
    top: 31px;
    left: 17px;
    font-size: 22px;
  }

  .header-button {
    top: 17px;
    right: 16px;
    width: 185px;
    min-height: 43px;
    padding: 0 18px;
    gap: 10px;
    font-size: 12px;
  }

  .hero-copy {
    top: 109px;
    left: 17px;
    width: calc(100% - 34px);
  }

  .eyebrow {
    height: 28px;
    min-width: 223px;
    margin-bottom: 27px;
    padding: 0 15px;
    font-size: 10px;
  }

  h1 {
    width: auto;
    max-width: 356px;
    font-size: 42px;
    line-height: 1.28;
  }

  .partner-underline {
    bottom: -11px;
    height: 18px;
    stroke-width: 2;
  }

  .hero-body {
    width: min(100%, 357px);
    margin: 21px 0 18px;
    font-size: 16px;
    line-height: 1.72;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 188px);
    gap: 16px;
  }

  .hero-actions .button {
    width: 188px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 12px;
  }

  .hero-actions .button-secondary {
    width: 188px;
  }

  .button-arrow {
    width: 21px;
    height: 21px;
  }

  .funnel {
    top: 624px;
    left: 17px;
    width: calc(100% - 34px);
  }

  .features {
    top: 964px;
    left: 17px;
    right: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 20px;
    min-height: 110px;
    padding: 0 0 28px;
    border-radius: 8px;
  }

  .feature:not(:last-child)::after {
    top: auto;
    right: 0;
    bottom: 17px;
    width: 100%;
    height: 1px;
  }

  .feature h2 {
    margin-top: 7px;
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.25;
  }

  .feature p {
    max-width: 260px;
    font-size: 14px;
    line-height: 1.52;
  }

  .feature:hover,
  .feature:focus-visible {
    transform: translateY(-4px);
  }

  .powered-by {
    left: 17px;
    right: 17px;
    bottom: 58px;
    gap: 16px;
    font-size: 14px;
  }
}

@media (max-width: 374px) {
  .brand {
    font-size: 20px;
  }

  .header-button {
    width: 168px;
    font-size: 11px;
  }

  h1 {
    font-size: 38px;
  }

  .powered-by {
    gap: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .moving-dots {
    display: none;
  }
}
