/*
 * AH Digital — Homepage Final Project CTA
 */

.ah-final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(92px, 10vw, 152px);
  background: var(--ah-color-bg);
}

.ah-final-cta__shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--ah-color-brand) 9%, var(--ah-color-surface)),
      var(--ah-color-surface) 54%,
      color-mix(in srgb, var(--ah-color-intelligence) 5%, var(--ah-color-surface))
    );
  box-shadow: var(--ah-shadow-feature);
}

.ah-final-cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ah-color-border) 75%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ah-color-border) 75%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, black, transparent 78%);
  pointer-events: none;
}

.ah-final-cta__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

.ah-final-cta__glow--one {
  inset-inline-start: 10%;
  inset-block-start: 16%;
  width: 290px;
  height: 290px;
  background: color-mix(in srgb, var(--ah-color-brand) 14%, transparent);
}

.ah-final-cta__glow--two {
  inset-inline-end: 7%;
  inset-block-end: 8%;
  width: 230px;
  height: 230px;
  background: color-mix(in srgb, var(--ah-color-intelligence) 10%, transparent);
}

.ah-final-cta__top,
.ah-final-cta__content,
.ah-final-cta__footer {
  position: relative;
  z-index: 1;
}

.ah-final-cta__top {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block-end: 1px solid var(--ah-color-border);
  padding-inline: clamp(24px, 4vw, 46px);
}

.ah-final-cta__eyebrow {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ah-final-cta__content {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding: clamp(42px, 7vw, 84px) clamp(24px, 5vw, 64px);
}

.ah-final-cta__copy h2 {
  max-width: 13ch;
  color: var(--ah-color-text);
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.ah-final-cta__copy > p {
  max-width: 60ch;
  margin-block-start: 26px;
  color: var(--ah-color-text-secondary);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

.ah-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 34px;
}

.ah-final-cta__starter {
  overflow: hidden;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-xl);
  background: color-mix(in srgb, var(--ah-color-surface) 92%, transparent);
  backdrop-filter: blur(10px);
}

.ah-final-cta__starter-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-block-end: 1px solid var(--ah-color-border);
  padding-inline: 18px;
}

.ah-final-cta__starter-head span {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ah-final-cta__starter-head small {
  color: var(--ah-color-text-muted);
  font-size: 0.68rem;
}

.ah-final-cta__starter-list {
  display: grid;
}

.ah-final-cta__starter-list a {
  text-decoration: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border-block-end: 1px solid var(--ah-color-border);
  color: var(--ah-color-text);
  padding-inline: 18px;
  transition:
    background-color var(--ah-duration-fast) var(--ah-ease-standard),
    padding-inline var(--ah-duration-fast) var(--ah-ease-standard);
}

.ah-final-cta__starter-list a:last-child {
  border-block-end: 0;
}

.ah-final-cta__starter-list a:hover,
.ah-final-cta__starter-list a:focus-visible {
  background: var(--ah-color-surface-soft);
  padding-inline: 22px 16px;
}

.ah-final-cta__starter-list a > span {
  display: inline-flex;
  min-width: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ah-color-brand) 36%, var(--ah-color-border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--ah-color-brand) 8%, transparent);
  color: color-mix(in srgb, var(--ah-color-brand) 84%, #ffffff);
  font-family: var(--ah-font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
}

.ah-final-cta__starter-list a > strong {
  font-size: 0.82rem;
  letter-spacing: -0.012em;
}

.ah-final-cta__starter-list a > i {
  color: var(--ah-color-text-muted);
  font-style: normal;
}

.ah-final-cta__footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.2fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 28px;
  min-height: 92px;
  border-block-start: 1px solid var(--ah-color-border);
  padding: 18px clamp(24px, 4vw, 46px);
}

.ah-final-cta__footer > div:first-child,
.ah-final-cta__location {
  display: grid;
  gap: 4px;
}

.ah-final-cta__footer span {
  color: var(--ah-color-text-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.5rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.ah-final-cta__footer strong {
  color: var(--ah-color-text);
  font-size: 0.74rem;
}

.ah-final-cta__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ah-final-cta__flow i {
  width: clamp(14px, 2vw, 34px);
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--ah-color-border-strong),
    var(--ah-color-brand),
    var(--ah-color-intelligence)
  );
}

.ah-final-cta__flow strong {
  color: var(--ah-color-signal);
  font-family: var(--ah-font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.06em;
}

.ah-final-cta__location {
  justify-items: end;
  text-align: end;
}

@media (max-width: 1023px) {
  .ah-final-cta__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-final-cta__starter {
    width: min(100%, 700px);
  }

  .ah-final-cta__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-final-cta__flow {
    display: none;
  }
}

@media (max-width: 767px) {
  .ah-final-cta {
    padding-block: 78px;
  }

  .ah-final-cta__shell {
    border-radius: 22px;
  }

  .ah-final-cta__top {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 84px;
    padding-block: 16px;
  }

  .ah-final-cta__content {
    padding-block: 44px;
  }

  .ah-final-cta__copy h2 {
    font-size: clamp(2.35rem, 11vw, 4.2rem);
  }

  .ah-final-cta__footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ah-final-cta__location {
    justify-items: start;
    text-align: start;
  }
}

@media (max-width: 480px) {
  .ah-final-cta__starter-list a {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .ah-final-cta__starter-list a > span {
    min-width: 28px;
    min-height: 28px;
    font-size: 0.68rem;
  }

  .ah-final-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ah-final-cta__actions .ah-button {
    width: 100%;
    justify-content: space-between;
  }

  .ah-final-cta__starter-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
  }
}

@supports not (color: color-mix(in srgb, black, white)) {
  .ah-final-cta__shell,
  .ah-final-cta__starter {
    background: var(--ah-color-surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-final-cta__starter-list a {
    transition: none;
  }
}
