/* Binary Genes products overview */

.page_arc_products {
  --products-cyan: #00c2f3;
  --products-teal: #31dfbd;
  --products-navy: #032d42;
  --products-deep: #011d2d;
  --products-ink: #082f42;
  --products-muted: #526d78;
  --products-line: #d6e2e6;
  color: var(--products-ink);
  background: #f2f7f8;
}

.products-page {
  width: 100%;
  max-width: 100vw;
  overflow: clip;
  background: #f2f7f8;
}

.products-shell {
  box-sizing: border-box;
  width: min(100%, 1540px);
  margin-inline: auto;
  padding-inline: clamp(22px, 4.4vw, 70px);
}

.products-eyebrow {
  margin: 0 0 18px;
  color: var(--products-cyan);
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.products-eyebrow--dark {
  color: #006f8a;
}

.products-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 16%, rgba(49, 223, 189, 0.12), transparent 28%),
    radial-gradient(circle at 8% 12%, rgba(0, 194, 243, 0.12), transparent 28%),
    linear-gradient(140deg, #021f31 0%, #053c54 58%, #075e66 100%);
}

.products-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 65%, transparent);
  pointer-events: none;
}

.products-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.products-orb--one {
  top: -110px;
  right: -90px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(0, 194, 243, 0.22);
  box-shadow: inset 0 0 90px rgba(0, 194, 243, 0.06);
}

.products-orb--two {
  bottom: -230px;
  left: 32%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(49, 223, 189, 0.18);
}

.products-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
  padding-block: clamp(76px, 8vw, 128px);
}

.products-hero-copy {
  min-width: 0;
}

.products-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: clamp(56px, 6vw, 94px);
  font-weight: 700;
  /* letter-spacing: -0.055em; */
  line-height: 0.96;
  text-wrap: balance;
}

.products-hero h1 span {
  display: block;
  color: var(--products-cyan);
}

.products-hero-intro {
  max-width: 680px;
  margin: 30px 0 0;
  color: #cbdce2;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.55;
}

.products-hero-actions,
.products-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.products-button {
  display: inline-flex;
  min-height: 52px;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 21px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.products-button:hover {
  transform: translateY(-2px);
}

.products-button--primary {
  color: #002f42;
  border-color: var(--products-cyan);
  background: var(--products-cyan);
}

.products-button--primary:hover {
  color: #ffffff;
  background: transparent;
}

.products-button--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

.products-button--secondary:hover {
  color: #ffffff;
  border-color: var(--products-cyan);
  background: rgba(0, 194, 243, 0.08);
}

.products-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 46px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.products-hero-facts div {
  min-width: 0;
  padding: 22px 20px 0 0;
}

.products-hero-facts div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.products-hero-facts dt {
  color: #ffffff;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.products-hero-facts dd {
  margin: 7px 0 0;
  color: #bcd1d9;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 13px;
  line-height: 1.4;
}

.products-hero-visual {
  position: relative;
  min-width: 0;
  padding: 52px 28px 54px;
}

.products-hero-visual::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 42% 58% 54% 46% / 44% 45% 55% 56%;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 36px 100px rgba(0, 18, 29, 0.28);
  content: "";
  transform: rotate(-4deg);
}

.products-hero-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: #f7f8fb;
  box-shadow: 0 34px 90px rgba(0, 18, 29, 0.36);
  transform: rotate(2.5deg);
  transition: transform 240ms ease;
}

.products-hero-visual:hover .products-hero-window {
  transform: rotate(0deg) translateY(-4px);
}

.products-window-bar {
  display: flex;
  height: 42px;
  gap: 7px;
  align-items: center;
  padding-inline: 16px;
  color: #526872;
  border-bottom: 1px solid #dce4e8;
  background: #ffffff;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 12px;
}

.products-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bdcad0;
}

.products-window-bar span:first-child {
  background: #00b8e6;
}

.products-window-bar strong {
  margin-left: auto;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
}

.products-hero-window > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.products-floating-label {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 190px;
  grid-template-columns: 13px 1fr;
  gap: 2px 10px;
  padding: 15px 17px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(3, 45, 66, 0.82);
  box-shadow: 0 18px 40px rgba(0, 15, 25, 0.24);
  backdrop-filter: blur(16px);
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 14px;
}

.products-floating-label > span {
  width: 10px;
  height: 10px;
  grid-row: 1 / span 2;
  margin-top: 4px;
  border: 2px solid var(--products-teal);
  border-radius: 50%;
}

.products-floating-label small {
  color: #bed2da;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 11px;
  font-weight: 400;
}

.products-floating-label--top {
  top: 24px;
  right: -10px;
}

.products-floating-label--bottom {
  bottom: 20px;
  left: -18px;
}

