/* Node.js Hosting landing page — layout & surface styles only.
   Typography: a-generic/text.css (h1, h2, h3, .p1-semibold, .p2-regular,
   .p2-semibold, .p3-regular, .p3-medium). */

/* Full-page hero/glow backdrop (Figma node 1-9145) lives on a wrapper that
      contains the hero, waitlist and features sections. */
.nodejs-page {
  background-color: #060216;
  background-image: url("/wp-content/uploads/2026/06/background_nodejs_img.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.nodejs-hero {
  position: relative;
  padding: 240px 0 48px;
  overflow: hidden;
}

.nodejs-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nodejs-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.nodejs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  background: rgba(252, 252, 252, 0.07);
}

.nodejs-hero__badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 10px;
  border-radius: 100px;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: #fff;
  background: linear-gradient(14.85deg, #730cff 3.32%, #bda7ff 121.83%);
  box-shadow: 0 7.162px 21.956px rgba(0, 0, 0, 0.15);
}

.nodejs-hero__badge-text {
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.42px;
  color: #fff;
}

.nodejs-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nodejs-hero__title {
  background: linear-gradient(135.26deg, #fff 45.25%, rgba(255, 255, 255, 0.5) 96.39%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* withDarkTheme sets color:#fff on h1; text-fill-color wins for the gradient */
  -webkit-text-fill-color: transparent;
}

.nodejs-hero__title-accent {
  display: inline-block;
  font-size: inherit;
  background: linear-gradient(165.51deg, #705afe 9.82%, #ca7cfb 107.85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nodejs-hero__desc {
  max-width: 561px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.nodejs-hero__desc strong {
  color: #fff;
}

.nodejs-hero__badge-tag,
.nodejs-hero__badge-text,
.nodejs-hero .p2-regular,
.nodejs-features__header .p2-regular,
.nodejs-features__card .p1-semibold,
.nodejs-features__card .p2-regular,
.nodejs-waitlist__label,
.nodejs-waitlist__input,
.nodejs-waitlist__btn {
  margin-bottom: 0;
}

.nodejs-waitlist {
  position: relative;
  z-index: 2;
  padding: 0 0 64px;
}

.nodejs-waitlist__inner {
  max-width: 546px;
  margin: 0 auto;
  text-align: center;
}

.nodejs-waitlist__label {
  margin: 0 0 16px;
  color: #fff;
}

/* Desktop: single white "pill" with the button sitting inside on the right. */
.nodejs-waitlist__field-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 546px;
  margin: 0 auto;
  padding: 8px 8px 8px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 61px rgba(0, 0, 0, 0.15);
}

.nodejs-waitlist__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid transparent;
  outline: none;
  background: transparent;
  color: var(--ds-gray-100, #091e42);
}

.nodejs-waitlist__input::placeholder {
  color: rgba(66, 82, 110, 0.7);
}

.nodejs-waitlist__input.borderRed {
  border-color: #ff6b6b;
}

.nodejs-waitlist__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: #fff;
  background: var(--ds-blue-100, #2f39bf);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nodejs-waitlist__btn:hover {
  background: #252ea0;
}

.nodejs-waitlist__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nodejs-waitlist__error {
  margin: 10px 0 0;
  color: #ff6b6b;
}

.nodejs-waitlist__success {
  margin: 10px 0 0;
  color: #4ade80;
}

.nodejs-waitlist__success-title {
  display: block;
  margin: 0 0 4px;
  color: #4ade80;
}

.nodejs-waitlist__success-text {
  display: block;
  color: #fff;
}

/* hidden must win over the flex/inline display on these elements */
.nodejs-waitlist [hidden] {
  display: none !important;
}

.nodejs-features {
  position: relative;
  z-index: 1;
  padding: 64px 0 120px;
}

.nodejs-features__header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.nodejs-features__title {
  margin-bottom: 16px;
  background: linear-gradient(173.35deg, #fff 45.25%, rgba(255, 255, 255, 0.5) 96.39%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nodejs-features__desc {
  max-width: 561px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.nodejs-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1296px;
  margin: 0 auto;
}

.nodejs-features__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 244px;
  padding: 24px;
  border: 0.5px solid var(--ds-gray-10, #dfe1e6);
  border-radius: 16px;
  background: linear-gradient(188.24deg, rgba(255, 255, 255, 0.08) 9.9%, rgba(157, 133, 223, 0.08) 99.1%);
  backdrop-filter: blur(23.423px);
  -webkit-backdrop-filter: blur(23.423px);
  box-shadow: 0 10.009px 61.372px rgba(0, 0, 0, 0.15);
}

.nodejs-features__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
}

.nodejs-features__icon img {
  filter: brightness(0) invert(1);
}

.nodejs-features__card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nodejs-features__card-title {
  color: var(--ds-gray-1, #fcfcfc);
}

.nodejs-features__card-desc {
  color: var(--ds-gray-10, #dfe1e6);
}

/* Footer background to match Node.js landing page design (Figma) */
footer#cw-footer.uplift-footer-nav {
  background: #09051e;
}

footer#cw-footer.uplift-footer-nav .footer-nav-btm {
  background-color: #09051e;
}

footer#cw-footer.uplift-footer-nav div#footer-container .footerContainerWrap {
  display: none;
}

footer#cw-footer.uplift-footer-nav div#footer-container {
  padding: 0;
}

