@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap");

:root {
  --primary: #2aabee;
  --dark: #08131a;
  --white: #edf7f8;
  --muted: #91a8af;
  --line: rgba(237, 247, 248, 0.18);
}

.how-it-works {
  position: relative;
  overflow: hidden;
  padding: 50px 0;
  background-image: url(../images/telegram.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Manrope", sans-serif;
}

.how-it-works .container {
  position: relative;
  z-index: 10;
}

.how-it-works:after {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(87deg, rgba(0, 36, 49, 0.75) 0%, rgb(0, 40, 54) 45%, rgba(0, 31, 43, 0.72) 100%);
}

/* .how-it-works .how-bg-text {
  position: absolute;
  top: 35%;
  left: -2%;
  z-index: 0;
  color: transparent;
  font-size: clamp(7rem, 20vw, 23rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(237, 247, 248, 0.045);
  user-select: none;
  pointer-events: none;
} */

.how-it-works .how-heading {
  margin-bottom: 100px;
  text-align: center;
}

.how-it-works .section-tag,
.how-it-works .step-small-title {
  color: #a17a07;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.17em;
  border: 1px solid #fff;
  display: inline;
  border-radius: 8px;
  padding: 7px 10px;
}

.how-it-works .how-heading h2 {
  margin: 17px 0 22px;
  font-size: clamp(2.8rem, 3vw, 5.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.075em;
  color: #fff;
background: #00243b;
     width: fit-content;         
    max-width: 100%;
        margin: 17px auto;
}

.how-it-works .how-heading h2 span {
  background: -webkit-linear-gradient(#eee, #987304);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
}

.how-it-works .heading-description {
  max-width: 470px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.how-it-works .process-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 65px;
}

.how-it-works .process-line {
  width: calc(100% - 7%);
  height: 3px;
  position: absolute;
  top: 38px;
  left: 7.5%;
  overflow: hidden;
  background: rgb(237 247 248 / 7%);
}

.how-it-works .line-fill {
  width: 35%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -35%;
  background: linear-gradient(90deg, transparent, #b4c8ff, transparent);
  box-shadow: 0 0 12px var(--primary);
  animation: lineMove 4s linear infinite;
}

.how-it-works .process-step {
  position: relative;
  z-index: 1;
  cursor: default;
}

.how-it-works .step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.how-it-works .step-count {
  width: 77px;
  height: 77px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(214 235 246 / 70%);
  color: #ffffff;
  background-color: #00455e;
  /* background: linear-gradient(26deg, rgb(2 59 80) 0%, rgb(95 135 150) 45%, rgb(2 59 80) 100%); */
  box-shadow: 0 0 0 9px #c8c5bd;
  font-family: "DM Mono", monospace;
  font-size: 18px;
  transition: 0.4s ease;
}

.how-it-works .step-info {
  background: #ffffff;
  box-shadow: 0 0 0 9px #c8c5bd;
  padding: 10px 14px;
  height: 232px;
}

.how-it-works .step-info h3 {
  margin: 13px 0 16px;
  font-size: clamp(1.5rem, 2.3vw, 1.8rem);
  font-weight: 600;
  color: #023a4f;
  font-weight: 600;
}

.how-it-works .step-info>p:last-child {
  color: #505456;
  font-size: 16px;
  line-height: 1.85;
}

.how-it-works .step-info strong {
  color: var(--white);
  font-weight: 600;
}

.how-it-works .process-btn {
  width: fit-content;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 95px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  transition: 0.35s ease;
}

.how-it-works .process-btn span {
  color: var(--primary);
  font-size: 1.4rem;
  transition: transform 0.35s ease;
}

.how-it-works .process-btn:hover {
  gap: 42px;
  color: var(--primary);
  border-color: var(--primary);
}

.how-it-works .process-btn:hover span {
  transform: translateX(8px);
}

@keyframes lineMove {
  0% {
    left: -35%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 850px) {
  .how-it-works {
    padding: 90px 0;
  }

  .how-it-works .how-heading {
    margin-bottom: 75px;
  }

  .how-it-works .process-area {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .how-it-works .process-line {
    width: 1px;
    height: calc(100% - 100px);
    top: 38px;
    left: 38px;
  }

  .how-it-works .line-fill {
    width: 100%;
    height: 30%;
    top: -30%;
    left: 0;
    background: linear-gradient(180deg,
        transparent,
        var(--primary),
        transparent);
    animation: verticalLineMove 3.5s linear infinite;
    transition: all;
    transform: matrix(40);
    grid-column: auto;
    flex-wrap: wrap;
  }

  .how-it-works .process-step {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 25px;
  }

  .how-it-works .step-top {
    margin: 0;
  }

  .how-it-works .step-icon {
    display: none;
  }

  .how-it-works .process-btn {
    margin-top: 75px;
  }
}

@media (max-width: 500px) {
  .how-it-works {
    padding: 75px 0;
  }

  .how-it-works .how-container {
    width: 88%;
  }



  .how-it-works .heading-description {
    font-size: 0.9rem;
  }

  .how-it-works .process-step {
    grid-template-columns: 65px 1fr;
    gap: 18px;
  }

  .how-it-works .step-count {
    width: 58px;
    height: 58px;
    font-size: 0.72rem;
  }

  .how-it-works .process-line {
    top: 30px;
    left: 29px;

  }

  .how-it-works .step-info h3 {
    font-size: 1.65rem;
  }

  .how-it-works .step-info>p:last-child {
    font-size: 0.87rem;
  }

  .how-it-works .process-btn {
    margin-top: 60px;
  }
}

@keyframes verticalLineMove {
  0% {
    top: -30%;
  }

  100% {
    top: 100%;
  }
}

.how-it-works .section-tag {
  color: #fff;
  background: #001923;
}

.how-it-works .step-info span {
  font-size: 18px;
  font-weight: 600;
  color: #816302;
  margin-top: 10px;
  position: relative;
  top: 9px;
}

.how-it-works .step-info {
  margin-top: 10px;
}

@media (min-width: 1200px) and (max-width: 1399px) {

  .how-it-works .section-tag,
  .how-it-works .step-small-title {
    font-size: 10px;
  }

  .how-it-works .how-heading h2 {
    font-size: 40px;
  }

  .how-it-works .step-count {
    width: 70px;
    height: 70px;
  }

  .how-it-works .step-info h3 {
    font-size: 20px;
  }

  .how-it-works .step-info>p:last-child {
    font-size: 14px;
    line-height: 1.5;
  }

  .how-it-works .step-info {
    height: 200px;
  }

  .how-it-works .step-info span {
    font-size: 13px;
    font-weight: 500;
  }
}

@media (min-width: 1900px) and (max-width: 3000px) {
  .how-it-works .section-tag {
    font-size: 14px;
  }

  .how-it-works .step-count {
    width: 95px;
    height: 95px;
    font-size: 25px;
  }

  .how-it-works .step-info span {
    font-size: 20px;

  }

  .how-it-works .step-info h3 {
    font-size: 32px;
  }

  .how-it-works .step-info>p:last-child {
    color: #505456;
    font-size: 22px;
    line-height: 1.8;
  }

  .how-it-works .step-info {
    height: 270px;
  }

  .how-it-works .process-line {
    width: calc(100% - 3%);
    top: 38px;
    left: 3.5%;

  }
}

@media (max-width:990px) {
  .how-it-works .how-heading h2 {
    font-size: 30px;
  }

  .how-it-works .step-info {
    height: auto;
  }

  .how-it-works .process-step {
    grid-template-columns: 85px 1fr;
    gap: 18px;
  }

  .how-it-works .step-info span {
    font-size: 15px;
  }

  .how-it-works .step-info h3 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-staircase *,
  .how-it-works * {
    transition: none !important;
    animation: none !important;
  }
}
.services-staircase .services-btn:hover,
.services-staircase .services-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(6, 45, 91, .2);
}

.services-staircase .services-btn:focus-visible {
  outline: 3px solid #f4511e;
  outline-offset: 3px;
}