.automation-section,
.contact-section {
  position: relative;
  overflow: hidden;
  background: #0a0c10;
  color: #fff;
}

.automation-section {
  background:
    radial-gradient(ellipse at 82% 55%, rgb(182 243 106 / 5.5%), transparent 36%),
    #0a0c10;
}

.automation-section::after,
.contact-section::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #252a30;
  content: "";
  transform: translateX(50%);
  pointer-events: none;
}

.closing-section__inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 74px 84px;
}

.closing-section__label {
  margin: 0;
  color: #9aa3b5;
  font: 500 12px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing-section__label span {
  padding-inline: 5px;
  color: #b6f36a;
}

.automation-section__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  align-items: end;
  gap: clamp(32px, 6vw, 90px);
}

.automation-section__heading h2 {
  max-width: 760px;
  margin: 15px 0 0;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.automation-section__note {
  max-width: 390px;
  margin: 0 0 4px;
  color: #a4a9a1;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}

.automation-demo {
  display: grid;
  justify-items: center;
  margin-top: 40px;
}

.automation-flow {
  width: min(100%, 820px);
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgb(224 232 214 / 14%);
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 88% 0, rgb(182 243 106 / 7%), transparent 40%),
    #11151a;
  box-shadow: 0 24px 65px rgb(0 0 0 / 25%);
}

.automation-flow__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.automation-flow__kicker {
  color: #929ba3;
  font: 500 10px/1.4 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
}

.automation-flow__heading h3 {
  margin: 5px 0 0;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.automation-flow__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgb(182 243 106 / 24%);
  color: #b6f36a;
  font: 500 10px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  transition: background-color 250ms ease, border-color 250ms ease;
}

.automation-flow__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b6f36a;
  animation: automation-dot-breathe 1.8s ease-in-out infinite;
}

.automation-flow__live.is-complete {
  border-color: rgb(182 243 106 / 40%);
  background: rgb(182 243 106 / 8%);
}

.automation-flow__live.is-complete i {
  animation: none;
}

.automation-trigger {
  display: flex;
  min-height: 57px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgb(182 243 106 / 22%);
  background: rgb(182 243 106 / 5%);
  transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}

.automation-trigger.is-active,
.automation-trigger.is-complete {
  border-color: rgb(182 243 106 / 48%);
  background: rgb(182 243 106 / 9%);
  box-shadow: 0 0 24px rgb(182 243 106 / 6%);
}

.automation-trigger__icon,
.automation-trigger__check,
.automation-complete__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgb(182 243 106 / 12%);
  color: #b6f36a;
}

.automation-trigger__icon {
  width: 30px;
  height: 30px;
}

.automation-trigger__copy,
.automation-step__copy,
.automation-complete__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.automation-trigger__copy b,
.automation-step__copy b,
.automation-complete__copy b {
  color: #e8ebea;
  font-size: 13px;
  font-weight: 550;
}

.automation-trigger__copy small,
.automation-step__copy small,
.automation-complete__copy small {
  color: #929ba3;
  font-size: 11px;
}

.automation-trigger__check {
  width: 23px;
  height: 23px;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 250ms ease, transform 250ms ease;
}

.automation-trigger.is-complete .automation-trigger__check {
  opacity: 1;
  transform: scale(1);
}

.automation-steps {
  position: relative;
  display: grid;
  gap: 7px;
  padding-block: 12px;
}

.automation-steps::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25px;
  width: 1px;
  background: #30373b;
  content: "";
}

