/* =========================================================
   MERSAD SERVICES SECTION
   ========================================================= */

.mersad-services {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: 132px 0;
  background:
    linear-gradient(
      180deg,
      #050505 0%,
      #080808 48%,
      #050505 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mersad-services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
}

.mersad-services::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -2;
  width: 1px;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(255, 255, 255, 0.08) 20%,
      rgba(255, 255, 255, 0.08) 80%,
      transparent
    );
}

/* =========================================================
   BACKGROUND GLOWS
   ========================================================= */

.mersad-services__glow {
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(6px);
}

.mersad-services__glow--one {
  top: 4%;
  left: -180px;
  width: 470px;
  height: 470px;
  background:
    radial-gradient(
      circle,
      rgba(211, 242, 0, 0.075),
      transparent 70%
    );
}

.mersad-services__glow--two {
  right: -260px;
  bottom: -160px;
  width: 600px;
  height: 600px;
  background:
    radial-gradient(
      circle,
      rgba(211, 242, 0, 0.05),
      transparent 72%
    );
}

/* =========================================================
   CONTAINER
   ========================================================= */

.mersad-services__container {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin-inline: auto;

  display: grid;
  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(520px, 1.18fr);
  gap: clamp(70px, 8vw, 130px);
  align-items: start;
}

/* =========================================================
   INTRO COLUMN
   ========================================================= */

.mersad-services__intro {
  position: sticky;
  top: 120px;
}

.mersad-services__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;

  color: #d3f200;

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mersad-services__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d3f200;
  box-shadow:
    0 0 18px rgba(211, 242, 0, 0.45);
}

.mersad-services__title {
  max-width: 570px;
  margin: 0;

  color: #f7f7f5;

  font-family: "Inter", sans-serif;
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.mersad-services__title span {
  display: block;
  color: #d3f200;
}

.mersad-services__description {
  max-width: 540px;
  margin: 30px 0 0;

  color: #a8a8a8;

  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
}

.mersad-services__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 52px;
  margin-top: 38px;
  padding: 0 24px;

  color: #050505;
  background: #d3f200;

  border: 1px solid #d3f200;
  border-radius: 10px;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  box-shadow:
    0 0 0 rgba(211, 242, 0, 0);

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.mersad-services__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 180ms ease;
}

.mersad-services__cta:hover {
  transform: translateY(-2px);
  background: #e0ff00;
  border-color: #e0ff00;
  box-shadow:
    0 14px 32px rgba(211, 242, 0, 0.12);
}

.mersad-services__cta:hover svg {
  transform: translateX(4px);
}

/* =========================================================
   SIGNAL LINE
   ========================================================= */

.mersad-services__signal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 54px;

  color: #6d6d6d;

  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mersad-services__signal i {
  width: 18px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(211, 242, 0, 0.2),
      rgba(211, 242, 0, 0.8)
    );
}

/* =========================================================
   SERVICES LIST
   ========================================================= */

.mersad-services__list {
  position: relative;

  border-top: 1px solid #292929;
}

