/* Homepage hero — Earth-at-night: global / borderless payments mood */
.arvion-hero-section {
  background-color: #262640 !important;
  background-image:
    linear-gradient(
      105deg,
      rgba(38, 38, 64, 0.94) 0%,
      rgba(38, 38, 64, 0.72) 42%,
      rgba(38, 38, 64, 0.4) 100%
    ),
    url("../images/hero-bg.webp?v=5") !important;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 75vh;
}

/* Homepage overall page background */
body.arvion-home {
  background-color: #262640;
}

.arvion-hero-copy {
  max-width: 56rem;
}

.arvion-hero-title {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.arvion-hero-line1 {
  display: block;
  white-space: nowrap !important;
}

.arvion-hero-line1 > .text-arvion-green {
  display: inline !important;
}

.arvion-hero-lead {
  margin-top: 1.5rem;
  max-width: 40rem;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .arvion-hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.35rem);
    letter-spacing: -0.02em;
  }
}

/* Fixed host outside React tree — survives header re-renders */
.arvion-dl-host {
  position: fixed;
  z-index: 60;
  top: 1.15rem;
  right: 1.5rem;
  pointer-events: none;
}

.arvion-dl-host .arvion-dl {
  pointer-events: auto;
  margin-left: 0;
}

.arvion-dl-host .arvion-dl--desktop {
  display: block;
}

.arvion-dl-host .arvion-dl__btn {
  box-shadow: 0 0 0 1px rgba(0, 255, 106, 0.15);
}

@media (max-width: 1023px) {
  .arvion-dl-host {
    display: none !important;
  }

  header .section-container.arvion-dl-row {
    padding-right: 0 !important;
  }
}

/* Download app nav dropdown */
.arvion-dl {
  position: relative;
  list-style: none;
  margin-left: 1.25rem;
}

.arvion-dl__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(0, 255, 106, 0.55);
  background: rgba(0, 255, 106, 0.12);
  color: #00ff6a;
  font-family: var(--font-poppins), ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.arvion-dl__btn:hover,
.arvion-dl__btn[aria-expanded="true"] {
  background: #00ff6a;
  border-color: #00ff6a;
  color: #0d0f19;
}

.arvion-dl__chevron {
  width: 0.65rem;
  height: 0.65rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.arvion-dl__btn[aria-expanded="true"] .arvion-dl__chevron {
  transform: rotate(180deg);
}

.arvion-dl__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  min-width: 17.5rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

.arvion-dl__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.arvion-dl__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.arvion-dl__item:hover {
  background: #f4f5f7;
}

.arvion-dl__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: #111827;
}

.arvion-dl__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.arvion-dl__title {
  font-family: var(--font-poppins), ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.arvion-dl__sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #8a8f98;
  line-height: 1.3;
}

/* Mobile menu placement */
.arvion-dl--mobile {
  margin: 0.5rem 0 0;
  list-style: none;
}

.arvion-dl--mobile .arvion-dl__btn {
  width: 100%;
  justify-content: center;
}

.arvion-dl--mobile .arvion-dl__menu {
  position: static;
  margin-top: 0.5rem;
  min-width: 0;
  width: 100%;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
}

@media (max-width: 1023px) {
  .arvion-dl--desktop {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .arvion-dl--mobile {
    display: none !important;
  }
}
