/*
 * AH Digital — Homepage Proof / Trust
 */

.ah-proof {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 10vw, 156px);
  background: var(--ah-color-bg);
}

.ah-proof__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: clamp(42px, 7vw, 100px);
}

.ah-proof__statement {
  position: relative;
  display: grid;
  gap: 14px;
  border-inline-start: 1px solid var(--ah-color-border-strong);
  padding-inline-start: clamp(24px, 3vw, 38px);
}

.ah-proof__statement::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: -2px;
  width: 3px;
  height: 42px;
  border-radius: var(--ah-radius-pill);
  background: linear-gradient(
    180deg,
    var(--ah-color-brand),
    var(--ah-color-intelligence)
  );
  content: "";
}

.ah-proof__statement-label {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.ah-proof__statement p {
  max-width: 34ch;
  color: var(--ah-color-text);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.ah-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block-start: clamp(56px, 7vw, 96px);
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-xl);
  background: var(--ah-color-border);
  overflow: hidden;
}

.ah-proof-card {
  position: relative;
  display: grid;
  min-height: 330px;
  align-content: end;
  background: var(--ah-color-surface);
  padding: clamp(26px, 3.2vw, 42px);
  transition:
    background-color var(--ah-duration-base) var(--ah-ease-standard),
    transform var(--ah-duration-base) var(--ah-ease-standard);
}

.ah-proof-card:hover {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ah-color-brand) 4%, var(--ah-color-surface)),
      var(--ah-color-surface)
    );
}

.ah-proof-card__index {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 26px;
  color: var(--ah-color-text-muted);
  font-family: var(--ah-font-mono);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.ah-proof-card__icon {
  position: absolute;
  inset-block-start: 30px;
  inset-inline-start: clamp(26px, 3.2vw, 42px);
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--ah-color-border);
  border-radius: 18px;
  background: var(--ah-color-surface-soft);
}

.ah-proof-card h3 {
  max-width: 15ch;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.035em;
}

.ah-proof-card p {
  max-width: 43ch;
  margin-block-start: 16px;
  color: var(--ah-color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ah-proof__case {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  margin-block-start: 24px;
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-lg);
  background:
    linear-gradient(
      110deg,
      color-mix(in srgb, var(--ah-color-brand) 5%, var(--ah-color-surface)),
      var(--ah-color-surface) 55%
    );
  padding: clamp(24px, 3vw, 36px);
}

.ah-proof__case-main {
  display: grid;
  gap: 7px;
}

.ah-proof__case-label {
  color: var(--ah-color-brand);
  font-family: var(--ah-font-mono);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.ah-proof__case h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.ah-proof__case p {
  max-width: 62ch;
  color: var(--ah-color-text-secondary);
  font-size: 0.9rem;
}

.ah-proof__case-tags {
  display: flex;
  max-width: 250px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.ah-proof__case-tags span {
  border: 1px solid var(--ah-color-border);
  border-radius: var(--ah-radius-pill);
  background: var(--ah-color-surface);
  color: var(--ah-color-text-secondary);
  font-family: var(--ah-font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 9px;
}

.ah-proof__case-status {
  min-width: max-content;
}

@media (max-width: 1023px) {
  .ah-proof__intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .ah-proof__statement {
    max-width: 660px;
  }

  .ah-proof__statement p {
    max-width: 50ch;
  }

  .ah-proof__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ah-proof-card {
    min-height: 260px;
  }

  .ah-proof__case {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ah-proof__case-tags {
    justify-content: flex-start;
  }

  .ah-proof__case-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .ah-proof {
    padding-block: 76px;
  }

  .ah-proof__intro {
    gap: 36px;
  }

  .ah-proof__statement {
    padding-inline-start: 22px;
  }

  .ah-proof__grid {
    margin-block-start: 52px;
    border-radius: var(--ah-radius-lg);
  }

  .ah-proof-card {
    min-height: 250px;
    padding: 26px;
  }

  .ah-proof-card__icon {
    inset-block-start: 24px;
    inset-inline-start: 26px;
  }

  .ah-proof-card__index {
    inset-block-start: 22px;
    inset-inline-end: 24px;
  }

  .ah-proof__case {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--ah-radius-md);
  }

  .ah-proof__case-tags {
    max-width: none;
  }

  .ah-proof__case-status {
    min-width: 0;
  }
}

@supports not (color: color-mix(in srgb, black, white)) {
  .ah-proof-card:hover,
  .ah-proof__case {
    background: var(--ah-color-surface);
  }
}

@media (hover: none) {
  .ah-proof-card:hover {
    background: var(--ah-color-surface);
  }
}
