/* ==========================================================================
   References Page Styles
   ========================================================================== */

/* Hero Section */
.references-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.95),
    rgba(30, 64, 64, 0.4)
  );
  overflow: hidden;
}

.references-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(94, 191, 191, 0.08) 0%,
    transparent 70%
  );
  z-index: 0;
}

.references-hero .hero-content-minimal {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 6rem 2rem 4rem;
}

.references-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(94, 191, 191, 0.1);
  color: #5ebfbf;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(94, 191, 191, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.references-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary, #f2f2f2);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.references-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary, rgba(242, 242, 242, 0.7));
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Logo Wall on References Page
   ========================================================================== */

.references-logo-section {
  padding: 3rem 2%;
  background: var(--bg-primary, #1a1a1a);
}

.references-logo-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.references-logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.references-logo-grid img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(0.75);
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.references-logo-grid img:hover {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ==========================================================================
   Trust Metrics Strip
   ========================================================================== */

.references-trust-strip {
  padding: 2rem 2%;
  background: var(--bg-primary, #1a1a1a);
}

.trust-metrics-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(94, 191, 191, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(94, 191, 191, 0.12);
}

.trust-metric-item {
  text-align: center;
  min-width: 120px;
}

.trust-metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #5ebfbf;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.trust-metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary, rgba(242, 242, 242, 0.6));
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* ==========================================================================
   Reference Cards Grid
   ========================================================================== */

.references-cards-section {
  padding: 5rem 2%;
  background: var(--bg-primary, #1a1a1a);
}

.references-cards-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.references-cards-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Reference Card */
.reference-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.reference-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Banking card top border */
.reference-card--banking {
  border-top: 2px solid rgba(94, 191, 191, 0.4);
}

.reference-card--banking:hover {
  border-top-color: rgba(94, 191, 191, 0.8);
}

/* Manufacturing card top border */
.reference-card--manufacturing {
  border-top: 2px solid rgba(38, 5, 243, 0.4);
}

.reference-card--manufacturing:hover {
  border-top-color: rgba(38, 5, 243, 0.8);
}

/* Card Header */
.reference-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.reference-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(0.7);
  opacity: 0.8;
}

/* Badges */
.reference-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.reference-badge--banking {
  background: rgba(94, 191, 191, 0.1);
  color: #5ebfbf;
  border: 1px solid rgba(94, 191, 191, 0.2);
}

.reference-badge--manufacturing {
  background: rgba(38, 5, 243, 0.1);
  color: #8b7af7;
  border: 1px solid rgba(38, 5, 243, 0.2);
}

.reference-badge--financial {
  background: rgba(94, 191, 191, 0.08);
  color: rgba(94, 191, 191, 0.8);
  border: 1px solid rgba(94, 191, 191, 0.15);
}

/* Card Content */
.reference-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #f2f2f2);
  margin-bottom: 0.75rem;
}

.reference-description {
  font-size: 0.9rem;
  color: var(--text-secondary, rgba(242, 242, 242, 0.7));
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Context note (merger/transformation info) */
.reference-context {
  font-size: 0.82rem;
  color: rgba(242, 242, 242, 0.5);
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(94, 191, 191, 0.2);
  font-style: italic;
}

/* Metrics */
.reference-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.reference-metric {
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(242, 242, 242, 0.7));
  background: rgba(94, 191, 191, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}

.reference-metric strong {
  color: #5ebfbf;
  font-weight: 700;
  margin-right: 0.25rem;
}

/* Tags */
.reference-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.reference-tag {
  font-size: 0.72rem;
  color: rgba(242, 242, 242, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Link */
.reference-link {
  font-size: 0.85rem;
  color: rgba(94, 191, 191, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: auto;
}

.reference-link:hover {
  color: #5ebfbf;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.references-cta-section {
  padding: 5rem 2%;
  background: var(--bg-primary, #1a1a1a);
}

.references-cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(94, 191, 191, 0.15);
}

.references-cta-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary, #f2f2f2);
  margin-bottom: 0.75rem;
}

.references-cta-content p {
  font-size: 1rem;
  color: var(--text-secondary, rgba(242, 242, 242, 0.7));
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .references-hero .hero-content-minimal {
    padding: 5rem 1.5rem 3rem;
  }

  .references-logo-grid {
    gap: 1.5rem;
  }

  .references-logo-grid img {
    height: 32px;
  }

  .trust-metrics-grid {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .trust-metric-value {
    font-size: 1.5rem;
  }

  .trust-metric-item {
    min-width: 100px;
  }

  .references-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .reference-card {
    padding: 1.5rem;
  }

  .references-cta-content {
    padding: 2rem 1.5rem;
  }

  .references-cta-content h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .references-hero-title {
    font-size: 1.8rem;
  }

  .references-subtitle {
    font-size: 0.95rem;
  }

  .reference-metrics {
    flex-direction: column;
    gap: 0.5rem;
  }
}
