.site-home {
  background: var(--dbg-bg);
}

/* Keep autocomplete above hero stats/quick links and readable. */
.b44-hero {
  overflow: visible;
}

.b44-search {
  z-index: 30;
}

.b44-search .rp-autocomplete {
  z-index: 31;
  text-align: left;
}

.b44-search .rp-autocomplete-item {
  justify-content: flex-start;
  align-items: center;
  min-height: 44px;
  text-align: left;
}

.b44-search .rp-autocomplete-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.b44-search .rp-autocomplete-meta {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #5b6d8c;
  white-space: nowrap;
  text-align: right;
}

.homex-section {
  padding: 28px 0;
}

.homex-head {
  margin-bottom: 14px;
}

.homex-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: #0f1f3d;
  letter-spacing: -0.02em;
}

.homex-head p {
  margin: 8px 0 0;
  color: #4f5f7a;
  font-size: 1rem;
  line-height: 1.5;
}

.homex-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.homex-link-more {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.homex-link-more:hover,
.homex-link-more:focus-visible {
  text-decoration: underline;
}

.homex-intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.homex-intent-card {
  display: block;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #d7e3f7;
  background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.homex-intent-card:hover,
.homex-intent-card:focus-visible {
  transform: translateY(-2px);
  border-color: #9ab6ea;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex-intent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7f0ff;
  color: #2048a7;
  font-weight: 800;
  margin-bottom: 10px;
}

.homex-intent-card h3 {
  margin: 0;
  color: #102446;
  font-size: 1.12rem;
}

.homex-intent-card p {
  margin: 8px 0 0;
  color: #4d6184;
  line-height: 1.45;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .b44-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .b44-search-icon {
    grid-column: 1;
    grid-row: 1;
  }

  #b44-search-input {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .b44-search button {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
}

.homex-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.homex-featured-card {
  display: block;
  border-radius: 18px;
  padding: 18px;
  min-height: 186px;
  text-decoration: none;
  border: 1px solid transparent;
  color: #0f1f3d;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex-featured-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.homex-featured-card p {
  margin: 10px 0 14px;
  color: #294068;
  line-height: 1.5;
}

.homex-featured-card span {
  display: inline-block;
  font-weight: 700;
  color: #14326f;
}

.homex-featured-speed {
  background: linear-gradient(145deg, #ecfeff 0%, #dff2ff 100%);
  border-color: #b8e4ff;
}

.homex-featured-currency {
  background: linear-gradient(145deg, #edf7ff 0%, #e0ebff 100%);
  border-color: #bcd0ff;
}

.homex-featured-finance {
  background: linear-gradient(145deg, #eef8f4 0%, #e3f3ea 100%);
  border-color: #b8ddc9;
}

.homex-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.homex-popular-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d8e4f5;
  padding: 14px;
  color: inherit;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex-popular-card strong {
  color: #12274d;
  display: block;
  line-height: 1.35;
}

.homex-popular-card span {
  display: block;
  margin-top: 7px;
  color: #4e617f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.homex-trust-wrap {
  border: 1px solid #d5e2f6;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f0f5ff 100%);
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.homex-trust-grid article {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #d9e5f6;
  border-radius: 12px;
  padding: 12px;
}

.homex-trust-grid h3 {
  margin: 0;
  font-size: 1rem;
  color: #153064;
}

.homex-trust-grid p {
  margin: 8px 0 0;
  color: #4e617f;
  line-height: 1.45;
  font-size: 0.93rem;
}

@media (max-width: 1020px) {
  .homex-intent-grid,
  .homex-popular-grid,
  .homex-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homex-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .homex-section {
    padding: 20px 0;
  }

  .homex-intent-grid,
  .homex-popular-grid,
  .homex-trust-grid {
    grid-template-columns: 1fr;
  }

  .homex-head h2 {
    font-size: 1.35rem;
  }

  .homex-featured-card {
    min-height: 0;
  }
}

/*
 * Home body v2 styles.
 * Legacy .homex-* rules are retained above for /home2 reference rendering.
 */
.homex2-section {
  padding: 34px 0;
}

.homex2-head {
  margin-bottom: 18px;
}

.homex2-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0c1f45;
}

.homex2-head p {
  margin: 10px 0 0;
  color: #3f557c;
  font-size: 1rem;
  line-height: 1.6;
}

.homex2-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.homex2-eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #365fbe;
}

.homex2-link-more {
  color: #1b52cc;
  font-weight: 700;
  text-decoration: none;
}

.homex2-link-more:hover,
.homex2-link-more:focus-visible {
  text-decoration: underline;
}

.homex2-section-map {
  padding-top: 30px;
}

.homex2-section-map .b44-shell {
  border: 1px solid #d4e3fb;
  border-radius: 24px;
  background:
    radial-gradient(680px 320px at 8% -10%, rgba(14, 165, 233, 0.16), transparent 60%),
    radial-gradient(560px 300px at 94% 8%, rgba(59, 130, 246, 0.14), transparent 64%),
    #ffffff;
  padding: 22px;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex2-hub-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.homex2-hub-card {
  border: 1px solid #d6e2f6;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex2-hub-card header {
  margin-bottom: 10px;
}

.homex2-hub-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f2a64;
}

.homex2-hub-card p {
  margin: 6px 0 0;
  color: #4e6288;
  font-size: 0.94rem;
  line-height: 1.45;
}

.homex2-hub-calc {
  border-top: 4px solid #3b82f6;
}

.homex2-hub-conv {
  border-top: 4px solid #0891b2;
}

.homex2-hub-finance {
  border-top: 4px solid #15803d;
}

.homex2-hub-tools {
  border-top: 4px solid #c2410c;
}

.homex2-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.homex2-link-list li {
  margin: 0;
  padding: 0;
}

.homex2-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #123670;
  font-weight: 600;
  line-height: 1.3;
}

.homex2-link-list a::before {
  content: ">";
  color: #3b82f6;
  font-weight: 800;
}

.homex2-link-list a:hover,
.homex2-link-list a:focus-visible {
  text-decoration: underline;
}

.homex2-card-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #c5d7f6;
  background: #f3f8ff;
  color: #10316d;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.homex2-card-cta:hover,
.homex2-card-cta:focus-visible {
  border-color: #8bb0ef;
  background: #e8f1ff;
}

.homex2-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.homex2-collection-card {
  border: 1px solid #d7e2f4;
  border-radius: 16px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex2-collection-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #102a5e;
}

.homex2-collection-card p {
  margin: 8px 0 0;
  color: #4e6288;
  line-height: 1.45;
  font-size: 0.94rem;
}

.homex2-chip-wrap {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.homex2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #c8d9f6;
  background: #f7faff;
  color: #183a77;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.2;
}

.homex2-chip:hover,
.homex2-chip:focus-visible {
  border-color: #8bb0ef;
  background: #ecf4ff;
}

.homex2-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.homex2-spotlight-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #d4e1f4;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
  padding: 14px;
  min-height: 176px;
}

.homex2-spotlight-card:hover,
.homex2-spotlight-card:focus-visible {
  border-color: #99b6ea;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
  transform: translateY(-2px);
}

.homex2-spotlight-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #204590;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.homex2-spotlight-card h3 {
  margin: 10px 0 0;
  color: #10254f;
  font-size: 1.04rem;
  line-height: 1.3;
}

.homex2-spotlight-card p {
  margin: 8px 0 0;
  color: #4a5f85;
  font-size: 0.89rem;
  line-height: 1.45;
}

.homex2-spotlight-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  color: #1747a5;
  font-weight: 700;
  font-size: 0.85rem;
}