.products-index {
  position: relative;
  z-index: 5;
  color: var(--products-ink);
  border-bottom: 1px solid var(--products-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(3, 45, 66, 0.055);
}

.products-index .products-shell {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}

.products-index a {
  flex: 0 0 auto;
  padding: 20px 18px;
  color: #526d78;
  border-bottom: 3px solid transparent;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.products-index a:first-child {
  color: #006f8a;
  border-bottom-color: var(--products-cyan);
}

.products-index a:hover {
  color: #006f8a;
  border-bottom-color: #7adcf0;
}

.products-portfolio {
  scroll-margin-top: 96px;
  padding-block: clamp(80px, 9vw, 144px);
  background:
    linear-gradient(180deg, rgba(3, 45, 66, 0.04), transparent 420px),
    #f2f7f8;
}

.products-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.7fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 82px);
}

.products-section-heading h2 {
  max-width: 900px;
  margin: 0;
  color: var(--products-ink);
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  /* letter-spacing: -0.045em; */
  line-height: 1.02;
  text-wrap: balance;
}

.products-section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--products-muted);
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 18px;
  line-height: 1.6;
}

.products-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-overview-card {
  --product-accent: #00a9d2;
  --product-accent-soft: rgba(0, 169, 210, 0.12);
  scroll-margin-top: 106px;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--products-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(3, 45, 66, 0.065);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.product-overview-card:hover {
  border-color: color-mix(in srgb, var(--product-accent) 55%, #d6e2e6);
  box-shadow: 0 24px 54px rgba(3, 45, 66, 0.12);
  transform: translateY(-4px);
}

.product-overview-card--featured {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  grid-column: 1 / -1;
}

.product-overview-card--violet {
  --product-accent: #7545e5;
  --product-accent-soft: rgba(117, 69, 229, 0.14);
}

.product-overview-card--teal {
  --product-accent: #008b87;
  --product-accent-soft: rgba(0, 139, 135, 0.13);
}

.product-overview-card--blue {
  --product-accent: #176fd1;
  --product-accent-soft: rgba(23, 111, 209, 0.13);
}

.product-overview-card--magenta {
  --product-accent: #e15193;
  --product-accent-soft: rgba(225, 81, 147, 0.14);
}

.product-overview-card--cyan {
  --product-accent: #008fb2;
  --product-accent-soft: rgba(0, 143, 178, 0.13);
}

.product-overview-visual {
  position: relative;
  display: grid;
  min-height: 340px;
  overflow: hidden;
  place-items: center;
  padding: clamp(24px, 4vw, 54px);
  border-bottom: 1px solid var(--products-line);
  background:
    radial-gradient(circle at 75% 18%, var(--product-accent-soft), transparent 34%),
    linear-gradient(145deg, #eef4f6, #ffffff);
}

.product-overview-card--featured .product-overview-visual {
  min-height: 520px;
  border-right: 1px solid var(--products-line);
  border-bottom: 0;
}

.product-visual-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--product-accent-soft);
  filter: blur(30px);
}

.product-interface-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 700px;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(3, 45, 66, 0.17));
  transition: transform 260ms ease;
}

.product-overview-card:hover .product-interface-image {
  transform: scale(1.025);
}

.product-overview-visual--brand {
  align-content: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 26%),
    radial-gradient(circle at 86% 76%, rgba(73, 219, 236, 0.16), transparent 28%),
    linear-gradient(140deg, #321a60 0%, #7f2e8f 55%, #c9437c 100%);
}

.product-overview-visual--brand::before,
.product-overview-visual--brand::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.product-overview-visual--brand::before {
  top: -80px;
  right: -50px;
  width: 260px;
  height: 260px;
}

.product-overview-visual--brand::after {
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
}

.product-brand-logo {
  position: relative;
  z-index: 1;
  width: min(280px, 72%);
  height: auto;
}

.product-overview-visual--brand > p {
  position: relative;
  z-index: 1;
  max-width: 33ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.product-overview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(30px, 4.5vw, 58px);
}

.product-category {
  align-self: flex-start;
  margin: 0 0 22px;
  padding: 7px 11px;
  color: var(--product-accent);
  border-radius: 999px;
  background: var(--product-accent-soft);
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-overview-copy h3 {
  margin: 0;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: clamp(31px, 3.4vw, 50px);
  font-weight: 700;
  /* letter-spacing: -0.04em; */
  line-height: 1.03;
}

.product-overview-copy h3 a {
  color: var(--products-ink);
  text-decoration: none;
}

.product-overview-copy h3 a:hover {
  color: var(--product-accent);
}

.product-summary {
  margin: 20px 0 0;
  color: var(--products-muted);
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 17px;
  line-height: 1.62;
}

.product-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.product-capabilities li {
  padding: 8px 11px;
  color: #365763;
  border: 1px solid #d9e4e8;
  border-radius: 8px;
  background: #f5f8f9;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 12px;
  line-height: 1.25;
}

.product-card-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 34px;
  color: var(--products-ink);
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.product-card-link span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: var(--product-accent);
  transition: transform 180ms ease;
}

