/* Feature grid cards — foto + grid pattern (modelo FeatureCard)
   Adaptado ao design system FounderSquad */
.capabilities {
  /* Separação vertical vs Authority (cima) e Os 4 Pilares (baixo) */
  padding: var(--divider-gap) var(--pad) var(--divider-gap);
}

/* Linha superior/inferior do Authority ficam no .authority-stats (não aqui) */
.capabilities-inner {
  padding: 0;
  border-top: none;
}

/* Mesma formatação de #intro .pillar h2 / .pillar h2 */
.capabilities-inner > .pillar-content {
  padding: 0 4px;
  margin-bottom: 0;
}

.capabilities-heading {
  font-family: var(--font-h);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-1);
  margin: 0 0 14px;
  text-align: left;
  padding: 0;
}

@media (min-width: 768px) {
  .capabilities-heading {
    font-size: 36px;
  }
}

/* Sempre 3 colunas (incluindo mobile) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  background: var(--bg);
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  padding: 0.55rem 0.4rem 0.65rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0c0c0e;
}

.feature-card:nth-child(3n) {
  border-right: none;
}

.feature-card__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.75) brightness(0.42);
  z-index: 0;
}

.feature-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.28) 0%,
    rgba(9, 9, 11, 0.45) 42%,
    rgba(9, 9, 11, 0.82) 72%,
    rgba(9, 9, 11, 0.94) 100%
  );
}

/* Quadradinhos — baixa opacidade sobre a foto */
.feature-card__pattern {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  margin-top: -0.5rem;
  margin-left: -5rem;
  height: 100%;
  width: 100%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(white, transparent);
  mask-image: linear-gradient(white, transparent);
}

.feature-card__pattern-inner {
  position: absolute;
  inset: 0;
  opacity: 1;
  background: linear-gradient(
    to right,
    rgba(250, 250, 250, 0.05),
    rgba(250, 250, 250, 0.01)
  );
  -webkit-mask-image: radial-gradient(farthest-side at top, white, transparent);
  mask-image: radial-gradient(farthest-side at top, white, transparent);
}

.feature-card__pattern svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: rgba(250, 250, 250, 0.035);
  stroke: rgba(250, 250, 250, 0.1);
  mix-blend-mode: overlay;
  opacity: 0.45;
}

.feature-card__pattern .feature-grid-square {
  fill: rgba(250, 250, 250, 0.05);
  stroke: none;
}

.feature-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 132px;
  min-width: 0;
}

/* Tag teal — canto superior esquerdo */
.feature-card__label {
  font-family: var(--font-m);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--glow);
  margin: 0;
  opacity: 0.95;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start;
}

/* Ícone + título + desc — footer (canto inferior esquerdo) */
.feature-card__icon {
  width: 14px;
  height: 14px;
  margin-top: auto;
  color: rgba(250, 250, 250, 0.8);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.feature-card__icon path {
  fill: none;
  stroke: currentColor;
}

.feature-card__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-1);
  margin: 0.18rem 0 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.feature-card__desc {
  font-family: var(--font-b);
  font-size: 8.5px;
  font-weight: 300;
  line-height: 1.28;
  color: var(--text-2);
  margin: 0.22rem 0 0;
  position: relative;
  z-index: 2;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (min-width: 480px) {
  .feature-card {
    padding: 0.75rem 0.6rem 0.85rem;
  }

  .feature-card__body {
    min-height: 148px;
  }

  .feature-card__label {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .feature-card__icon {
    width: 16px;
    height: 16px;
  }

  .feature-card__title {
    font-size: 12px;
    margin-top: 0.28rem;
  }

  .feature-card__desc {
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (min-width: 640px) {
  .feature-card {
    padding: 1rem 0.85rem 1.1rem;
  }

  .feature-card__body {
    min-height: 168px;
  }

  .feature-card__label {
    font-size: 9px;
    letter-spacing: 0.1em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .feature-card__icon {
    width: 18px;
    height: 18px;
  }

  .feature-card__title {
    font-size: 14px;
    margin-top: 0.35rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .feature-card__desc {
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (min-width: 900px) {
  .feature-card {
    padding: 1.35rem 1.25rem 1.4rem;
  }

  .feature-card__body {
    min-height: 188px;
  }

  .feature-card__label {
    font-size: 10px;
  }

  .feature-card__icon {
    width: 22px;
    height: 22px;
  }

  .feature-card__title {
    font-size: 16px;
    margin-top: 0.4rem;
  }

  .feature-card__desc {
    font-size: 12px;
    margin-top: 0.45rem;
  }
}