.automation-step {
  position: relative;
  display: flex;
  min-height: 51px;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border: 1px solid transparent;
  opacity: 0.58;
  transition: opacity 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.automation-step.is-active,
.automation-step.is-complete {
  border-color: rgb(182 243 106 / 18%);
  background: rgb(182 243 106 / 4%);
  opacity: 1;
}

.automation-step__number {
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #444d4f;
  border-radius: 50%;
  background: #11151a;
  color: #a4adb1;
  font: 500 10px/1 "SFMono-Regular", Consolas, monospace;
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.automation-step.is-active .automation-step__number,
.automation-step.is-complete .automation-step__number {
  border-color: #b6f36a;
  background: #b6f36a;
  color: #10140d;
}

.automation-step__status {
  color: #858f92;
  font-size: 10px;
  white-space: nowrap;
}

.automation-step.is-active .automation-step__status {
  color: #b6f36a;
}

.automation-step.is-complete .automation-step__status {
  color: #c5d5b3;
}

.automation-complete {
  display: flex;
  min-height: 49px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-top: 1px solid rgb(224 232 214 / 10%);
}

.automation-complete__icon {
  width: 25px;
  height: 25px;
}

.automation-complete__spark {
  color: #b6f36a;
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
  transition: opacity 350ms ease, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.automation-demo.is-complete .automation-complete__spark {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.automation-section__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #252a30;
}

.automation-section__cta p {
  max-width: 430px;
  margin: 0;
  color: #a4a9a1;
  font-size: 14px;
  line-height: 1.6;
}

.closing-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgb(182 243 106 / 36%);
  border-radius: 8px;
  background: rgb(182 243 106 / 7%);
  color: #e8f4dc;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.closing-button:focus-visible {
  transform: translateY(-2px);
  border-color: #b6f36a;
  background: rgb(182 243 106 / 13%);
  color: #b6f36a;
}

.closing-button span {
  color: #b6f36a;
  transition: transform 200ms ease;
}

.closing-button:focus-visible span {
  transform: translate(2px, -2px);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .closing-button:hover {
    transform: translateY(-2px);
    border-color: #b6f36a;
    background: rgb(182 243 106 / 13%);
    color: #b6f36a;
  }

  .closing-button:hover span {
    transform: translate(2px, -2px);
  }
}

.contact-section__inner {
  display: flex;
  width: min(1000px, calc(100% - 48px));
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  padding-block: 112px 120px;
  text-align: center;
}

.contact-section__inner > .closing-section__label {
  margin-bottom: 19px;
}

.contact-section h2 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.contact-section h2 span {
  color: #b6f36a;
}

.contact-section__description {
  max-width: 500px;
  margin: 0 0 28px;
  color: #a4a9a1;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2vw, 22px);
  margin-top: 38px;
}

.social-link {
  display: flex;
  min-width: 72px;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #a4a9a1;
  font-size: 12px;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}

.social-link:focus-visible {
  transform: translateY(-3px);
  color: #b6f36a;
}

.social-link__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #30373b;
  border-radius: 13px;
  background: linear-gradient(145deg, rgb(255 255 255 / 3.5%), rgb(255 255 255 / 0.8%));
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.social-link:focus-visible .social-link__icon {
  border-color: rgb(182 243 106 / 48%);
  background: rgb(182 243 106 / 5%);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
  .social-link:hover {
    transform: translateY(-3px);
    color: #b6f36a;
  }

  .social-link:hover .social-link__icon {
    border-color: rgb(182 243 106 / 48%);
    background: rgb(182 243 106 / 5%);
  }
}

.social-link__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.social-link__icon .social-link__icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-link:focus-visible,
.closing-button:focus-visible {
  outline: 2px solid #b6f36a;
  outline-offset: 4px;
}

@keyframes automation-dot-breathe {
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  .closing-section__inner {
    width: calc(100% - 40px);
    padding-block: 56px 64px;
  }

  .automation-section__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .automation-section__heading h2 {
    margin-top: 13px;
    font-size: clamp(32px, 8vw, 46px);
  }

  .automation-section__note {
    max-width: 520px;
  }

  .automation-demo {
    margin-top: 28px;
  }

  .automation-section__cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .contact-section__inner {
    width: calc(100% - 40px);
    padding-block: 76px 84px;
  }

  .contact-section h2 {
    font-size: clamp(40px, 10vw, 62px);
  }
}

@media (max-width: 420px) {
  .automation-flow {
    padding: 14px 11px 10px;
    border-radius: 7px;
  }

  .automation-flow__heading {
    margin-bottom: 12px;
  }

  .automation-flow__heading h3 {
    font-size: 18px;
  }

  .automation-trigger {
    min-height: 48px;
    gap: 8px;
    padding: 7px 8px;
  }

  .automation-trigger__icon {
    width: 26px;
    height: 26px;
  }

  .automation-trigger__copy b,
  .automation-step__copy b,
  .automation-complete__copy b {
    font-size: 11px;
  }

  .automation-trigger__copy small,
  .automation-step__copy small,
  .automation-complete__copy small {
    font-size: 9px;
  }

  .automation-steps {
    gap: 3px;
    padding-block: 8px;
  }

  .automation-steps::before {
    left: 22px;
  }

  .automation-step {
    min-height: 43px;
    gap: 8px;
    padding: 5px 6px;
  }

  .automation-step__number {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .automation-step__status {
    font-size: 9px;
  }

  .automation-complete {
    min-height: 42px;
    gap: 7px;
    padding: 6px 7px;
  }

  .automation-complete__icon {
    width: 22px;
    height: 22px;
  }

  .contact-section__inner {
    padding-block: 68px 74px;
  }

  .social-links {
    gap: 14px 8px;
    margin-top: 29px;
  }

  .social-link {
    min-width: 60px;
    font-size: 11px;
  }

  .social-link__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-flow *,
  .closing-button,
  .closing-button span,
  .social-link,
  .social-link__icon {
    animation: none !important;
    transition: none !important;
  }
}
