:root {
  --primary-color: #5B57E7;
  --secondary-color: #000;
  --helper-color: #fff;
  --max-width: 1440px;
}

/* footer */
.abcftrefg {
  position: relative;
  width: 100%;
  margin-top: 5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-color);
  border-top: 1px solid color-mix(in srgb, var(--helper-color) 10%, transparent);
  overflow: clip;
}

@media (min-width: 768px) {
  .abcftrefg {
    margin-top: 6em;
  }
}

.abcftrefgglow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, color-mix(in srgb, var(--primary-color) 55%, transparent), transparent 70%);
  opacity: 0.4;
}

.abcftrefginner {
  position: relative;
  width: calc(100% - 2em);
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2.2em;
  padding-block: 3.5em 1.5em;
}

.abcftrefgtop {
  display: flex;
  flex-direction: column;
  gap: 2.2em;
}

.abcftrefgcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
  text-align: start;
}

.abcftrefglogo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--helper-color);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  font-weight: 700;
}

.abcftrefglogoicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.55em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 45%, var(--helper-color)), var(--primary-color));
  color: var(--helper-color);
  font-size: clamp(0.765rem, 0.722rem + 0.2vw, 0.918rem);
}

.abcftrefgtext {
  max-width: 24rem;
  color: color-mix(in srgb, var(--helper-color) 77%, var(--secondary-color));
}

.abcftrefgheading {
  color: var(--helper-color);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
}

.abcftrefglinks {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.abcftrefglink {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: color-mix(in srgb, var(--helper-color) 77%, var(--secondary-color));
  transition: color 0.25s ease, transform 0.25s ease;
}

.abcftrefglink i {
  color: color-mix(in srgb, var(--primary-color) 75%, var(--helper-color));
  font-size: clamp(0.765rem, 0.722rem + 0.2vw, 0.918rem);
}

.abcftrefglink:hover {
  color: color-mix(in srgb, var(--primary-color) 45%, var(--helper-color));
  transform: translateX(-4px);
}

.abcftrefgsocials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.abcftrefgsocial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8em;
  height: 2.8em;
  border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--helper-color) 50%, var(--secondary-color)) 50%, transparent);
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--helper-color) 8%, transparent);
  color: var(--helper-color);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.abcftrefgsocial:hover {
  background-color: var(--primary-color);
  transform: translateY(-4px);
}

.abcftrefgbottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.4em;
  padding-top: 1.5em;
  border-top: 1px solid color-mix(in srgb, var(--helper-color) 10%, transparent);
}

.abcftrefgcopy {
  color: color-mix(in srgb, var(--helper-color) 40%, var(--secondary-color));
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem);
  text-align: center;
}

.abcftrefgsignature {
  perspective: 700px;
}

.abcftrefgsignaturecard {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.8em 1.4em;
  border: 1px solid color-mix(in srgb, color-mix(in srgb, var(--helper-color) 34%, var(--secondary-color)) 50%, transparent);
  border-radius: 1.2em;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary-color) 22%, transparent), color-mix(in srgb, var(--helper-color) 3%, transparent));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  box-shadow: 0 14px 34px -18px rgba(91, 87, 231, 0.55);
}

.abcftrefgsignaturecard:hover {
  box-shadow: 0 24px 50px -16px rgba(91, 87, 231, 0.55);
}

.abcftrefgsignaturepen {
  color: color-mix(in srgb, var(--primary-color) 45%, var(--helper-color));
  font-size: clamp(1.26rem, 1.19rem + 0.2vw, 1.512rem);
  transform: translateZ(30px);
  animation: abcftrefgsignaturepen 3s ease-in-out infinite;
}

.abcftrefgsignaturetexts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  transform: translateZ(40px);
}

.abcftrefgsignaturelabel {
  color: color-mix(in srgb, var(--helper-color) 77%, var(--secondary-color));
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.864rem);
  letter-spacing: 0.08em;
}

.abcftrefgsignaturename {
  position: relative;
  color: var(--helper-color);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  font-weight: 700;
  font-style: italic;
  text-shadow: 1px 1px 0 #8160C7,
    2px 2px 0 #62489A,
    3px 3px 0 #62489A,
    4px 4px 0 #503687,
    6px 8px 14px rgba(91, 87, 231, 0.55);
}

.abcftrefgsignaturename::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.25em;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 45%, var(--helper-color)), color-mix(in srgb, var(--primary-color) 75%, var(--helper-color)));
  transform-origin: right;
  transform: scaleX(0.35);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.abcftrefgsignaturecard:hover .abcftrefgsignaturename::after {
  transform: scaleX(1);
}

@keyframes abcftrefgsignaturepen { 0%, 100% { rotate: 0deg; } 50% { rotate: -14deg; }  }

@media (min-width: 768px) {
  .abcftrefgtop {
    flex-direction: row;
    justify-content: space-between;
  }

  .abcftrefgcolbrand {
    flex: 1.4;
  }

  .abcftrefgcol {
    flex: 1;
  }

  .abcftrefgbottom {
    flex-direction: row;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abcftrefgsignaturepen {
    animation: none;
  }
}

[dir="ltr"] .abcftrefglink:hover {
  transform: translateX(4px);
}

[dir="ltr"] .abcftrefgsignaturename::after {
  transform-origin: left;
}
