/* Numbered feature cards adapted from Landor index-7 for the Falcon homepage. */
.falcon-defines {
  position: relative;
  padding: 76px 0 92px;
  background-color: #f3f7fb;
  background-image:
    linear-gradient(rgba(var(--falcon-primary-rgb), 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--falcon-primary-rgb), 0.026) 1px, transparent 1px),
    radial-gradient(circle at 84% 22%, rgba(95, 207, 242, 0.13), transparent 26%);
  background-size: 38px 38px, 38px 38px, auto;
  border-radius: 20px;
  scroll-margin-top: 130px;
  overflow: hidden;
}

.falcon-defines__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  align-items: end;
  gap: 36px;
  margin-bottom: 46px;
}

.falcon-defines__heading .tp-section-title {
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.falcon-defines__heading > p {
  max-width: 410px;
  margin: 0 0 4px;
  color: #4c5678;
  font-size: 16px;
  line-height: 1.65;
}

.falcon-defines__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0 42px;
}

.falcon-defines .falcon-defines__card {
  --card-lift: 0px;
  position: relative;
  min-height: 342px;
  margin: 0;
  padding: 28px 30px 32px;
  background: linear-gradient(145deg, #fff 0%, #fff 68%, #edf8fc 100%);
  border: 1px solid rgba(var(--falcon-primary-rgb), 0.11);
  box-shadow: 0 18px 45px rgba(var(--falcon-primary-rgb), 0.07);
  transform: translateY(var(--card-lift));
  isolation: isolate;
  overflow: hidden;
}

.falcon-defines .falcon-defines__card:nth-of-type(1) {
  --card-lift: 22px;
  border-radius: 72px 24px 24px;
}

.falcon-defines .falcon-defines__card:nth-of-type(2) {
  --card-lift: 0px;
  background: linear-gradient(150deg, #e9f8fd 0%, #fff 64%);
  border-radius: 24px 72px 24px 24px;
}

.falcon-defines .falcon-defines__card:nth-of-type(3) {
  --card-lift: -22px;
  border-radius: 24px 24px 72px 24px;
}

.falcon-defines .falcon-defines__card::before {
  position: absolute;
  right: 15px;
  bottom: -34px;
  color: rgba(var(--falcon-primary-rgb), 0.035);
  font-size: 138px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  content: attr(data-step);
  pointer-events: none;
  z-index: -1;
}

.falcon-defines .falcon-defines__card::after {
  position: absolute;
  right: -42px;
  bottom: -72px;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(var(--falcon-primary-rgb), 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  z-index: 0;
}

.falcon-defines__card-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 64px;
  z-index: 3;
}

.falcon-defines__icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: var(--tp-theme-color);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(var(--falcon-primary-rgb), 0.16);
  color: #8ce3fb;
}

.falcon-defines__icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.falcon-defines .tpfeature__wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
  z-index: 3;
}

.falcon-defines .tpfeature__num-2 {
  display: inline-grid;
  place-items: center;
  align-self: flex-start;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #dff4fb;
  border: 1px solid rgba(95, 207, 242, 0.42);
  color: var(--tp-theme-color);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 9px 20px rgba(var(--falcon-primary-rgb), 0.07);
}

.falcon-defines .tpfeature__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  transform: none;
}

.falcon-defines__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #50708c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.falcon-defines .tpfeature__title {
  margin: 0 0 16px;
  color: var(--tp-theme-color);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.falcon-defines .tpfeature__deg {
  max-width: 335px;
  margin: 0;
  color: #4c5678;
  font-size: 15px;
  line-height: 1.65;
  opacity: 1;
}

.falcon-defines .falcon-defines__card--accent {
  background:
    radial-gradient(circle at 83% 12%, rgba(95, 207, 242, 0.24), transparent 28%),
    var(--tp-theme-color);
  border-color: var(--tp-theme-color);
  box-shadow: 0 20px 50px rgba(var(--falcon-primary-rgb), 0.2);
}

.falcon-defines .falcon-defines__card--accent::after {
  border-color: rgba(255, 255, 255, 0.13);
}