.mersad-service {
  position: relative;

  border-bottom: 1px solid #292929;

  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.mersad-service::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;

  width: 2px;

  background: #d3f200;

  transform: scaleY(0);
  transform-origin: top;

  transition:
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mersad-service.is-active {
  background:
    linear-gradient(
      90deg,
      rgba(211, 242, 0, 0.055),
      rgba(211, 242, 0, 0.01) 55%,
      transparent 100%
    );
  border-color: rgba(211, 242, 0, 0.2);
}

.mersad-service.is-active::before {
  transform: scaleY(1);
}

/* =========================================================
   SERVICE TRIGGER
   ========================================================= */

.mersad-service__trigger {
  position: relative;

  width: 100%;
  min-height: 112px;
  padding: 26px 18px 26px 26px;

  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  gap: 20px;
  align-items: center;

  color: inherit;
  background: transparent;

  border: 0;

  font: inherit;
  text-align: left;

  cursor: pointer;
}

.mersad-service__trigger:focus-visible {
  outline: 2px solid #d3f200;
  outline-offset: -2px;
}

.mersad-service__number {
  align-self: start;
  padding-top: 5px;

  color: #696969;

  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;

  transition:
    color 220ms ease;
}

.mersad-service.is-active .mersad-service__number,
.mersad-service:hover .mersad-service__number {
  color: #d3f200;
}

.mersad-service__trigger-content {
  min-width: 0;
}

.mersad-service__short-title {
  display: block;
  margin-bottom: 9px;

  color: #686868;

  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    color 220ms ease;
}

.mersad-service.is-active .mersad-service__short-title {
  color: #9b9b9b;
}

.mersad-service__name {
  display: block;

  color: #d4d4d4;

  font-family: "Inter", sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.035em;

  transition:
    color 220ms ease,
    transform 220ms ease;
}

.mersad-service:hover .mersad-service__name,
.mersad-service.is-active .mersad-service__name {
  color: #f7f7f5;
}

.mersad-service.is-active .mersad-service__name {
  transform: translateX(4px);
}

/* =========================================================
   PLUS / MINUS
   ========================================================= */

.mersad-service__toggle {
  position: relative;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #303030;
  border-radius: 50%;

  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.mersad-service__toggle span {
  position: absolute;

  width: 14px;
  height: 1px;

  background: #a2a2a2;

  transition:
    background-color 220ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.mersad-service__toggle span:last-child {
  transform: rotate(90deg);
}

.mersad-service.is-active .mersad-service__toggle {
  border-color: rgba(211, 242, 0, 0.45);
  background: rgba(211, 242, 0, 0.06);
  transform: rotate(180deg);
}

.mersad-service.is-active .mersad-service__toggle span {
  background: #d3f200;
}

.mersad-service.is-active .mersad-service__toggle span:last-child {
  opacity: 0;
  transform: rotate(0deg);
}

/* =========================================================
   SERVICE PANEL
   ========================================================= */

.mersad-service__panel {
  display: grid;
  grid-template-rows: 0fr;

  visibility: hidden;
  opacity: 0;

  transition:
    grid-template-rows 360ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 240ms ease,
    visibility 0s linear 360ms;
}

.mersad-service.is-active .mersad-service__panel {
  grid-template-rows: 1fr;

  visibility: visible;
  opacity: 1;

  transition:
    grid-template-rows 360ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms ease 80ms,
    visibility 0s linear;
}

.mersad-service__panel-inner {
  min-height: 0;
  overflow: hidden;

  padding:
    0 70px 0 98px;
}

.mersad-service.is-active .mersad-service__panel-inner {
  padding-bottom: 34px;
}

.mersad-service__copy {
  max-width: 650px;
  margin: 0;

  color: #a7a7a7;

  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
}

.mersad-service__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;

  margin: 22px 0 0;
  padding: 0;

  list-style: none;
}

.mersad-service__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: #d0d0d0;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.mersad-service__features li > span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;

  margin-top: 7px;

  border-radius: 50%;

  background: #d3f200;

  box-shadow:
    0 0 10px rgba(211, 242, 0, 0.3);
}

.mersad-service__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 26px;

  color: #d3f200;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.mersad-service__link svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 180ms ease;
}

.mersad-service__link:hover svg {
  transform: translateX(4px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .mersad-services {
    padding: 110px 0;
  }

  .mersad-services::after {
    display: none;
  }

  .mersad-services__container {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .mersad-services__intro {
    position: relative;
    top: auto;
  }

  .mersad-services__title {
    max-width: 780px;
  }

  .mersad-services__description {
    max-width: 680px;
  }

  .mersad-services__signal {
    margin-top: 38px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .mersad-services {
    padding: 84px 0 78px;
  }

  .mersad-services__container {
    width: min(100% - 24px, 560px);
    gap: 52px;
  }

  .mersad-services__eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .mersad-services__title {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .mersad-services__description {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.7;
  }

  .mersad-services__cta {
    width: 100%;
    margin-top: 30px;
  }

  .mersad-services__signal {
    display: none;
  }

  .mersad-service__trigger {
    min-height: 92px;
    padding: 22px 4px 22px 14px;

    grid-template-columns: 34px minmax(0, 1fr) 38px;
    gap: 12px;
  }

  .mersad-service__number {
    font-size: 10px;
  }

  .mersad-service__short-title {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .mersad-service__name {
    font-size: clamp(20px, 6vw, 26px);
  }

  .mersad-service.is-active .mersad-service__name {
    transform: none;
  }

  .mersad-service__toggle {
    width: 36px;
    height: 36px;
  }

  .mersad-service__panel-inner {
    padding:
      0 10px 0 48px;
  }

  .mersad-service.is-active .mersad-service__panel-inner {
    padding-bottom: 28px;
  }

  .mersad-service__copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .mersad-service__features {
    grid-template-columns: 1fr;
    gap: 9px;

    margin-top: 18px;
  }

  .mersad-service__features li {
    font-size: 12px;
  }

  .mersad-service__link {
    margin-top: 22px;
    font-size: 12px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .mersad-service,
  .mersad-service::before,
  .mersad-service__panel,
  .mersad-service__name,
  .mersad-service__toggle,
  .mersad-service__toggle span,
  .mersad-services__cta,
  .mersad-services__cta svg,
  .mersad-service__link svg {
    transition-duration: 0.01ms !important;
  }
}