.tools-tech-section {
  position: relative;
}

.tools-tech-strip {
  --marquee-gap: clamp(34px, 4vw, 52px);
  --tools-tech-item-width: clamp(68px, 7vw, 84px);
  position: relative;
}

.tools-tech-intro,
.tools-tech-note {
  margin: 0;
  text-align: center;
}

.tools-tech-intro {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(24, 33, 47, 0.76);
}

.tools-tech-marquee {
  --marquee-speed: 28s;
  position: relative;
  max-width: 920px;
  margin-top: 34px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  padding: 10px 0;
}

.tools-tech-marquee__track {
  display: flex;
  width: max-content;
  -webkit-animation: tools-tech-marquee var(--marquee-speed) linear infinite;
  animation: tools-tech-marquee var(--marquee-speed) linear infinite;
  will-change: transform;
}

.tools-tech-marquee:hover .tools-tech-marquee__track {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

.tools-tech-marquee__group {
  display: flex;
  align-items: flex-start;
  gap: var(--marquee-gap);
  min-width: max-content;
  padding-right: var(--marquee-gap);
  flex-shrink: 0;
}

.tools-tech-marquee__item {
  display: grid;
  grid-template-rows: 40px auto;
  align-items: start;
  justify-items: center;
  row-gap: 8px;
  width: var(--tools-tech-item-width);
  flex: 0 0 var(--tools-tech-item-width);
  transition: transform 0.25s ease;
}

.tools-tech-marquee__logo {
  width: auto;
  height: 40px;
  display: block;
  flex-shrink: 0;
  opacity: 0.78;
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.tools-tech-marquee:hover .tools-tech-marquee__logo {
  opacity: 0.48;
}

.tools-tech-marquee .tools-tech-marquee__item:hover,
.tools-tech-marquee .tools-tech-marquee__item:focus-within {
  transform: translateY(-1px);
}

.tools-tech-marquee .tools-tech-marquee__item:hover .tools-tech-marquee__logo,
.tools-tech-marquee .tools-tech-marquee__item:focus-within .tools-tech-marquee__logo {
  opacity: 1;
}

.tools-tech-marquee .tools-tech-marquee__item:focus-within .tools-tech-marquee__logo {
  outline: none;
}

.tools-tech-marquee__label {
  display: block;
  max-width: 100%;
  min-height: 30px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: #18212f;
  text-align: center;
}

.tools-tech-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(44px, 7vw, 88px);
  z-index: 2;
  pointer-events: none;
}

.tools-tech-marquee__fade--left {
  left: 0;
  background: linear-gradient(90deg, #f4eee5 0%, rgba(244, 238, 229, 0) 100%);
}

.tools-tech-marquee__fade--right {
  right: 0;
  background: linear-gradient(270deg, #f4eee5 0%, rgba(244, 238, 229, 0) 100%);
}

.tools-tech-note {
  margin-top: 28px;
  font-size: 16px;
  color: rgba(24, 33, 47, 0.76);
}

.tools-tech-note strong {
  color: #29a587;
}

.tools-tech-static {
  max-width: 920px;
  margin: 30px auto 0 auto;
}

.tools-tech-row + .tools-tech-row {
  margin-top: 18px;
}

.tools-tech-row__title {
  margin: 0 0 14px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(24, 33, 47, 0.7);
}

.tools-tech-intro + .tools-tech-row__title {
  margin-top: 22px;
}

.tools-tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.tools-tech-grid--tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, var(--tools-tech-item-width)));
  justify-content: center;
  align-items: start;
  column-gap: var(--marquee-gap);
  row-gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.tools-tech-grid--tools .tools-tech-badge {
  width: var(--tools-tech-item-width);
  flex: none;
}

.tools-tech-grid--single {
  gap: 0;
}

.tools-tech-badge {
  display: grid;
  grid-template-rows: 40px auto;
  align-items: start;
  justify-items: center;
  row-gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tools-tech-badge:hover {
  transform: translateY(-1px);
}

.tools-tech-badge img {
  width: auto;
  height: 40px;
  opacity: 0.78;
  display: block;
  transition: opacity 0.25s ease;
}

.tools-tech-badge:hover img {
  opacity: 1;
}

.tools-tech-badge__label {
  display: block;
  max-width: 100%;
  min-height: 30px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: #18212f;
  text-align: center;
  word-break: normal;
}

.tools-tech-badge--codex {
  width: 100%;
  min-width: 0;
}

.tools-tech-codex-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #2f7f73;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.tools-tech-codex-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.tools-tech-badge--codex:hover .tools-tech-codex-icon {
  opacity: 1;
}

.tools-tech-badge:hover .tools-tech-codex-icon {
  opacity: 1;
}

@keyframes tools-tech-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@-webkit-keyframes tools-tech-marquee {
  from {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(-50%, 0, 0);
            transform: translate3d(-50%, 0, 0);
  }
}

@media screen and (max-width: 767px) {
  .tools-tech-strip {
    --marquee-gap: 22px;
    --tools-tech-item-width: clamp(40px, 13vw, 48px);
  }

  .tools-tech-marquee {
    --marquee-speed: 24s;
    margin-top: 24px;
    padding: 8px 0;
  }

  .tools-tech-marquee__item {
    row-gap: 6px;
  }

  .tools-tech-marquee__logo {
    height: 40px;
  }

  .tools-tech-marquee__label {
    min-height: 24px;
    font-size: 10px;
  }

  .tools-tech-note {
    margin-top: 16px;
    font-size: 15px;
  }

  .tools-tech-static {
    margin-top: 24px;
  }

  .tools-tech-row__title {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .tools-tech-intro + .tools-tech-row__title {
    margin-top: 18px;
  }

  .tools-tech-grid {
    gap: 10px;
  }

  .tools-tech-grid--tools {
    max-width: 100%;
  }

  .tools-tech-badge {
    row-gap: 6px;
  }

  .tools-tech-badge img,
  .tools-tech-codex-icon {
    height: 40px;
    width: auto;
  }

  .tools-tech-codex-icon {
    width: 40px;
  }

  .tools-tech-badge__label {
    font-size: 10px;
    min-height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-tech-marquee__track {
    -webkit-animation-duration: 40s;
    animation-duration: 40s;
  }
}

.dark-skin .tools-tech-intro,
.dark-skin .tools-tech-note,
.dark-skin .tools-tech-row__title {
  color: rgba(255, 255, 255, 0.78);
}

.dark-skin .tools-tech-marquee__fade--left {
  background: linear-gradient(90deg, #222831 0%, rgba(34, 40, 49, 0) 100%);
}

.dark-skin .tools-tech-marquee__fade--right {
  background: linear-gradient(270deg, #222831 0%, rgba(34, 40, 49, 0) 100%);
}

.dark-skin .tools-tech-marquee__label,
.dark-skin .tools-tech-badge span,
.dark-skin .tools-tech-codex-icon {
  color: #fff;
}

.dark-skin .tools-tech-codex-icon {
  color: #7fd9c6;
}
