/* CRM/ERP service page */

.solution-page main {
  overflow: clip;
}

.solution-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 92px 0 82px;
}

.solution-hero__grid,
.solution-cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(148 170 255 / 4.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 170 255 / 4.5%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}

.solution-hero__glow {
  position: absolute;
  top: 20px;
  right: 2%;
  width: 620px;
  height: 560px;
  background: radial-gradient(closest-side, rgb(77 127 255 / 18%), transparent);
  filter: blur(52px);
  pointer-events: none;
}

.solution-hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
  align-items: center;
  gap: 54px;
}

.solution-hero__content {
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-accent-light);
}

.solution-hero h1 {
  max-width: 720px;
  margin: 22px 0 24px;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -2.6px;
}

.solution-hero__lead {
  max-width: 650px;
  margin-bottom: 31px;
  color: var(--color-text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.solution-hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .7px;
  list-style: none;
}

.solution-hero__benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.solution-hero__benefits li > span,
.security-panel__list li > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  transform: rotate(45deg);
}

/* System map */

.system-map {
  position: relative;
  height: 510px;
  isolation: isolate;
}

.system-map::before {
  position: absolute;
  inset: 38px 18px;
  border: 1px solid rgb(140 170 255 / 12%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgb(77 127 255 / 12%), transparent 61%);
  content: "";
}

.system-map__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgb(140 170 255 / 20%);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.system-map__orbit--one {
  width: 390px;
  height: 280px;
}

.system-map__orbit--two {
  width: 285px;
  height: 390px;
  transform: translate(-50%, -50%) rotate(24deg);
}

.system-map__core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: flex;
  width: 170px;
  height: 170px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgb(103 224 255 / 42%);
  border-radius: 34px;
  background: linear-gradient(145deg, rgb(77 127 255 / 26%), rgb(10 17 32 / 96%));
  box-shadow: 0 0 70px rgb(77 127 255 / 20%), 0 30px 70px rgb(0 0 0 / 38%);
  transform: translate(-50%, -50%) rotate(45deg);
}

.system-map__core > * {
  transform: rotate(-45deg);
}

.system-map__core-mark {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  box-shadow: 0 0 22px rgb(77 127 255 / 65%);
}

.system-map__core strong,
.system-map__node span {
  font-family: var(--font-display);
  font-weight: 600;
}

.system-map__core strong {
  font-size: 18px;
}

.system-map__core small,
.system-map__node small {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .4px;
}

.system-map__core small {
  margin-top: 5px;
}

.system-map__node {
  position: absolute;
  z-index: 4;
  display: flex;
  min-width: 145px;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgb(13 20 36 / 94%);
  box-shadow: 0 16px 36px rgb(0 0 0 / 30%);
}

.system-map__node span {
  font-size: 14px;
}

.system-map__node--crm {
  top: 54px;
  left: 34px;
}

.system-map__node--projects {
  top: 102px;
  right: 0;
}

.system-map__node--data {
  right: 36px;
  bottom: 62px;
}

.system-map__node--automation {
  bottom: 92px;
  left: 0;
}

/* Problems */

.solution-heading h2 {
  max-width: 690px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.problem-card {
  display: flex;
  min-height: 315px;
  padding: 30px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgb(77 127 255 / 8%), var(--color-surface) 48%);
}

.problem-card__number {
  margin-bottom: 42px;
  color: var(--color-accent-light);
  font-family: var(--font-mono);
  font-size: 12px;
}

