/* Homepage adaptation of the existing AtomERP platform map. */
.home-platform {
  border-bottom: 1px solid #dce2f1;
  background: #f8faff;
}

.home-platform__intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.home-platform .home-platform__heading {
  margin: 14px 0 18px;
  color: #17284a;
  font-size: clamp(29px, 3.4vw, 43px);
  line-height: 1.2;
  text-wrap: balance;
}

.home-platform__intro p {
  max-width: 720px;
  margin: 0 auto;
  color: #53617b;
  font-size: 16px;
  line-height: 1.75;
}

.home-platform__figure {
  margin: 36px 0 0;
}

.home-platform .home-platform__map {
  position: relative;
  display: block;
  max-width: none;
  margin: 0;
  padding: 32px 20px 24px;
  border: 1px solid #dce2f1;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 15%, #e0e7ff, transparent 65%), #f0f4ff;
}

.home-platform .home-platform__center {
  grid-column: auto;
  grid-row: auto;
  width: 176px;
  max-width: 176px;
  margin: 0 auto 44px;
  padding: 20px;
  z-index: 2;
  background: linear-gradient(135deg, #2845a0, #5368c8 55%, #765eb6);
  box-shadow: 0 0 0 10px #ffffffa6, 0 0 0 23px #b0c3f03b, 0 20px 45px #2a41952e;
}

.home-platform__center > img {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

.home-platform__center > strong {
  color: #fff;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.15;
}

.home-platform .home-platform__center > span {
  margin-top: 9px;
  color: #e8edff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.home-platform__areas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-platform__areas > li {
  min-width: 0;
}

.home-platform .home-platform__area {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 104px;
  padding: 16px 14px;
  border-color: #d5e0f5;
  border-radius: 14px;
  background: #ffffffed;
  color: #172750;
  text-decoration: none;
}

.home-platform__area .feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.home-platform__area .feature-icon img {
  width: 24px;
  height: 24px;
}

.home-platform__copy strong {
  display: block;
  color: #172750;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-platform__copy small {
  display: block;
  margin-top: 5px;
  color: #53617b;
  font-size: 12px;
  line-height: 1.5;
}

.home-platform__arrow {
  color: #3155ce;
  font-size: 17px;
}

.home-platform .home-platform__area:focus-visible {
  outline: 3px solid #3155ce;
  outline-offset: 4px;
}

.home-platform__figure figcaption {
  margin-top: 18px;
  color: #53617b;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 700px) {
  .home-platform .home-platform__map {
    padding: 38px 28px 28px;
  }

  .home-platform__areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .home-platform .home-platform__map {
    padding: 36px;
    background: radial-gradient(ellipse at center, #dfe6ff, transparent 65%), #f0f4ff;
  }

  .home-platform__map::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9eb3e8 20%, #9eb3e8 80%, transparent);
  }

  .home-platform .home-platform__center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    max-width: 220px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .home-platform__center > strong {
    font-size: 36px;
  }

  .home-platform__areas {
    column-gap: clamp(270px, 25vw, 330px);
  }

  .home-platform__areas > li:nth-child(-n + 3) {
    grid-column: 1;
  }

  .home-platform__areas > li:nth-child(n + 4) {
    grid-column: 2;
  }

  .home-platform__areas > li:nth-child(1),
  .home-platform__areas > li:nth-child(4) {
    grid-row: 1;
  }

  .home-platform__areas > li:nth-child(2),
  .home-platform__areas > li:nth-child(5) {
    grid-row: 2;
  }

  .home-platform__areas > li:nth-child(3),
  .home-platform__areas > li:nth-child(6) {
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-platform .home-platform__area {
    transition: none;
  }

  .home-platform .home-platform__area:hover {
    transform: none;
  }
}
