/* ==========================================================================
   Card Concepts — concept 04 (illustration beside copy, 50∶50)
   Sandbox only: card-concepts.html. Do not load on landings.
   Statement header matches Solutions (.bd-eco__intro).
   Self-contained: does not need base.css. Tokens used with fallbacks.
   Images: assets/images/card-background-section-4/ — independent of cc3.
   ========================================================================== */

.bd-cc4,
.bd-cc4 *,
.bd-cc4 *::before,
.bd-cc4 *::after {
  box-sizing: border-box;
}

.bd-cc4 {
  --bd-cc4-radius: 12px;
  --bd-cc4-rule: #d5d7da;
  --bd-cc4-glow:
    0 0 12px rgba(16, 24, 40, 0.044),
    0 0 40px rgba(16, 24, 40, 0.044);
  --bd-cc4-accent-dir: 180deg;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: visible;
  padding: 64px 0;
  font-family: var(--bd-font, InterVariable, sans-serif);
  font-feature-settings: "liga" 1, "calt" 1, "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
  color: var(--bd-text, #000);
}

.bd-cc4 .bd-wrap {
  width: 100%;
  max-width: var(--bd-content, 1280px);
  margin-inline: auto;
}

.bd-cc4__intro {
  width: 100%;
  margin: 0 0 var(--bd-space-8, 32px);
  padding-bottom: var(--bd-space-8, 32px);
  border-bottom: 1px solid var(--bd-cc4-rule, #d5d7da);
}

.bd-cc4__note {
  width: 100%;
  max-width: 40rem;
  margin: var(--bd-space-8, 32px) 0;
  padding: 0 0 var(--bd-space-8, 32px);
  border-bottom: 1px solid var(--bd-cc4-rule, #d5d7da);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-cc4__eyebrow {
  margin: 0 0 var(--bd-space-2, 8px);
  font-size: var(--bd-text-sm, 14px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--bd-accent, #6434d8);
}

.bd-cc4__title {
  margin: 0;
  font-size: 32px;
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1.2;
  color: var(--bd-text, #000);
  hyphens: none;
  overflow-wrap: normal;
}

.bd-cc4__lead {
  margin: var(--bd-space-3, 12px) 0 0;
  max-width: 40rem;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-cc4__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--bd-space-6, 24px);
  width: 100%;
  min-width: 0;
}

.bd-cc4__card {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  min-height: 340px;
  overflow: hidden;
  border: 0;
  border-radius: var(--bd-cc4-radius);
  padding: 0;
  background: var(--bd-surface, #fff);
  box-shadow: var(--bd-glow, var(--bd-cc4-glow));
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.bd-cc4__card:focus-visible {
  outline: 2px solid var(--bd-link, #2563EB);
  outline-offset: 3px;
}

.bd-cc4__media {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bd-surface, #fff);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bd-cc4__media--stablecoin {
  background-image: url("../../assets/images/card-background-section-4/01-stablecoin-settlement-ribbons-3x2-v1.png");
}

.bd-cc4__media--nodes {
  background-image: url("../../assets/images/card-background-section-4/02-dedicated-nodes-network-ribbons-3x2-v1.png");
}

.bd-cc4__card--purple {
  --bd-cc4-accent: #B3B0E9;
}

.bd-cc4__card--green {
  --bd-cc4-accent: #9CC7B5;
}

.bd-cc4__copy {
  display: grid;
  grid-template-columns: 2px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: var(--bd-space-6, 24px);
  min-width: 0;
  padding: var(--bd-space-6, 24px) var(--bd-space-6, 24px) var(--bd-space-6, 24px) 0;
}

.bd-cc4__accent {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 2px;
  height: auto;
  margin: 0;
  align-self: stretch;
  border-radius: 1px;
  background: linear-gradient(
    var(--bd-cc4-accent-dir, 180deg),
    var(--bd-cc4-accent),
    color-mix(in srgb, var(--bd-cc4-accent) 70%, #fff)
  );
}

.bd-cc4__name,
.bd-cc4__body,
.bd-cc4__more {
  grid-column: 2;
}

.bd-cc4__name {
  margin: 0;
  font-size: 20px;
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1.3;
  color: var(--bd-text, #000);
}

.bd-cc4__body {
  margin: var(--bd-space-3, 12px) 0 0;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-cc4__more {
  display: inline-flex;
  align-items: center;
  align-self: end;
  justify-self: end;
  gap: var(--bd-space-2, 8px);
  margin-top: auto;
  padding-top: var(--bd-space-6, 24px);
  color: var(--bd-link, #2563EB);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.2;
}

.bd-cc4__more svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  flex-shrink: 0;
  animation: bd-cc4-arrow 2.4s ease-in-out infinite;
}

.bd-cc4__more svg :is(path, circle, line, rect, ellipse, polyline, polygon) {
  vector-effect: non-scaling-stroke;
}

.bd-cc4__card:hover .bd-cc4__more {
  opacity: 0.7;
}

.bd-cc4__card--plain {
  grid-template-columns: 45% 55%;
}

.bd-cc4__card--plain .bd-cc4__copy {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #FAFAFB;
  border-left: 1px solid #F4F4F5;
}

.bd-cc4__card--plain .bd-cc4__name,
.bd-cc4__card--plain .bd-cc4__body,
.bd-cc4__card--plain .bd-cc4__more {
  grid-column: auto;
}

.bd-cc4__card--plain .bd-cc4__more {
  align-self: flex-end;
  box-sizing: border-box;
  margin-top: auto;
  padding: 12px 20px 12px 24px;
  min-height: 48px;
  border-radius: 999px;
  background: #0c0c0d;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.bd-cc4__card--plain:hover .bd-cc4__more,
.bd-cc4__card--plain:focus-visible .bd-cc4__more {
  background: #1b1c21;
  color: #fff;
  opacity: 1;
}

@media (max-width: 1023px) {
  .bd-cc4 {
    padding: 48px 0;
  }

  .bd-cc4__title {
    font-size: 28px;
  }

  .bd-cc4__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .bd-cc4__title {
    font-size: 24px;
  }

  .bd-cc4 {
    --bd-cc4-accent-dir: 90deg;
  }

  .bd-cc4__card,
  .bd-cc4__card--plain {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bd-cc4__media {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .bd-cc4__copy {
    display: flex;
    flex-direction: column;
    padding: 0 var(--bd-space-6, 24px) var(--bd-space-6, 24px);
  }

  .bd-cc4__card--plain .bd-cc4__copy {
    padding: 30px;
  }

  .bd-cc4__accent {
    width: 100%;
    height: 2px;
    margin: 0 0 var(--bd-space-6, 24px);
    grid-column: auto;
    grid-row: auto;
  }

  .bd-cc4__name,
  .bd-cc4__body,
  .bd-cc4__more {
    grid-column: auto;
    align-self: auto;
  }

  .bd-cc4__more,
  .bd-cc4__card--plain .bd-cc4__more {
    align-self: flex-end;
  }
}

@keyframes bd-cc4-arrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-cc4__more svg {
    animation: none;
  }
}