.falcon-defines .falcon-defines__card--accent::before {
  color: rgba(255, 255, 255, 0.055);
}

.falcon-defines .falcon-defines__card--accent .falcon-defines__icon {
  background: var(--tp-secoundery-color);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--tp-theme-color);
}

.falcon-defines .falcon-defines__card--accent .tpfeature__num-2 {
  background: var(--tp-secoundery-color);
  border-color: var(--tp-secoundery-color);
  color: var(--tp-theme-color);
}

.falcon-defines .falcon-defines__card--accent .falcon-defines__eyebrow,
.falcon-defines .falcon-defines__card--accent .tpfeature__title,
.falcon-defines .falcon-defines__card--accent .tpfeature__deg {
  color: #fff;
}

.falcon-defines .falcon-defines__card--accent .falcon-defines__eyebrow {
  color: #bcecfb;
}

@media (hover: hover) and (pointer: fine) {
  .falcon-defines .falcon-defines__card:hover {
    background: #fff;
    transform: translateY(calc(var(--card-lift) - 7px));
    box-shadow: 0 24px 55px rgba(var(--falcon-primary-rgb), 0.13);
  }

  .falcon-defines .falcon-defines__card:nth-of-type(2):hover {
    background: linear-gradient(150deg, #e9f8fd 0%, #fff 64%);
  }

  .falcon-defines .falcon-defines__card--accent:hover {
    background: var(--tp-theme-color);
    box-shadow: 0 26px 60px rgba(var(--falcon-primary-rgb), 0.25);
  }

  .falcon-defines .falcon-defines__card:hover .tpfeature__num-2 {
    background: #dff4fb;
    color: var(--tp-theme-color);
  }

  .falcon-defines .falcon-defines__card--accent:hover .tpfeature__num-2 {
    background: var(--tp-secoundery-color);
  }

  .falcon-defines .falcon-defines__card:hover .tpfeature__title {
    color: var(--tp-theme-color);
  }

  .falcon-defines .falcon-defines__card--accent:hover .tpfeature__title {
    color: #fff;
  }
}

@media (max-width: 991.98px) {
  .falcon-defines {
    padding: 58px 0 64px;
  }

  .falcon-defines__heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .falcon-defines__heading > p {
    max-width: 580px;
  }

  .falcon-defines__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .falcon-defines .falcon-defines__card:nth-of-type(1),
  .falcon-defines .falcon-defines__card:nth-of-type(2),
  .falcon-defines .falcon-defines__card:nth-of-type(3) {
    --card-lift: 0px;
  }

  .falcon-defines .falcon-defines__card:last-child {
    grid-column: 1 / -1;
  }

  .falcon-defines .tpfeature__deg {
    max-width: 520px;
  }
}

@media (max-width: 575.98px) {
  .falcon-defines {
    padding: 42px 0 48px;
    border-radius: 16px;
    scroll-margin-top: 110px;
  }

  .falcon-defines__heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .falcon-defines__heading .tp-section-title {
    font-size: 39px;
    line-height: 1.02;
  }

  .falcon-defines__heading > p {
    font-size: 14px;
    line-height: 1.6;
  }

  .falcon-defines__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .falcon-defines .falcon-defines__card,
  .falcon-defines .falcon-defines__card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 24px;
    border-radius: 24px 24px 52px 24px;
  }

  .falcon-defines .tpfeature__wrap {
    gap: 20px;
  }

  .falcon-defines__card-top {
    min-height: 54px;
  }

  .falcon-defines__icon {
    width: 54px;
    height: 54px;
    border-width: 4px;
  }

  .falcon-defines__icon svg {
    width: 27px;
    height: 27px;
  }

  .falcon-defines .tpfeature__num-2 {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }

  .falcon-defines .tpfeature__title {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .falcon-defines .tpfeature__deg {
    font-size: 14px;
    line-height: 1.6;
  }

  .falcon-defines .falcon-defines__card::before {
    right: 14px;
    bottom: -23px;
    font-size: 105px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .falcon-defines .falcon-defines__card,
  .falcon-defines .tpfeature__num-2 {
    transition: none;
  }
}
