.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--text-default-font-family);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-cta-primary {
  background: var(--xvia-blue);
  border-color: var(--xvia-blue);
  color: #ffffff;
}

.hero-cta-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--xvia-black);
}

.hero-cta-secondary {
  background: rgba(18, 18, 18, 0.72);
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.hero-cta-secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--xvia-black);
}

.hero-cta:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px;
}

/*
 * Homepage build proof must grow with its content. The base project card uses
 * viewport height + absolutely positioned content, which can clip the proof
 * pills/CTA on short mobile viewports. Keep the image/overlay absolute, but
 * return the proof content to normal flow so the card can expand as needed.
 */
body .homepage-build-proof {
  height: auto !important;
  min-height: 100svh !important;
}

.page-wrapper .homepage-build-proof .content {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  height: auto;
  box-sizing: border-box;
  justify-content: flex-start;
}

.page-wrapper .homepage-build-proof .bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  margin-top: auto;
  gap: 1rem;
  align-items: start;
  justify-items: stretch;
}

.page-wrapper .homepage-build-proof .build-tags {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0.6rem;
}

.page-wrapper .homepage-build-proof .build-tag {
  max-width: 100%;
  box-sizing: border-box;
}

.page-wrapper .homepage-build-proof .button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  justify-self: start;
  justify-content: center;
  margin: 0;
  padding: 0.875rem 1rem;
  text-align: center;
  white-space: normal;
}

.page-wrapper .homepage-build-proof .button-2 {
  max-width: 100%;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .page-wrapper .hero-text {
    top: clamp(5.5rem, 17svh, 7rem);
    width: calc(100% - 2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }

  .hero-cta {
    width: 100%;
    box-sizing: border-box;
  }

  .page-wrapper .homepage-build-proof .content {
    min-height: 100svh;
    padding: 1.5rem max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));
  }

  .page-wrapper .homepage-build-proof .button {
    width: 100%;
    justify-self: stretch;
  }
}

/*
 * Short phone landscape: keep the homepage hero's complete conversion path
 * inside the usable viewport and let the build proof card grow vertically.
 */
@media (max-width: 900px) and (orientation: landscape) {
  .page-wrapper .homepage-build-proof .content {
    min-height: 100svh;
    padding: 1.25rem max(1.25rem, env(safe-area-inset-right)) 1.5rem max(1.25rem, env(safe-area-inset-left));
    gap: 0.9rem;
  }

  .page-wrapper .homepage-build-proof .bottom {
    gap: 0.85rem;
  }

  .page-wrapper .homepage-build-proof .button {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .page-wrapper > .hero-section {
    min-height: 100svh;
  }

  .page-wrapper > .hero-section .hero-header {
    padding: 0.45rem max(1rem, env(safe-area-inset-right)) 0.45rem max(1rem, env(safe-area-inset-left));
  }

  .page-wrapper > .hero-section .hero-logo {
    height: 44px;
  }

  .page-wrapper > .hero-section .hero-social-btn {
    width: 32px;
    height: 32px;
  }

  .page-wrapper > .hero-section .hero-nav .header-pill {
    padding: 6px 10px;
    gap: 0.5rem;
  }

  .page-wrapper > .hero-section .hero-link {
    font-size: 0.82rem;
  }

  .page-wrapper > .hero-section .hero-text {
    top: clamp(3.75rem, 17svh, 4.5rem);
    width: min(720px, calc(100% - 3rem));
    max-width: 720px;
    gap: 0.45rem;
  }

  .page-wrapper > .hero-section .hero-kicker {
    font-size: 0.78rem;
    line-height: 1;
  }

  .page-wrapper > .hero-section .hero-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    line-height: 0.98;
  }

  .page-wrapper > .hero-section .hero-caption {
    max-width: 52ch;
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .page-wrapper > .hero-section .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    width: auto;
    max-width: none;
    margin-top: 0.15rem;
    gap: 0.5rem;
  }

  .page-wrapper > .hero-section .hero-cta {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0.7rem 1rem;
    box-sizing: border-box;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}