.problem-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.problem-card > p {
  margin-bottom: 24px;
  color: var(--color-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.problem-card__result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #bbd0ff;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.problem-card__result span {
  color: var(--color-accent-light);
  font-size: 17px;
}

/* Modules */

.module-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  grid-column: span 4;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.module-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.module-card--wide {
  grid-column: span 8;
  background: linear-gradient(135deg, rgb(77 127 255 / 15%), rgb(13 20 36 / 80%) 62%);
  border-color: var(--border-strong);
}

.module-card--accent {
  grid-column: span 8;
  background: linear-gradient(135deg, rgb(103 224 255 / 11%), rgb(13 20 36 / 80%) 62%);
  border-color: var(--border-strong);
}

.module-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  place-items: center;
  border: 1px solid rgb(140 170 255 / 28%);
  border-radius: 14px;
  background: rgb(77 127 255 / 10%);
  color: var(--color-accent-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .8px;
}

.module-card h3 {
  margin-bottom: 11px;
  font-size: 21px;
}

.module-card p {
  margin-bottom: 20px;
  color: var(--color-text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.module-card:not(.module-card--wide, .module-card--accent) p {
  margin-bottom: 0;
}

/* Implementation */

.implementation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.implementation-steps > li {
  position: relative;
  padding: 0 28px 0 0;
}

.implementation-steps > li:not(:last-child)::after {
  position: absolute;
  top: 25px;
  right: 0;
  left: 64px;
  height: 1px;
  background: linear-gradient(90deg, rgb(77 127 255 / 55%), rgb(140 170 255 / 10%));
  content: "";
}

.implementation-steps__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgb(140 170 255 / 32%);
  border-radius: 15px;
  background: var(--color-surface);
  box-shadow: 0 8px 25px rgb(0 0 0 / 26%);
  color: var(--color-accent-light);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.implementation-steps__label {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.implementation-steps h3 {
  margin-bottom: 11px;
  font-size: 20px;
}

.implementation-steps li > div > p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Security */

.security-section {
  position: relative;
  padding-top: 24px;
}

.security-section__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 760px;
  height: 360px;
  background: radial-gradient(closest-side, rgb(77 127 255 / 14%), transparent);
  filter: blur(54px);
  transform: translateX(-50%);
  pointer-events: none;
}

.security-panel {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: center;
  gap: 38px;
  padding: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: linear-gradient(135deg, rgb(77 127 255 / 13%), rgb(10 17 32 / 96%) 48%, rgb(103 224 255 / 7%));
  box-shadow: var(--shadow-card);
}

.security-panel__mark {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgb(103 224 255 / 34%);
  border-radius: 28px;
  background: rgb(77 127 255 / 12%);
  transform: rotate(45deg);
}

.security-panel__mark span {
  width: 35px;
  height: 43px;
  border: 3px solid var(--color-accent-light);
  border-radius: 19px 19px 13px 13px;
  clip-path: polygon(50% 0, 100% 18%, 92% 77%, 50% 100%, 8% 77%, 0 18%);
  transform: rotate(-45deg);
}

.security-panel__content h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.2vw, 43px);
  letter-spacing: -1px;
}

.security-panel__content > p:last-child {
  margin-bottom: 0;
  color: var(--color-text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.security-panel__list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-panel__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.security-panel__list li > span {
  margin-top: 5px;
}

/* CTA */

.solution-cta {
  position: relative;
  padding-block: 110px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  text-align: center;
}

.solution-cta::before {
  position: absolute;
  top: -170px;
  left: 50%;
  width: 820px;
  height: 520px;
  background: radial-gradient(closest-side, rgb(77 127 255 / 22%), transparent);
  filter: blur(58px);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}

.solution-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.solution-cta h2 {
  max-width: 820px;
  margin: 24px auto 18px;
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.08;
  letter-spacing: -1.8px;
}

.solution-cta__content > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 31px;
  color: var(--color-text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.solution-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.solution-cta__email {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 1050px) {
  .solution-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .solution-hero__content {
    max-width: 780px;
  }

  .system-map {
    width: min(100%, 580px);
    margin: -10px auto 0;
  }

  .implementation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .implementation-steps > li:nth-child(2)::after {
    display: none;
  }

  .security-panel {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .security-panel__list {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .problem-card {
    min-height: auto;
  }

  .problem-card__number {
    margin-bottom: 28px;
  }

  .module-card,
  .module-card--wide,
  .module-card--accent {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .solution-hero {
    min-height: 0;
    padding: 68px 0 42px;
  }

  .solution-hero__layout {
    gap: 24px;
  }

  .solution-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
    letter-spacing: -1.7px;
  }

  .solution-hero__lead {
    font-size: 16.5px;
  }

  .solution-hero__benefits {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-map {
    height: 390px;
    margin-top: 10px;
    transform: scale(.84);
    transform-origin: top center;
  }

  .system-map::before {
    inset: 30px -20px;
  }

  .system-map__node {
    min-width: 128px;
    padding: 13px 14px;
  }

  .system-map__node--crm {
    top: 16px;
    left: -24px;
  }

  .system-map__node--projects {
    top: 64px;
    right: -24px;
  }

  .system-map__node--data {
    right: -15px;
    bottom: 25px;
  }

  .system-map__node--automation {
    bottom: 48px;
    left: -28px;
  }

  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .module-card,
  .module-card--wide,
  .module-card--accent {
    grid-column: 1;
    min-height: 0;
  }

  .implementation-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .implementation-steps > li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 0 0 38px;
  }

  .implementation-steps > li::after,
  .implementation-steps > li:nth-child(2)::after {
    top: 52px;
    bottom: 0;
    left: 25px;
    display: block;
    width: 1px;
    height: auto;
    background: linear-gradient(rgb(77 127 255 / 55%), rgb(140 170 255 / 10%));
  }

  .implementation-steps > li:last-child::after {
    display: none;
  }

  .implementation-steps__number {
    margin-bottom: 0;
  }

  .security-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 24px;
  }

  .security-panel__mark {
    width: 72px;
    height: 72px;
    margin: 0 0 8px 10px;
    border-radius: 21px;
  }

  .security-panel__mark span {
    width: 28px;
    height: 35px;
  }

  .security-panel__list {
    grid-column: 1;
  }

  .solution-cta {
    padding-block: 84px;
  }

  .solution-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .solution-cta__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-card {
    transition: none;
  }
}