.uplift-footer-nav .footer-nav-btm {
  display: block !important;
}

.nodejs-page .nodejs-features__header .nodejs-features__title {
  margin: 0 0 16px !important;
}

.nodejs-waitlist__btn-arrow {
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.2s ease;
}

.nodejs-waitlist__btn:hover .nodejs-waitlist__btn-arrow {
  transform: translateX(3px);
}

.nodejs-waitlist__btn-arrow path {
  stroke: #fff;
}

.nodejs-frameworks {
  position: relative;
  z-index: 1;
  padding: 24px 0 48px;
}

.nodejs-frameworks__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nodejs-frameworks__item {
  display: flex;
  align-items: center;
  padding: 0 44px;
}

.nodejs-frameworks__item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.nodejs-frameworks__logo {
  display: block;
  height: 36px;
  width: auto;
}

.nodejs-frameworks__list {}

.nodejs-frameworks__list::-webkit-scrollbar {
  display: none;
}

.nodejs-waitlist__success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid #59f3c033;
  border-radius: 12px;
  background: #001216;
  text-align: center;
}

.nodejs-waitlist__success[hidden] {
  display: none;
}

.nodejs-waitlist__success-text {
  color: #ffffff;
}

/* Owl carousel (mobile frameworks slider) — ship the essential layout rules
      scoped to our list so it renders correctly even if Owl's base CSS from the
      CDN fails to apply. Without float/overflow the items stack vertically and the
      stage transform pushes them out of view, leaving a blank gap. */
.nodejs-frameworks__list.owl-carousel {
  display: block;
  width: 100%;
}

.nodejs-frameworks__list.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
}

.nodejs-frameworks__list.owl-carousel .owl-stage {
  position: relative;
}

.nodejs-frameworks__list.owl-carousel .owl-stage::after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.nodejs-frameworks__list.owl-carousel .owl-item {
  position: relative;
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep the logos at their natural aspect ratio (Owl forces img width:100%). */
.nodejs-frameworks__list.owl-carousel .owl-item img.nodejs-frameworks__logo {
  width: auto;
  max-width: 100%;
  height: 36px;
  margin: 0 auto;
}

.nodejs-frameworks__list.owl-carousel .owl-nav,
.nodejs-frameworks__list.owl-carousel .owl-dots {
  display: none;
}

.nodejs-frameworks__list.owl-carousel .owl-dots {
  margin-top: 16px;
  text-align: center;
}

.nodejs-frameworks__list.owl-carousel .owl-dots .owl-dot {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
}

.nodejs-frameworks__list.owl-carousel .owl-dots .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.2s ease;
}

.nodejs-frameworks__list.owl-carousel .owl-dots .owl-dot.active span {
  background: #fff;
}

@media (max-width: 991px) {
  .nodejs-features__grid {
    grid-template-columns: 1fr;
    max-width: 416px;
  }
  .nodejs-frameworks__item {
    padding: 0 14px;
  }
}

@media (max-width: 767px) {
  .nodejs-hero {
    padding: 180px 0 32px;
  }

  /* Mobile: break the pill apart into a standalone input and a stacked
           full-width button. */
  .nodejs-waitlist__field-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .nodejs-waitlist__input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 11px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }

  .nodejs-waitlist__btn {
    width: 100%;
    height: 48px;
    padding: 0;
  }
}