/*
 * MARI homepage — icon, map and final process polish v7.
 * Loaded after polish-v6.css.
 */

/* About heading: one centered, readable profile silhouette. */

.section-icon--profile::before {
  top: 7px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 0;
  background: #fff;
  transform: translateX(-50%);
}

.section-icon--profile::after {
  top: 17px;
  bottom: auto;
  left: 50%;
  width: 21px;
  height: 15px;
  border: 0;
  border-radius: 12px 12px 6px 6px;
  background: #fff;
  transform: translateX(-50%);
}

/* Real macOS application icons plus a distinct generic neural-tools tile. */

.about-tools ul {
  gap: 8px;
}

.about-tools li,
.about-tools li:last-child {
  width: 51px;
  height: 51px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.about-tools .tool-app img,
.neural-app-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.neural-app-icon {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 227, 255, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 126, 151, 0.92), transparent 31%),
    linear-gradient(145deg, #6c5cff 0%, #234fd0 58%, #073694 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -10px 18px rgba(1, 16, 72, 0.26);
}

.neural-app-icon::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 10px;
  width: 29px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 8px;
  background:
    radial-gradient(circle at 9px 8px, #fff 0 2px, transparent 2.3px),
    radial-gradient(circle at 20px 8px, #fff 0 2px, transparent 2.3px);
}

.neural-app-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 24px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 -1px 0 2px #fff;
}

.neural-app-icon i {
  position: absolute;
  left: 50%;
  bottom: 17px;
  z-index: 1;
  width: 10px;
  height: 2px;
  border-radius: 3px;
  background: #fff;
  transform: translateX(-50%);
}

/* The experience card carries the blue accent across the full surface. */

.about-stats .stat-card:first-child {
  border-color: rgba(80, 164, 255, 0.52);
  background:
    radial-gradient(circle at 92% 2%, rgba(83, 196, 255, 0.28), transparent 48%),
    linear-gradient(145deg, rgba(13, 113, 238, 0.4), rgba(10, 48, 113, 0.52)),
    rgba(25, 39, 65, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -24px 42px rgba(4, 28, 83, 0.17);
}

.about-stats .stat-card:first-child .stat-icon {
  color: #91d1ff;
}

.about-stats .stat-card:first-child small {
  color: #bed8f7;
}

/* Prebuilt dots keep every geographical edge dot intact. */

.russia-map::before {
  background: url("assets/russia-map-dots-wide.png") center / 100% 100% no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 0 12px rgba(71, 144, 255, 0.15));
}

/* Optical centering for the five direction-card arrows. */

.round-arrow {
  padding: 0 0 2px 1px;
  display: grid;
  place-items: center;
  color: #0d316c;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.round-arrow::before,
.round-arrow::after {
  content: none;
  display: none;
}

/* A quiet grid runs through the blue process field. */

.process-section {
  background:
    linear-gradient(rgba(154, 203, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 203, 255, 0.052) 1px, transparent 1px),
    linear-gradient(158deg, transparent 0 55%, rgba(255, 255, 255, 0.035) 55.1% 65%, transparent 65.1%),
    linear-gradient(180deg, #07101f 0%, #06389f 18%, #075df1 47%, #0745c4 77%, #070f1e 100%);
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.process-flow::before {
  content: none;
  display: none;
}

.process-flow .process-list li:nth-child(4) {
  background:
    radial-gradient(circle at 90% 10%, rgba(95, 211, 255, 0.2), transparent 48%),
    linear-gradient(145deg, rgba(14, 116, 242, 0.28), rgba(6, 52, 139, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.process-flow .process-list li:nth-child(4)::after {
  width: 56px;
  background: #81d3ff;
}

.process-flow .process-list li:nth-child(4) > span {
  color: rgba(147, 218, 255, 0.62);
}

.process-flow-rail i:last-child {
  border-color: #b9e7ff;
  background: #75ccff;
  box-shadow: 0 0 0 4px rgba(117, 204, 255, 0.13);
}

@media (max-width: 700px) {
  .section-icon--profile::before {
    top: 6px;
    width: 9px;
    height: 9px;
  }

  .section-icon--profile::after {
    top: 15px;
    width: 19px;
    height: 13px;
  }

  .about-tools li,
  .about-tools li:last-child {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .neural-app-icon {
    border-radius: 13px;
  }

  .neural-app-icon::before {
    top: 15px;
    left: 9px;
    width: 28px;
    height: 21px;
  }

  .neural-app-icon::after {
    top: 7px;
    left: 22px;
  }

  .neural-app-icon i {
    bottom: 16px;
  }

  .russia-map::before {
    background-image: url("assets/russia-map-dots-mobile.png");
  }

  .process-flow .process-list li:nth-child(4)::after {
    width: 46px;
  }
}
