/* ============================
   TRUST – Premium Bento Grid
   ============================ */
.section-trust {
  padding: var(--section-pad) 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #000000 0%, #070a14 40%, #0b0f1c 70%, #000000 100%);
}

.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

/* ── Bento Grid Layout ── */
.trust-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  text-align: left;
  min-height: 560px;
}

/* ── Shared Card Base ── */
.trust-bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  border: 1px solid rgba(255, 255, 255, .06);
}

.trust-bento-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .12);
}

/* ── Background Layer ── */
.trust-bento-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform .6s var(--ease);
}

.trust-bento-card:hover .trust-bento-bg {
  transform: scale(1.04);
}

/* Card background images */
.trust-bg-quote {
  background: url('../images/trust/trust-quote.png') center center / cover no-repeat;
}

.trust-bg-ai {
  background: url('../images/trust/trust-data.jpg') center center / cover no-repeat;
}

.trust-bg-security {
  background: url('../images/trust/trust-security.png') center center / cover no-repeat;
}

/* ── Overlay ── */
.trust-bento-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, .15) 40%,
      rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}

/* Top-heavy overlay for Card 2 (text at top) */
.trust-overlay-top {
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, .15) 40%,
      rgba(0, 0, 0, .55) 100%);
}

/* ── Content Base ── */
.trust-bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

/* ── Card 1: Tall (left, spans 2 rows) ── */
.trust-bento-tall {
  grid-row: 1 / 3;
}

.trust-content-quote {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 48px 40px;
  text-align: left;
}

.trust-quote-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.trust-quote {
  font-family: var(--ff);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Bottom-stacked Quote ── */
.trust-quote-pyramid {
  text-align: left;
}

.trust-quote-name {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.trust-quote-role {
  font-size: .78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .02em;
}

/* ── Card 2: Top right – text top-left ── */
.trust-content-topright {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 36px 40px;
}

.trust-content-topright .trust-bento-h3 {
  text-align: left;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

/* ── Card 3: Bottom right – text centered ── */
.trust-content-bottomcenter {
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 40px 26px 40px;
}

.trust-content-bottomcenter .trust-bento-h3 {
  text-align: center;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

.trust-content-bottomcenter .trust-bento-sub {
  text-align: center;
}

/* ── Typography ── */
.trust-bento-h3 {
  font-family: var(--ff);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.trust-bento-desc {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 16px;
  max-width: 380px;
}

.trust-bento-sub {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .02em;
}

/* ── Accent glows ── */
.trust-bg-security::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 110, 247, .12) 0%, transparent 70%);
  pointer-events: none;
}

.trust-bg-ai::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(123, 149, 255, .1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Entry Animation States (set by JS, defined here for initial hide) ── */
.trust-bento-card {
  opacity: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .trust-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .trust-bento-tall {
    grid-row: auto;
    min-height: 320px;
  }

  .trust-bento-square {
    min-height: 280px;
  }

  .trust-content-quote {
    padding: 32px 28px;
  }

  .trust-quote {
    font-size: 1.3rem;
  }

  .trust-bento-h3 {
    font-size: 1.15rem;
  }

  .trust-bento-square .trust-bento-content {
    padding: 28px 24px;
  }
}