.tool-related-footer.bottom-section {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  margin: 64px auto 12px;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  color: #fff;
}

body:not(.empty-state-active) .tool-related-footer {
  display: none !important;
}

.chatbot-container:not(.empty-state) > .tool-related-footer {
  display: none !important;
}

.tool-related-footer .starry-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(#fff 1px, transparent 1px), radial-gradient(#fff 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.15;
  pointer-events: none;
  animation: toolFooterStars 60s linear infinite;
}

@keyframes toolFooterStars {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

.tool-related-footer .footer {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  box-sizing: border-box;
  padding: 40px clamp(32px, 4.2vw, 72px) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-related-footer .footer-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  align-items: start;
  gap: clamp(32px, 4.5vw, 84px);
}

.tool-related-footer .footer-brand {
  min-width: 0;
}

.tool-related-footer .footer-brand h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.tool-related-footer .footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
}

.tool-related-footer .footer-links-wrapper {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(112px, 1fr);
  gap: clamp(22px, 3vw, 52px);
  min-width: 0;
}

.tool-related-footer .footer-col {
  min-width: 0;
}

.tool-related-footer .footer-col h4 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.tool-related-footer .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-related-footer .footer-col li {
  margin-bottom: 12px;
}

.tool-related-footer .footer-col a {
  pointer-events: auto;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s;
}

.tool-related-footer .footer-col a:hover {
  color: #fff;
}

.tool-related-footer .footer-qr {
  width: 100px;
  max-width: 100%;
  height: 100px;
  max-height: 100px;
  object-fit: cover;
  display: block;
  margin-top: 12px;
}

.tool-related-footer .footer-bottom {
  width: 100%;
  max-width: none;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #666;
  font-size: 13px;
}

.tool-related-footer .footer-bottom a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

@media (min-width: 769px) {
  body.empty-state-active .main-content {
    /* Keep the footer close to the fixed disclaimer without crowding it. */
    padding-bottom: 16px !important;
  }

  body.empty-state-active .chatbot-container.empty-state {
    padding-bottom: 20px !important;
  }

  body.empty-state-active .chatbot-container.empty-state[data-active-tab="examples"] .excellent-examples-section {
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }

  body.empty-state-active .chatbot-container.empty-state[data-active-tab="examples"] .examples-masonry {
    flex: 0 0 auto !important;
  }

  body.empty-state-active .chatbot-container.empty-state[data-active-tab] .excellent-examples-section + .tool-related-footer {
    margin-top: clamp(360px, 38vh, 560px) !important;
  }

  body.empty-state-active .tool-related-footer.bottom-section {
    margin-top: clamp(320px, 34vh, 520px) !important;
  }
}

.clone-workspace-inner .tool-related-footer {
  flex: 0 0 auto;
  width: min(100%, 1180px);
  max-width: 100%;
  margin-top: clamp(320px, 34vh, 520px) !important;
  margin-bottom: 16px;
}

@container (max-width: 1180px) {
  .tool-related-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tool-related-footer .footer-brand p {
    max-width: 560px;
  }

  .tool-related-footer .footer-links-wrapper {
    gap: 28px;
  }
}

@media (max-width: 1180px) {
  .tool-related-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tool-related-footer .footer-brand p {
    max-width: 560px;
  }

  .tool-related-footer .footer-links-wrapper {
    gap: 28px;
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  .tool-related-footer .footer {
    padding-left: 36px;
    padding-right: 36px;
  }

  .tool-related-footer .footer-content {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.9fr);
    gap: 30px;
  }

  .tool-related-footer .footer-links-wrapper {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .tool-related-footer.bottom-section {
    margin: clamp(220px, 36vh, 360px) auto 12px;
    border-radius: 22px;
  }

  .tool-related-footer .footer {
    padding: 34px 22px 26px;
  }

  .tool-related-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tool-related-footer .footer-links-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 480px) {
  .tool-related-footer .footer-links-wrapper {
    grid-template-columns: 1fr;
  }

  .tool-related-footer .footer-bottom {
    justify-content: flex-start;
  }
}