.homex2-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.homex2-path-card {
  border-radius: 16px;
  border: 1px solid #d5e1f5;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex2-path-card h3 {
  margin: 0;
  font-size: 1.04rem;
  color: #102a5e;
}

.homex2-path-card p {
  margin: 8px 0 0;
  color: #4c6288;
  font-size: 0.9rem;
  line-height: 1.5;
}

.homex2-path-card ol {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.homex2-path-card li {
  margin: 0;
  color: #2f4772;
  line-height: 1.35;
}

.homex2-path-card a {
  color: #143c86;
  font-weight: 700;
  text-decoration: none;
}

.homex2-path-card a:hover,
.homex2-path-card a:focus-visible {
  text-decoration: underline;
}

.homex2-cta-card {
  border: 1px solid #b7d4f7;
  border-radius: 22px;
  background:
    linear-gradient(130deg, #195fd8 0%, #0d8bb8 45%, #177f61 100%);
  color: #ffffff;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex2-cta-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.homex2-cta-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.55;
}

.homex2-cta-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: min(420px, 100%);
}

.homex2-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 235, 255, 0.68);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.homex2-cta-actions a:hover,
.homex2-cta-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.homex2-section-expertise {
  padding-top: 18px;
  padding-bottom: 40px;
}

.homex2-expertise-card {
  border: 1px solid #d4e3fb;
  border-radius: 20px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.7);
}

.homex2-expertise-card h2 {
  margin: 0;
  color: #0c2456;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.25;
}

.homex2-expertise-card h3 {
  margin: 18px 0 0;
  color: #163b84;
  font-size: 1.05rem;
  line-height: 1.35;
}

.homex2-expertise-card p {
  margin: 10px 0 0;
  color: #405778;
  font-size: 0.98rem;
  line-height: 1.7;
}

.homex2-chip:focus-visible,
.homex2-link-list a:focus-visible,
.homex2-card-cta:focus-visible,
.homex2-spotlight-card:focus-visible,
.homex2-path-card a:focus-visible,
.homex2-cta-actions a:focus-visible,
.homex2-link-more:focus-visible {
  outline: 2px solid #0b4de0;
  outline-offset: 2px;
}

@media (max-width: 1160px) {
  .homex2-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .homex2-hub-grid,
  .homex2-collection-grid,
  .homex2-path-grid {
    grid-template-columns: 1fr;
  }

  .homex2-cta-card {
    grid-template-columns: 1fr;
  }

  .homex2-cta-actions {
    min-width: 0;
    width: 100%;
  }

  .homex2-expertise-card {
    padding: 16px;
  }
}

@media (max-width: 680px) {
  .homex2-section {
    padding: 24px 0;
  }

  .homex2-section-map .b44-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .homex2-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .homex2-cta-actions {
    grid-template-columns: 1fr;
  }
}
