.rmai-product-hero,
.rmai-product-hero * {
  box-sizing: border-box;
}

.rmai-product-hero {
  --navy: #0b1838;
  --blue: #2455ff;
  --purple: #6a43f2;
  --muted: #5f6d85;

  position: relative;
  width: 100%;
  overflow: hidden;

  padding: 72px 24px 66px;

  background:
    radial-gradient(circle at 88% 28%, rgba(87, 109, 255, .10), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 52%, #f4f7ff 100%);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.rmai-product-hero__container {
  width: min(1420px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 68px;
}

/* LEFT */

.rmai-product-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;

  color: #3159ef;
  background: #eef2ff;

  padding: 6px 10px;
  border-radius: 6px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}

.rmai-product-hero__title {
  margin: 0 0 22px;

  color: var(--navy);

  font-size: clamp(45px, 4.8vw, 74px);
  line-height: 1.03;
  letter-spacing: -2.8px;
  font-weight: 800;
}

.rmai-product-hero__text {
  max-width: 585px;

  margin: 0 0 30px;

  color: #42516c;

  font-size: 17px;
  line-height: 1.7;
}

.rmai-product-hero__actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.rmai-product-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  text-decoration: none !important;

  font-size: 14px;
  font-weight: 750;

  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.rmai-product-hero__btn--primary {
  min-height: 55px;
  padding: 0 25px;

  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #155bf4,
      #6336e7
    );

  border-radius: 8px;

  box-shadow:
    0 12px 25px rgba(48, 73, 225, .22);
}

.rmai-product-hero__btn--primary:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 32px rgba(48, 73, 225, .30);
}

.rmai-product-hero__btn-icon {
  width: 22px;
  height: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
}

.rmai-product-hero__btn--link {
  color: #1748e9 !important;
}

.rmai-product-hero__btn--link:hover {
  transform: translateX(3px);
}

/* RIGHT */

.rmai-product-hero__visual {
  position: relative;
}

.rmai-product-hero__dots {
  position: absolute;

  right: -30px;
  top: -45px;

  width: 180px;
  height: 140px;

  opacity: .25;

  background-image:
    radial-gradient(#5e84ff 1.4px, transparent 1.4px);

  background-size: 12px 12px;

  mask-image:
    linear-gradient(
      135deg,
      #000,
      transparent
    );
}

/* DASHBOARD */

.rmai-product-dashboard {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 150px 1fr;

  min-height: 470px;

  overflow: hidden;

  background: #fff;

  border: 1px solid #e7edf7;
  border-radius: 14px;

  box-shadow:
    0 30px 60px rgba(32, 67, 133, .11);
}

.rmai-product-dashboard__sidebar {
  padding: 22px 14px;

  background: #fbfcff;
  border-right: 1px solid #edf1f6;
}

.rmai-product-dashboard__brand {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 22px;

  color: #1748e9;

  font-size: 11px;
  font-weight: 800;
}

.rmai-product-dashboard__brand span:last-child {
  color: #4178ff;
}

.rmai-product-dashboard__brand-icon {
  font-size: 17px;
}

.rmai-product-dashboard__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rmai-product-dashboard__menu-item {
  padding: 10px 9px;

  color: #748096;

  font-size: 9px;

  border-radius: 6px;
}

.rmai-product-dashboard__menu-item.active {
  color: #2153ee;

  background: #eef3ff;

  font-weight: 700;
}

/* MAIN */

.rmai-product-dashboard__main {
  min-width: 0;

  padding: 20px;

  background: #fff;
}

.rmai-product-dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 16px;
}

.rmai-product-dashboard__top h3 {
  margin: 0;

  color: #18223a;
  font-size: 14px;
}

.rmai-product-dashboard__top-icons {
  display: flex;
  gap: 8px;

  color: #728098;
  font-size: 10px;
}

/* METRICS */

.rmai-product-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 10px;
}

.rmai-product-dashboard__metric {
  padding: 13px 12px;

  background: #fff;

  border: 1px solid #edf1f5;
  border-radius: 8px;

  box-shadow:
    0 5px 16px rgba(21, 48, 96, .025);
}

.rmai-product-dashboard__metric span {
  display: block;

  margin-bottom: 6px;

  color: #8b95a7;

  font-size: 7px;
}