.product-card-link:hover {
  color: var(--product-accent);
}

.product-card-link:hover span {
  transform: translateX(4px);
}

.products-principles {
  padding-block: clamp(82px, 9vw, 146px);
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(49, 223, 189, 0.12), transparent 28%),
    linear-gradient(145deg, #021f31, #06465b);
}

.products-section-heading--light h2 {
  color: #ffffff;
}

.products-section-heading--light > p {
  color: #c3d6dd;
}

.products-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.products-principle-grid li {
  min-height: 300px;
  padding: 30px clamp(26px, 3vw, 48px) 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.products-principle-grid li + li {
  padding-left: clamp(26px, 3vw, 48px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.products-principle-grid span {
  display: block;
  margin-bottom: 72px;
  color: var(--products-cyan);
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.products-principle-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: clamp(26px, 2.4vw, 36px);
  /* letter-spacing: -0.03em; */
  line-height: 1.08;
}

.products-principle-grid p {
  max-width: 38ch;
  margin: 0;
  color: #c4d5dc;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 16px;
  line-height: 1.6;
}

.products-cta {
  padding-block: clamp(70px, 8vw, 118px);
  background: #f2f7f8;
}

.products-cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: clamp(46px, 8vw, 126px);
  align-items: end;
  padding-block: clamp(46px, 6vw, 78px);
  color: #ffffff;
  border: 1px solid rgba(0, 194, 243, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(49, 223, 189, 0.18), transparent 32%),
    linear-gradient(135deg, #032d42 0%, #075e66 100%);
  box-shadow: 0 24px 62px rgba(3, 45, 66, 0.15);
}

.products-cta-card h2 {
  max-width: 800px;
  margin: 0;
  color: #ffffff;
  font-family: var(--arc-font-family-bold, ServiceNowSansBold, sans-serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  /* letter-spacing: -0.045em; */
  line-height: 1.02;
  text-wrap: balance;
}

.products-cta-card > div > p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: #c9dbe1;
  font-family: var(--arc-font-family-regular, ServiceNowSansRegular, sans-serif);
  font-size: 18px;
  line-height: 1.58;
}

.products-cta-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.products-button:focus-visible,
.products-index a:focus-visible,
.product-overview-copy h3 a:focus-visible,
.product-card-link:focus-visible {
  outline: 3px solid var(--products-teal);
  outline-offset: 4px;
}

@media (max-width: 1180px) {
  .products-hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .products-hero-copy {
    max-width: 900px;
  }

  .products-hero-visual {
    width: min(100%, 850px);
    margin-inline: auto;
  }

  .products-section-heading,
  .products-cta-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .products-section-heading {
    gap: 26px;
  }

  .products-cta-actions {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .products-card-grid {
    grid-template-columns: 1fr;
  }

  .product-overview-card--featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .product-overview-card--featured .product-overview-visual {
    min-height: 400px;
    border-right: 0;
    border-bottom: 1px solid var(--products-line);
  }

  .products-principle-grid {
    grid-template-columns: 1fr;
  }

  .products-principle-grid li,
  .products-principle-grid li + li {
    min-height: 0;
    padding: 28px 0 36px;
    border-left: 0;
  }

  .products-principle-grid span {
    margin-bottom: 40px;
  }
}

@media (max-width: 680px) {
  .products-hero-layout {
    gap: 48px;
    padding-block: 62px 86px;
  }

  .products-hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(43px, 13vw, 62px);
  }

  .products-hero-intro {
    font-size: 18px;
  }

  .products-hero-actions,
  .products-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .products-button {
    width: 100%;
  }

  .products-hero-facts {
    grid-template-columns: 1fr;
  }

  .products-hero-facts div,
  .products-hero-facts div + div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: baseline;
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .products-hero-facts dd {
    margin: 0;
  }

  .products-hero-visual {
    padding: 30px 0;
  }

  .products-hero-visual::before {
    inset: 0 -20px;
  }

  .products-hero-window {
    border-radius: 15px;
    transform: none;
  }

  .products-window-bar {
    height: 34px;
  }

  .products-floating-label {
    display: none;
  }

  .products-index .products-shell {
    padding-inline: 8px;
  }

  .products-section-heading h2,
  .products-cta-card h2 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .product-overview-card {
    border-radius: 18px;
  }

  .product-overview-visual,
  .product-overview-card--featured .product-overview-visual {
    min-height: 280px;
    padding: 26px 20px;
  }

  .product-overview-copy {
    padding: 30px 23px 34px;
  }

  .product-overview-copy h3 {
    font-size: 34px;
  }

  .products-cta-card {
    margin-inline: 16px;
    padding-inline: 24px;
    border-radius: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-button,
  .products-hero-window,
  .product-overview-card,
  .product-interface-image,
  .product-card-link span {
    transition: none;
  }
}
