/* Credentials & stats — unified trust section */

.credentials-section {
  --cred-teal: #0d9488;
  --cred-purple: #7c3aed;
  --cred-orange: #f97316;
  --cred-blue: #3b82f6;
  background:
    radial-gradient(ellipse 55% 42% at 20% 0%, rgba(13, 148, 136, 0.08) 0%, transparent 68%),
    radial-gradient(ellipse 48% 38% at 85% 8%, rgba(124, 58, 237, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (min-width: 1024px) {
  .credentials-section {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }
}

.credentials-section > .absolute.rounded-full {
  display: none !important;
}

.credentials-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
  opacity: 0.5;
}

/* Unified card shell */
.credentials-section .container {
  max-width: 76rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "header"
    "stats"
    "partners";
  gap: 2rem;
  padding: 2rem 1.25rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(165deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 60px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(226, 232, 240, 0.65);
}

@media (min-width: 768px) {
  .credentials-section .container {
    padding: 2.5rem 2rem;
    gap: 2.25rem;
    border-radius: 2rem;
  }
}

@media (min-width: 1024px) {
  .credentials-section .container {
    padding: 3rem 2.75rem;
    gap: 2.5rem;
  }
}

.credentials-section .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cred-teal) 20%, var(--cred-blue) 50%, var(--cred-purple) 80%, transparent);
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.25);
}

/* Flatten partners block so header + logos join the grid */
.credentials-partners-block {
  display: contents;
}

.credentials-partners-block > .absolute {
  display: none;
}

/* Header — now first */
.credentials-header {
  grid-area: header;
  margin-bottom: 0 !important;
  text-align: center;
}

.credentials-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem !important;
  padding: 0.48rem 1.1rem !important;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.18) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%) !important;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
}

.credentials-eyebrow .home-eyebrow {
  color: var(--cred-teal) !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
}

.credentials-eyebrow span.w-2 {
  animation: none !important;
  background: var(--cred-teal) !important;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.45);
}

.credentials-header .home-section-title {
  color: #0f172a !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem) !important;
  max-width: 22ch;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .credentials-header .home-section-title {
    max-width: none;
  }
}

.credentials-header .home-section-title span {
  background-image: linear-gradient(92deg, #059669 0%, #0d9488 35%, #2563eb 68%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.credentials-copy {
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
  color: #64748b !important;
  max-width: 38rem;
  margin: 0.85rem auto 0 !important;
}

/* Stats — horizontal metric strip */
.credentials-stats-grid {
  grid-area: stats;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
  .credentials-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.credentials-stat-card {
  position: relative;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 1.35rem 1rem 1.25rem !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  transition: background 0.25s ease !important;
}

.credentials-stat-card:hover {
  transform: none !important;
  background: rgba(13, 148, 136, 0.03) !important;
  box-shadow: none !important;
}

.credentials-stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

@media (max-width: 767px) {
  .credentials-stat-card:nth-child(odd)::after {
    display: none;
  }

  .credentials-stat-card:nth-child(1),
  .credentials-stat-card:nth-child(2) {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  }
}

.credentials-stat-card > div:first-child {
  width: 2.35rem !important;
  height: 2.35rem !important;
  margin-bottom: 0.65rem !important;
  border-radius: 0.75rem !important;
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  .credentials-stat-card > div:first-child {
    width: 2.65rem !important;
    height: 2.65rem !important;
    margin-bottom: 0.75rem !important;
  }
}

.credentials-stat-card:nth-child(1) > div:first-child {
  background: rgba(13, 148, 136, 0.12) !important;
}

.credentials-stat-card:nth-child(2) > div:first-child {
  background: rgba(124, 58, 237, 0.12) !important;
}

.credentials-stat-card:nth-child(3) > div:first-child {
  background: rgba(249, 115, 22, 0.12) !important;
}

.credentials-stat-card:nth-child(4) > div:first-child {
  background: rgba(59, 130, 246, 0.12) !important;
}

.credentials-stat-card > div:first-child svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
}

.credentials-stat-card .absolute.-inset-2,
.credentials-stat-card .absolute.lg\:-inset-3 {
  display: none !important;
}

.credentials-stat-card .text-3xl,
.credentials-stat-card .md\:text-4xl,
.credentials-stat-card .lg\:text-5xl {
  font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  margin-bottom: 0 !important;
}

.credentials-stat-card:nth-child(1) .text-3xl,
.credentials-stat-card:nth-child(1) .md\:text-4xl,
.credentials-stat-card:nth-child(1) .lg\:text-5xl {
  background: linear-gradient(135deg, #0f766e, var(--cred-teal)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.credentials-stat-card:nth-child(2) .text-3xl,
.credentials-stat-card:nth-child(2) .md\:text-4xl,
.credentials-stat-card:nth-child(2) .lg\:text-5xl {
  background: linear-gradient(135deg, #6d28d9, var(--cred-purple)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.credentials-stat-card:nth-child(3) .text-3xl,
.credentials-stat-card:nth-child(3) .md\:text-4xl,
.credentials-stat-card:nth-child(3) .lg\:text-5xl {
  background: linear-gradient(135deg, #ea580c, var(--cred-orange)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.credentials-stat-card:nth-child(4) .text-3xl,
.credentials-stat-card:nth-child(4) .md\:text-4xl,
.credentials-stat-card:nth-child(4) .lg\:text-5xl {
  background: linear-gradient(135deg, #2563eb, var(--cred-blue)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.credentials-stat-card > p.text-xs,
.credentials-stat-card > p.sm\:text-sm {
  margin-top: 0.35rem !important;
  padding-bottom: 0 !important;
  font-size: 0.625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
}

@media (min-width: 640px) {
  .credentials-stat-card > p.text-xs,
  .credentials-stat-card > p.sm\:text-sm {
    font-size: 0.6875rem !important;
  }
}

.credentials-stat-card > p.text-xs::after,
.credentials-stat-card > p.sm\:text-sm::after {
  display: none;
}

/* Partners */
.credentials-partners {
  grid-area: partners;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  max-width: none !important;
  padding: 0 !important;
}

@media (min-width: 640px) {
  .credentials-partners {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
}

@media (min-width: 1024px) {
  .credentials-partners {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

.credentials-partners::before {
  content: "Certified & partnered with";
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #94a3b8;
}

.credentials-partners > div {
  cursor: default !important;
  max-width: none !important;
  flex: none !important;
}

.credentials-partners > div > div:first-child {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 0.75rem 0.65rem;
  height: 4.5rem !important;
  min-height: 4.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

@media (min-width: 1024px) {
  .credentials-partners > div > div:first-child {
    height: 5.25rem !important;
    min-height: 5.25rem;
    padding: 0.85rem 0.75rem;
  }
}

.credentials-partners > div:hover > div:first-child {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.1);
}

.credentials-partners img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;
  margin: 0 auto;
  object-fit: contain !important;
  transform: none !important;
  filter: saturate(1.02);
}

.credentials-partners > div > div:last-child,
.credentials-partners .absolute.-inset-4,
.credentials-partners .absolute.-bottom-8 {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .credentials-stat-card,
  .credentials-partners > div > div:first-child {
    transition: none !important;
  }

  .credentials-partners > div:hover > div:first-child {
    transform: none !important;
  }
}