.rmai-product-dashboard__metric strong {
  color: #101d3b;

  font-size: 17px;
}

/* LOWER */

.rmai-product-dashboard__lower {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 12px;

  margin-top: 12px;
}

.rmai-product-chart,
.rmai-product-candidates {
  padding: 14px;

  border: 1px solid #edf1f6;
  border-radius: 8px;

  background: #fff;
}

.rmai-product-chart h4,
.rmai-product-candidates h4 {
  margin: 0 0 12px;

  color: #18233f;

  font-size: 9px;
}

/* CHART */

.rmai-product-chart__area {
  height: 160px;
}

.rmai-product-chart__area svg {
  width: 100%;
  height: 100%;

  overflow: visible;
}

.rmai-product-chart__area .grid {
  stroke: #eef2f7;
  stroke-width: 1;
}

.rmai-product-chart__area .line-blue {
  fill: none;
  stroke: #1f59ff;
  stroke-width: 3;
}

.rmai-product-chart__area .line-purple {
  fill: none;
  stroke: #7338f4;
  stroke-width: 3;
}

.rmai-product-chart__months {
  display: flex;
  justify-content: space-between;

  margin-top: -3px;

  color: #8a95a7;

  font-size: 7px;
}

.rmai-product-chart__legend {
  display: flex;
  justify-content: center;
  gap: 22px;

  margin-top: 11px;

  color: #627086;
  font-size: 7px;
}

.rmai-product-chart__dot {
  display: inline-block;

  width: 8px;
  height: 4px;

  margin-right: 5px;

  border-radius: 99px;
}

.rmai-product-chart__dot.blue {
  background: #1f59ff;
}

.rmai-product-chart__dot.purple {
  background: #7338f4;
}

/* CANDIDATES */

.rmai-product-candidate {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;

  padding: 8px 0;

  border-bottom: 1px solid #f1f3f6;
}

.rmai-product-candidate__avatar {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  background: linear-gradient(135deg,#24415d,#c17b51);

  border-radius: 50%;

  font-size: 7px;
  font-weight: 700;
}

.rmai-product-candidate__avatar.avatar2 {
  background: linear-gradient(135deg,#1f3e7a,#b47b49);
}

.rmai-product-candidate__avatar.avatar3 {
  background: linear-gradient(135deg,#703c70,#d38785);
}

.rmai-product-candidate__info strong,
.rmai-product-candidate__info span {
  display: block;
}

.rmai-product-candidate__info strong {
  color: #17223b;

  font-size: 8px;
}

.rmai-product-candidate__info span {
  margin-top: 2px;

  color: #98a1b1;

  font-size: 6px;
}

.rmai-product-candidate__score {
  color: #1f4ce7;

  font-size: 8px;
  font-weight: 700;
}

.rmai-product-candidates__link {
  display: inline-block;

  margin-top: 10px;

  color: #1f4ce7 !important;

  text-decoration: none !important;

  font-size: 7px;
  font-weight: 700;
}

/* TABLET */

@media (max-width: 1024px) {

  .rmai-product-hero__container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .rmai-product-hero__content {
    text-align: center;
  }

  .rmai-product-hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .rmai-product-hero__actions {
    justify-content: center;
  }

  .rmai-product-hero__visual {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
  }
}

/* MOBILE */

@media (max-width: 700px) {

  .rmai-product-hero {
    padding: 48px 18px 52px;
  }

  .rmai-product-hero__title {
    font-size: clamp(42px, 12vw, 58px);
    letter-spacing: -2px;
  }

  .rmai-product-hero__text {
    font-size: 15px;
  }

  .rmai-product-hero__actions {
    flex-direction: column;
    gap: 18px;
  }

  .rmai-product-hero__btn--primary {
    width: 100%;
    max-width: 320px;
  }

  .rmai-product-hero__visual {
    overflow: hidden;
    min-height: 350px;
  }

  .rmai-product-dashboard {
    min-width: 760px;

    transform: scale(.62);
    transform-origin: left top;
  }

}

/* VERY SMALL MOBILE */

@media (max-width: 460px) {

  .rmai-product-dashboard {
    transform: scale(.49);
  }

  .rmai-product-hero__visual {
    min-height: 285px;
  }

}
